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 <[email protected]>
---
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 <[email protected]>