From: Bastien Curutchet <bastien.curutchet@bootlin.com>
To: u-boot@lists.denx.de
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>,
Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Heiko Schocher <hs@nabladev.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Anshul Dalal <anshuld@ti.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Quentin Schulz <quentin.schulz@cherry.de>,
Andre Przywara <andre.przywara@arm.com>,
Hrushikesh Salunke <h-salunke@ti.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>,
Casey Connolly <casey.connolly@linaro.org>,
Justin Swartz <justin.swartz@risingedge.co.za>,
Daniel Palmer <daniel@thingy.jp>, Andrew Davis <afd@ti.com>,
Tien Fong Chee <tien.fong.chee@altera.com>,
Rasmus Villemoes <ravi@prevas.dk>,
Neil Armstrong <neil.armstrong@linaro.org>,
Alexey Charkov <alchark@gmail.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>
Subject: [PATCH 0/6] arm: omap: Add back omap4 support
Date: Tue, 19 May 2026 08:45:37 +0200 [thread overview]
Message-ID: <20260519-omap4-support-v1-0-b4a2a7435775@bootlin.com> (raw)
Hi all,
This series aims to add back the omap4 support. This support was removed
by commit b0ee3fe642c ("arm: ti: Remove omap4 platform support") because
at that moment, none of the OMAP4-based boards had done the migration to
DM_I2C.
My use case is an old product based on the Variscite's omap4 system on
module. I needed to upgrade U-Boot on it for security reasons. I think
that this work could benefit to other people who may have same kind of
product to maintain.
Patch 1 to 3 remove the omap's clock driver dependency to the AM33xx
as it is also present in omap4 platforms. I tested these changes on the
beaglebone black to ensure I didn't break the AM33xx case.
Patch 4 & 5 revert the deletion of the omap4 support. The revert makes
checkpatch.pl angry. I fixed quite a lots of warnings already but it
remains two kinds of warnings:
- CamelCase on timings structure, I left the CamelCase because IMHO it's
more readable this way.
- #ifdef CONFIG_XYZ shouldn't be used anymore. I left one of this because
I didn't find a clean way to get rid of it.
Patch 6 adds support for the Variscite's system on module. This system on
module is supported by the Linux project through
ti/omap/omap4-var-som-om44.dtsi
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
---
Bastien Curutchet (6):
arm: omap: Move PRM I2C channel frequency to vc.c
arm: ti: omap: Extract common clock definitions
clk: ti: Remove AM33xx dependency
configs: omap4: remove unused boot target devices
arm: ti: Introduce back omap4 support
board: variscite: add support for the omap4_var_som
arch/arm/dts/omap4-var-stk-om44-u-boot.dtsi | 54 +++
arch/arm/include/asm/arch-am33xx/clock.h | 43 +--
arch/arm/include/asm/arch-omap4/clock.h | 84 +++++
arch/arm/include/asm/arch-omap4/cpu.h | 109 ++++++
arch/arm/include/asm/arch-omap4/ehci.h | 38 ++
arch/arm/include/asm/arch-omap4/gpio.h | 34 ++
arch/arm/include/asm/arch-omap4/hardware.h | 25 ++
arch/arm/include/asm/arch-omap4/i2c.h | 11 +
arch/arm/include/asm/arch-omap4/mem.h | 61 ++++
arch/arm/include/asm/arch-omap4/mmc_host_def.h | 16 +
arch/arm/include/asm/arch-omap4/mux_omap4.h | 325 +++++++++++++++++
arch/arm/include/asm/arch-omap4/omap.h | 143 ++++++++
arch/arm/include/asm/arch-omap4/spl.h | 22 ++
arch/arm/include/asm/arch-omap4/sys_proto.h | 73 ++++
arch/arm/include/asm/arch-omap5/clock.h | 104 +-----
arch/arm/include/asm/mach-types.h | 1 +
arch/arm/include/asm/omap_common.h | 16 +-
arch/arm/include/asm/ti-common/omap_clock.h | 114 ++++++
arch/arm/mach-omap2/Kconfig | 24 +-
arch/arm/mach-omap2/Makefile | 3 +-
arch/arm/mach-omap2/omap4/Kconfig | 23 ++
arch/arm/mach-omap2/omap4/Makefile | 10 +
arch/arm/mach-omap2/omap4/boot.c | 103 ++++++
arch/arm/mach-omap2/omap4/hw_data.c | 420 ++++++++++++++++++++++
arch/arm/mach-omap2/omap4/hwinit.c | 182 ++++++++++
arch/arm/mach-omap2/omap4/prcm-regs.c | 306 ++++++++++++++++
arch/arm/mach-omap2/omap4/sdram_elpida.c | 265 ++++++++++++++
arch/arm/mach-omap2/vc.c | 2 +
board/variscite/omap4_var_som/Kconfig | 12 +
board/variscite/omap4_var_som/MAINTAINERS | 6 +
board/variscite/omap4_var_som/Makefile | 6 +
board/variscite/omap4_var_som/omap4_var_som.c | 172 +++++++++
board/variscite/omap4_var_som/omap4_var_som_mux.h | 32 ++
common/spl/Kconfig | 4 +-
configs/omap4_var_som_defconfig | 75 ++++
drivers/clk/ti/clk-ctrl.c | 48 ++-
drivers/i2c/Kconfig | 2 +-
drivers/mmc/Kconfig | 2 +-
include/configs/omap4_var_som.h | 16 +
include/configs/ti_omap4_common.h | 40 ---
40 files changed, 2817 insertions(+), 209 deletions(-)
---
base-commit: 4433253ecf2041f9362a763bb6cb79960921ac7e
change-id: 20260506-omap4-support-9f7d1cc1cd60
Best regards,
--
Bastien Curutchet <bastien.curutchet@bootlin.com>
next reply other threads:[~2026-05-19 6:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 6:45 Bastien Curutchet [this message]
2026-05-19 6:45 ` [PATCH 1/6] arm: omap: Move PRM I2C channel frequency to vc.c Bastien Curutchet
2026-05-19 6:45 ` [PATCH 2/6] arm: ti: omap: Extract common clock definitions Bastien Curutchet
2026-05-19 6:45 ` [PATCH 3/6] clk: ti: Remove AM33xx dependency Bastien Curutchet
2026-05-19 6:45 ` [PATCH 4/6] configs: omap4: remove unused boot target devices Bastien Curutchet
2026-05-19 6:45 ` [PATCH 5/6] arm: ti: Introduce back omap4 support Bastien Curutchet
2026-05-19 6:45 ` [PATCH 6/6] board: variscite: add support for the omap4_var_som Bastien Curutchet
2026-05-19 14:03 ` Tom Rini
2026-05-19 14:55 ` Bastien Curutchet
2026-05-19 15:01 ` Tom Rini
2026-05-20 7:03 ` Bastien Curutchet
2026-05-20 14:29 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260519-omap4-support-v1-0-b4a2a7435775@bootlin.com \
--to=bastien.curutchet@bootlin.com \
--cc=afd@ti.com \
--cc=alchark@gmail.com \
--cc=alif.zakuan.yuslaimi@altera.com \
--cc=andre.przywara@arm.com \
--cc=anshuld@ti.com \
--cc=casey.connolly@linaro.org \
--cc=daniel@thingy.jp \
--cc=dario.binacchi@amarulasolutions.com \
--cc=h-salunke@ti.com \
--cc=hs@nabladev.com \
--cc=jh80.chung@samsung.com \
--cc=justin.swartz@risingedge.co.za \
--cc=lukma@denx.de \
--cc=mkorpershoek@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=patrice.chotard@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=quentin.schulz@cherry.de \
--cc=ravi@prevas.dk \
--cc=thomas.petazzoni@bootlin.com \
--cc=tien.fong.chee@altera.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox