arm: mach-k3: j721e: Split out J7200 SoC support from J721e
authorAndrew Davis <afd@ti.com>
Wed, 19 Mar 2025 18:54:58 +0000 (13:54 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 6 Apr 2025 00:28:02 +0000 (18:28 -0600)
commit03e3fdd3d09e5e586f7e1420f30510ea2d614f7a
treea01d5409cb22cd161b18354d04dfb8c6a555fbfd
parent42074b54075e584014d6609f9500525bf837d864
arm: mach-k3: j721e: Split out J7200 SoC support from J721e

Currently in j721e_init.c we check which firewalls to remove using
the board configuration (e.g CONFIG_TARGET_J721E_R5_EVM). We do this
as J721e and J7200 have different IP and firewalls but use the same
SoC definition (SOC_K3_J721E) even though they are different SoCs.

The idea was they would be similar enough that they both could use
the same SoC config to help with common code sharing. Board checks
would then be used differentiate.

This has grown far too messy to maintain any more, especially now
that there is more than one board using J721e (EVM, SK, Beagle AI64).
As differentiation is done based on board, every one of these boards
would have to have checks added for them. Instead let's split J7200
support out from J721e like how normal new SoC support is done.

This patch touches several subsystems and could not be split much better
as when we add SOC_K3_J7200 we want to make use of it in all spots that
once used the combined SOC_K3_J721E so we can turn off SOC_K3_J721E when
building for J7200 boards.

Signed-off-by: Andrew Davis <afd@ti.com>
30 files changed:
arch/arm/dts/Makefile
arch/arm/dts/k3-j7200-binman.dtsi
arch/arm/mach-k3/Kconfig
arch/arm/mach-k3/Makefile
arch/arm/mach-k3/include/mach/hardware.h
arch/arm/mach-k3/include/mach/spl.h
arch/arm/mach-k3/j7200/Kconfig [new file with mode: 0644]
arch/arm/mach-k3/j7200/Makefile [new file with mode: 0644]
arch/arm/mach-k3/j721e/Kconfig
arch/arm/mach-k3/j721e/j721e_init.c
arch/arm/mach-k3/r5/Makefile
board/ti/j7200/Kconfig [new file with mode: 0644]
board/ti/j7200/MAINTAINERS [new file with mode: 0644]
board/ti/j7200/Makefile [new file with mode: 0644]
board/ti/j7200/board-cfg.yaml [moved from board/ti/j721e/board-cfg_j7200.yaml with 100% similarity]
board/ti/j7200/j7200.env [new file with mode: 0644]
board/ti/j7200/pm-cfg.yaml [moved from board/ti/j721e/pm-cfg_j7200.yaml with 100% similarity]
board/ti/j7200/rm-cfg.yaml [moved from board/ti/j721e/rm-cfg_j7200.yaml with 100% similarity]
board/ti/j7200/sec-cfg.yaml [moved from board/ti/j721e/sec-cfg_j7200.yaml with 100% similarity]
board/ti/j721e/Kconfig
board/ti/j721e/MAINTAINERS
board/ti/j721e/j721e.env
configs/j7200_evm_a72_defconfig
configs/j7200_evm_r5_defconfig
drivers/clk/ti/clk-k3.c
drivers/dma/ti/Makefile
drivers/dma/ti/k3-psil.c
drivers/firmware/ti_sci_static_data.h
drivers/power/domain/ti-power-domain.c
drivers/ram/Kconfig