]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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)
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

index fcfff5bc117c7850f02169cf16e0982a2aca9d23..080ea522ed5d3cbfafeb77f293310962173b3359 100644 (file)
@@ -1103,10 +1103,11 @@ dtb-$(CONFIG_SOC_K3_AM654) += \
        k3-am654-r5-base-board.dtb
 
 dtb-$(CONFIG_SOC_K3_J721E) += k3-j721e-r5-common-proc-board.dtb \
-                             k3-j7200-r5-common-proc-board.dtb \
                              k3-j721e-r5-sk.dtb \
                              k3-j721e-r5-beagleboneai64.dtb
 
+dtb-$(CONFIG_SOC_K3_J7200) += k3-j7200-r5-common-proc-board.dtb
+
 dtb-$(CONFIG_SOC_K3_J721S2) += k3-am68-sk-r5-base-board.dtb\
                               k3-j721s2-r5-common-proc-board.dtb
 
index ef7d4594f69bcba8e0cc5a08d057c013c7329f84..423badd7cb532fd13a6bfe15b7d49eeea930b500 100644 (file)
@@ -7,46 +7,6 @@
 
 #ifdef CONFIG_TARGET_J7200_R5_EVM
 
-&bcfg_yaml {
-       config = "board-cfg_j7200.yaml";
-};
-
-&rcfg_yaml {
-       config = "rm-cfg_j7200.yaml";
-};
-
-&pcfg_yaml {
-       config = "pm-cfg_j7200.yaml";
-};
-
-&scfg_yaml {
-       config = "sec-cfg_j7200.yaml";
-};
-
-&bcfg_yaml_tifs {
-       config = "board-cfg_j7200.yaml";
-};
-
-&rcfg_yaml_tifs {
-       config = "rm-cfg_j7200.yaml";
-};
-
-&pcfg_yaml_tifs {
-       config = "pm-cfg_j7200.yaml";
-};
-
-&scfg_yaml_tifs {
-       config = "sec-cfg_j7200.yaml";
-};
-
-&rcfg_yaml_dm {
-       config = "rm-cfg_j7200.yaml";
-};
-
-&pcfg_yaml_dm {
-       config = "pm-cfg_j7200.yaml";
-};
-
 &binman {
        tiboot3-j7200-hs-evm.bin {
                filename = "tiboot3-j7200-hs-evm.bin";
index 1f8cb8e3822b0af591a2d97be6df49f2ed646b4b..1b8c0b1eb968f0414107c0bf3142f744ce8364c8 100644 (file)
@@ -22,6 +22,9 @@ config SOC_K3_AM654
 config SOC_K3_J721E
        bool "TI's K3 based J721E SoC Family Support"
 
+config SOC_K3_J7200
+       bool "TI's K3 based J7200 SoC Family Support"
+
 config SOC_K3_J721S2
        bool "TI's K3 based J721S2 SoC Family Support"
 
@@ -33,18 +36,13 @@ config SOC_K3_J784S4
 
 endchoice
 
-if SOC_K3_J721E
-config SOC_K3_J721E_J7200
-       bool "TI's K3 based J7200 SoC variant Family Support"
-endif
-
 config SYS_SOC
        default "k3"
 
 config SYS_K3_NON_SECURE_MSRAM_SIZE
        hex
        default 0x80000 if SOC_K3_AM654
-       default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4
+       default 0x100000 if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J784S4
        default 0x1c0000 if SOC_K3_AM642
        default 0x3c000 if SOC_K3_AM625 || SOC_K3_AM62A7
        help
@@ -56,7 +54,7 @@ config SYS_K3_NON_SECURE_MSRAM_SIZE
 config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
        hex
        default 0x58000 if SOC_K3_AM654
-       default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4
+       default 0xc0000 if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J784S4
        default 0x180000 if SOC_K3_AM642
        default 0x38000 if SOC_K3_AM625 || SOC_K3_AM62A7
        help
@@ -66,21 +64,21 @@ config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
 config SYS_K3_MCU_SCRATCHPAD_BASE
        hex
        default 0x40280000 if SOC_K3_AM654
-       default 0x41cff9fc if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4
+       default 0x41cff9fc if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J784S4
        help
          Describes the base address of MCU Scratchpad RAM.
 
 config SYS_K3_MCU_SCRATCHPAD_SIZE
        hex
        default 0x200 if SOC_K3_AM654
-       default 0x200 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4
+       default 0x200 if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J784S4
        help
          Describes the size of MCU Scratchpad RAM.
 
 config SYS_K3_BOOT_PARAM_TABLE_INDEX
        hex
        default 0x41c7fbfc if SOC_K3_AM654
-       default 0x41cffbfc if SOC_K3_J721E
+       default 0x41cffbfc if SOC_K3_J721E || SOC_K3_J7200
        default 0x41cfdbfc if SOC_K3_J721S2 || SOC_K3_J784S4
        default 0x701bebfc if SOC_K3_AM642
        default 0x43c3f290 if SOC_K3_AM625
@@ -193,6 +191,7 @@ source "arch/arm/mach-k3/am62x/Kconfig"
 source "arch/arm/mach-k3/am62ax/Kconfig"
 source "arch/arm/mach-k3/am62px/Kconfig"
 source "arch/arm/mach-k3/j721e/Kconfig"
+source "arch/arm/mach-k3/j7200/Kconfig"
 source "arch/arm/mach-k3/j721s2/Kconfig"
 source "arch/arm/mach-k3/j722s/Kconfig"
 source "arch/arm/mach-k3/j784s4/Kconfig"
index 5ce7fc62d80cfe5561492a0ab17cf9cc0b1eb0e1..b2fd5810b67cd8c62af8e0cb4c60020bed2b5624 100644 (file)
@@ -13,6 +13,7 @@ obj-$(CONFIG_SOC_K3_AM625) += am62x/
 obj-$(CONFIG_SOC_K3_AM642) += am64x/
 obj-$(CONFIG_SOC_K3_AM654) += am65x/
 obj-$(CONFIG_SOC_K3_J721E) += j721e/
+obj-$(CONFIG_SOC_K3_J7200) += j7200/
 obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
 obj-$(CONFIG_SOC_K3_J722S) += j722s/
 obj-$(CONFIG_SOC_K3_J784S4) += j784s4/
index 1657697fbd818c05d57fd4792062e91a01e3ed66..fc7bee4d00b0fab58432b70ad7512241a4a6a307 100644 (file)
 #include "j721e_hardware.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_J7200
+#include "j721e_hardware.h"
+#endif
+
 #ifdef CONFIG_SOC_K3_J721S2
 #include "j721s2_hardware.h"
 #endif
index ac1a34502ede6e2475ab9f39bdd85dabad4d8cc5..a47441ae6a59c6f24a948a0d84b6acb84043ba37 100644 (file)
 #include "j721e_spl.h"
 #endif
 
+#ifdef CONFIG_SOC_K3_J7200
+#include "j721e_spl.h"
+#endif
+
 #ifdef CONFIG_SOC_K3_J721S2
 #include "j721s2_spl.h"
 #endif
diff --git a/arch/arm/mach-k3/j7200/Kconfig b/arch/arm/mach-k3/j7200/Kconfig
new file mode 100644 (file)
index 0000000..399daad
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+#      Andrew Davis <afd@ti.com>
+
+if SOC_K3_J7200
+
+choice
+       prompt "K3 J7200 based boards"
+       optional
+
+config TARGET_J7200_A72_EVM
+       bool "TI K3 based J7200 EVM running on A72"
+       select ARM64
+       select BOARD_LATE_INIT
+       imply TI_I2C_BOARD_DETECT
+       select SYS_DISABLE_DCACHE_OPS
+       select BINMAN
+
+config TARGET_J7200_R5_EVM
+       bool "TI K3 based J7200 EVM running on R5"
+       select CPU_V7R
+       select SYS_THUMB_BUILD
+       select K3_LOAD_SYSFW
+       select RAM
+       select SPL_RAM
+       select K3_DDRSS
+       select BINMAN
+       imply SYS_K3_SPL_ATF
+       imply TI_I2C_BOARD_DETECT
+
+endchoice
+
+source "board/ti/j7200/Kconfig"
+
+endif
diff --git a/arch/arm/mach-k3/j7200/Makefile b/arch/arm/mach-k3/j7200/Makefile
new file mode 100644 (file)
index 0000000..6d3ff36
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+#      Andrew Davis <afd@ti.com>
+
+obj-$(CONFIG_OF_SYSTEM_SETUP) += ../j721e/j721e_fdt.o
+obj-$(CONFIG_XPL_BUILD) += ../j721e/j721e_init.o
index 0761b82b15a9641e71344891fd211fa9ec1f2196..4d01f2c8af2e062955cfd7b81366d3fb72bec819 100644 (file)
@@ -29,27 +29,6 @@ config TARGET_J721E_R5_EVM
        imply SYS_K3_SPL_ATF
        imply TI_I2C_BOARD_DETECT
 
-config TARGET_J7200_A72_EVM
-       bool "TI K3 based J7200 EVM running on A72"
-       select ARM64
-       select SOC_K3_J721E_J7200
-       select BOARD_LATE_INIT
-       imply TI_I2C_BOARD_DETECT
-       select SYS_DISABLE_DCACHE_OPS
-       select BINMAN
-
-config TARGET_J7200_R5_EVM
-       bool "TI K3 based J7200 EVM running on R5"
-       select CPU_V7R
-       select SYS_THUMB_BUILD
-       select K3_LOAD_SYSFW
-       select RAM
-       select SPL_RAM
-       select K3_DDRSS
-       select BINMAN
-       imply SYS_K3_SPL_ATF
-       imply TI_I2C_BOARD_DETECT
-
 endchoice
 
 source "board/beagle/beagleboneai64/Kconfig"
index 7e2d2c16b45a1cbaa7a5409f2ee22b12094a606a..f31c20f7ed61667e6535cd2761906b9358ff3b0d 100644 (file)
@@ -48,7 +48,7 @@
 
 #ifdef CONFIG_K3_LOAD_SYSFW
 struct fwl_data cbass_hc_cfg0_fwls[] = {
-#if defined(CONFIG_TARGET_J721E_R5_EVM)
+#if defined(CONFIG_SOC_K3_J721E)
        { "PCIE0_CFG", 2560, 8 },
        { "PCIE1_CFG", 2561, 8 },
        { "USB3SS0_CORE", 2568, 4 },
@@ -57,11 +57,11 @@ struct fwl_data cbass_hc_cfg0_fwls[] = {
        { "UFS_HCI0_CFG", 2580, 4 },
        { "SERDES0", 2584, 1 },
        { "SERDES1", 2585, 1 },
-#elif defined(CONFIG_TARGET_J7200_R5_EVM)
+#elif defined(CONFIG_SOC_K3_J7200)
        { "PCIE1_CFG", 2561, 7 },
 #endif
 }, cbass_hc0_fwls[] = {
-#if defined(CONFIG_TARGET_J721E_R5_EVM)
+#if defined(CONFIG_SOC_K3_J721E)
        { "PCIE0_HP", 2528, 24 },
        { "PCIE0_LP", 2529, 24 },
        { "PCIE1_HP", 2530, 24 },
index f533c5e77432b67ec5ec8f4fec0c4e39c6a16ecb..074e3b61a2627cb4005193602b3588d768b45e89 100644 (file)
@@ -7,7 +7,7 @@ obj-$(CONFIG_SOC_K3_AM625) += am62x/
 obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
 obj-$(CONFIG_SOC_K3_AM62P5) += am62px/
 obj-$(CONFIG_SOC_K3_J721E) += j721e/
-obj-$(CONFIG_SOC_K3_J721E) += j7200/
+obj-$(CONFIG_SOC_K3_J7200) += j7200/
 obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
 obj-$(CONFIG_SOC_K3_J722S) += j722s/
 obj-$(CONFIG_SOC_K3_J784S4) += j784s4/
diff --git a/board/ti/j7200/Kconfig b/board/ti/j7200/Kconfig
new file mode 100644 (file)
index 0000000..093d23e
--- /dev/null
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2018-2019 Texas Instruments Incorporated - https://www.ti.com/
+#      Lokesh Vutla <lokeshvutla@ti.com>
+
+if TARGET_J7200_A72_EVM
+
+config SYS_BOARD
+       default "j7200"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "j721e_evm"
+
+config ENV_SOURCE_FILE
+       default "j7200"
+
+source "board/ti/common/Kconfig"
+
+endif
+
+if TARGET_J7200_R5_EVM
+
+config SYS_BOARD
+       default "j7200"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "j721e_evm"
+
+config ENV_SOURCE_FILE
+       default "j7200"
+
+source "board/ti/common/Kconfig"
+
+endif
diff --git a/board/ti/j7200/MAINTAINERS b/board/ti/j7200/MAINTAINERS
new file mode 100644 (file)
index 0000000..6261413
--- /dev/null
@@ -0,0 +1,7 @@
+J7200 BOARD
+M:     Tom Rini <trini@konsulko.com>
+S:     Maintained
+F:     board/ti/j7200
+F:     include/configs/j7200_evm.h
+F:     configs/j7200_evm_r5_defconfig
+F:     configs/j7200_evm_a72_defconfig
diff --git a/board/ti/j7200/Makefile b/board/ti/j7200/Makefile
new file mode 100644 (file)
index 0000000..4ae69aa
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y += ../j721e/evm.o
diff --git a/board/ti/j7200/j7200.env b/board/ti/j7200/j7200.env
new file mode 100644 (file)
index 0000000..6cc92bf
--- /dev/null
@@ -0,0 +1,40 @@
+#include <env/ti/ti_common.env>
+#include <env/ti/mmc.env>
+#include <env/ti/ufs.env>
+#include <env/ti/k3_dfu.env>
+
+#if CONFIG_CMD_REMOTEPROC
+#include <env/ti/k3_rproc.env>
+#endif
+
+name_kern=Image
+console=ttyS2,115200n8
+args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000
+       ${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+#if CONFIG_TARGET_J7200_R5_EVM
+addr_mcur5f0_0load=0x89000000
+name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw
+#endif
+
+boot_targets=mmc1 mmc0 usb pxe dhcp
+boot=mmc
+mmcdev=1
+bootpart=1:2
+bootdir=/boot
+rd_spec=-
+
+#if CONFIG_TARGET_J7200_A72_EVM
+do_main_cpsw0_qsgmii_phyinit=1
+init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
+       gpio clear gpio@22_16
+main_cpsw0_qsgmii_phyinit=
+       if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
+               run init_main_cpsw0_qsgmii_phy;
+       fi;
+#endif
+
+#if CONFIG_TARGET_J7200_A72_EVM
+rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw
+#endif
index 6990f6ef4a4953660c8f9d2ed804e2ae13dc3f44..7c7e23988d8081c7557d9122930822c307965043 100644 (file)
@@ -38,39 +38,3 @@ config ENV_SOURCE_FILE
 source "board/ti/common/Kconfig"
 
 endif
-
-if TARGET_J7200_A72_EVM
-
-config SYS_BOARD
-       default "j721e"
-
-config SYS_VENDOR
-       default "ti"
-
-config SYS_CONFIG_NAME
-       default "j721e_evm"
-
-config ENV_SOURCE_FILE
-       default "j721e"
-
-source "board/ti/common/Kconfig"
-
-endif
-
-if TARGET_J7200_R5_EVM
-
-config SYS_BOARD
-       default "j721e"
-
-config SYS_VENDOR
-       default "ti"
-
-config SYS_CONFIG_NAME
-       default "j721e_evm"
-
-config ENV_SOURCE_FILE
-       default "j721e"
-
-source "board/ti/common/Kconfig"
-
-endif
index 06aba53d9b0ecccfb348e6a45902bbaf895ea260..19199dbeadd5e3e72de046d850b6c15cd3b3e77f 100644 (file)
@@ -7,5 +7,3 @@ F:      configs/j721e_evm_r5_defconfig
 F:     configs/j721e_evm_a72_defconfig
 F:     configs/j721e_sk_r5_defconfig
 F:     configs/j721e_sk_a72_defconfig
-F:     configs/j7200_evm_r5_defconfig
-F:     configs/j7200_evm_a72_defconfig
index 38bfd7d496340707dd8734806fbd03019df1d272..e5b4225b3ceda9030118cf167db025c82da4bed7 100644 (file)
@@ -16,9 +16,6 @@ run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
 #if CONFIG_TARGET_J721E_R5_EVM
 addr_mcur5f0_0load=0x89000000
 name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw
-#elif CONFIG_TARGET_J7200_R5_EVM
-addr_mcur5f0_0load=0x89000000
-name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw
 #endif
 
 boot_targets=mmc1 mmc0 usb pxe dhcp
@@ -28,15 +25,7 @@ bootpart=1:2
 bootdir=/boot
 rd_spec=-
 
-#if CONFIG_TARGET_J7200_A72_EVM
-do_main_cpsw0_qsgmii_phyinit=1
-init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
-       gpio clear gpio@22_16
-main_cpsw0_qsgmii_phyinit=
-       if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
-               run init_main_cpsw0_qsgmii_phy;
-       fi;
-#elif CONFIG_TARGET_J721E_A72_EVM
+#if CONFIG_TARGET_J721E_A72_EVM
 init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
        gpio clear gpio@22_16
 main_cpsw0_qsgmii_phyinit=
@@ -51,7 +40,3 @@ main_cpsw0_qsgmii_phyinit=
 #if CONFIG_TARGET_J721E_A72_EVM
 rproc_fw_binaries=2 /lib/firmware/j7-main-r5f0_0-fw 3 /lib/firmware/j7-main-r5f0_1-fw 4 /lib/firmware/j7-main-r5f1_0-fw 5 /lib/firmware/j7-main-r5f1_1-fw 6 /lib/firmware/j7-c66_0-fw 7 /lib/firmware/j7-c66_1-fw 8 /lib/firmware/j7-c71_0-fw
 #endif
-
-#if CONFIG_TARGET_J7200_A72_EVM
-rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw
-#endif
index 4760f7509f511e46e65075e9a654f7fd4cd8ffd5..15f5b5eab3e7761db4d535d8f901f047cd679878 100644 (file)
@@ -6,7 +6,7 @@ CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_SOC_K3_J721E=y
+CONFIG_SOC_K3_J7200=y
 CONFIG_TARGET_J7200_A72_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
index 8df921c028bbed3b675180b0c830f717c8144326..0ae07ddf7c8762f335cbd505fba4e067edb18428 100644 (file)
@@ -5,7 +5,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x70000
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_SOC_K3_J721E=y
+CONFIG_SOC_K3_J7200=y
 CONFIG_K3_EARLY_CONS=y
 CONFIG_TARGET_J7200_R5_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
index 734a71a8ef00c7d673dfe409a99191b91cd10774..b38e559e45a64cb6c56ca2bc4c11e14f46ab7e2c 100644 (file)
@@ -82,6 +82,8 @@ static const struct soc_attr ti_k3_soc_clk_data[] = {
                .family = "J721E",
                .data = &j721e_clk_platdata,
        },
+#endif
+#if IS_ENABLED(CONFIG_SOC_K3_J7200)
        {
                .family = "J7200",
                .data = &j7200_clk_platdata,
index 94ec13ba7ca44e22c78c5a9bf8ca0d87aed24465..90c20a6a3fa539d051a00e091458ca4a39eccaf6 100644 (file)
@@ -5,6 +5,7 @@ obj-$(CONFIG_TI_K3_PSIL) += k3-psil-data.o
 k3-psil-data-y += k3-psil.o
 k3-psil-data-$(CONFIG_SOC_K3_AM654) += k3-psil-am654.o
 k3-psil-data-$(CONFIG_SOC_K3_J721E) += k3-psil-j721e.o
+k3-psil-data-$(CONFIG_SOC_K3_J7200) += k3-psil-j721e.o
 k3-psil-data-$(CONFIG_SOC_K3_J721S2) += k3-psil-j721s2.o
 k3-psil-data-$(CONFIG_SOC_K3_AM642) += k3-psil-am64.o
 k3-psil-data-$(CONFIG_SOC_K3_AM625) += k3-psil-am62.o
index 369e679886fa44ee1f25f4c0fc6d9c35ab0071dc..39798844a8ad4b12af4a1ca7159d3be3de506d17 100644 (file)
@@ -20,6 +20,8 @@ struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
                        soc_ep_map = &am654_ep_map;
                else if (IS_ENABLED(CONFIG_SOC_K3_J721E))
                        soc_ep_map = &j721e_ep_map;
+               else if (IS_ENABLED(CONFIG_SOC_K3_J7200))
+                       soc_ep_map = &j721e_ep_map;
                else if (IS_ENABLED(CONFIG_SOC_K3_J721S2))
                        soc_ep_map = &j721s2_ep_map;
                else if (IS_ENABLED(CONFIG_SOC_K3_AM642))
index 3370f80231d5065ea3df8038c885a9b2494ad1ad..2e61e0c7de17c06a2514ca684a3d76999bbb5503 100644 (file)
@@ -16,7 +16,7 @@ struct ti_sci_resource_static_data {
 
 #if IS_ENABLED(CONFIG_K3_DM_FW)
 
-#if IS_ENABLED(CONFIG_SOC_K3_J721E)
+#if IS_ENABLED(CONFIG_SOC_K3_J721E) || IS_ENABLED(CONFIG_SOC_K3_J7200)
 static struct ti_sci_resource_static_data rm_static_data[] = {
        /* Free rings */
        {
index 9dafb04a2a1bcd6f04f828812f2841bd8ddc3254..c35193073400c2b92fe4bd0bed55f6a8d6ea4300 100644 (file)
@@ -94,6 +94,8 @@ static const struct soc_attr ti_k3_soc_pd_data[] = {
                .family = "J721E",
                .data = &j721e_pd_platdata,
        },
+#endif
+#if IS_ENABLED(CONFIG_SOC_K3_J7200)
        {
                .family = "J7200",
                .data = &j7200_pd_platdata,
index 899d7585489271b1f83b05d692238dcfef30fbe2..2a40b0c9f812ebfb9225398ddf4fff4504a14846 100644 (file)
@@ -71,7 +71,7 @@ choice
        depends on K3_DDRSS
        prompt "K3 DDRSS Arch Support"
 
-       default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4
+       default K3_J721E_DDRSS if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J784S4
        default K3_AM64_DDRSS if SOC_K3_AM642
        default K3_AM64_DDRSS if SOC_K3_AM625
        default K3_AM62A_DDRSS if SOC_K3_AM62A7 || SOC_K3_AM62P5 || SOC_K3_J722S