U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] arm: omap: Add back omap4 support
@ 2026-05-19  6:45 Bastien Curutchet
  2026-05-19  6:45 ` [PATCH 1/6] arm: omap: Move PRM I2C channel frequency to vc.c Bastien Curutchet
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Bastien Curutchet @ 2026-05-19  6:45 UTC (permalink / raw)
  To: u-boot
  Cc: Thomas Petazzoni, Tom Rini, Lukasz Majewski, Peng Fan,
	Jaehoon Chung, Heiko Schocher, Patrice Chotard, Anshul Dalal,
	Heinrich Schuchardt, Mattijs Korpershoek, Quentin Schulz,
	Andre Przywara, Hrushikesh Salunke, Dario Binacchi,
	Alif Zakuan Yuslaimi, Casey Connolly, Justin Swartz,
	Daniel Palmer, Andrew Davis, Tien Fong Chee, Rasmus Villemoes,
	Neil Armstrong, Alexey Charkov, Bastien Curutchet

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>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-05-20 14:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19  6:45 [PATCH 0/6] arm: omap: Add back omap4 support Bastien Curutchet
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox