Skip to contentSkip to conversation

configs: j721s2: merge HS and non-HS defconfigs

PATCH In review Manorit Chawdhry 2 participants 6 messages Feb 24, 2023 – Mar 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 configs: j721s2: merge HS and non-HS defconfigs

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

---
v1->v2:
update MAINTAINERS

 MAINTAINERS                         |   2 -
 configs/j721s2_evm_a72_defconfig    |   3 +-
 configs/j721s2_evm_r5_defconfig     |   1 +
 configs/j721s2_hs_evm_a72_defconfig | 213 ----------------------------
 configs/j721s2_hs_evm_r5_defconfig  | 176 -----------------------
 5 files changed, 3 insertions(+), 392 deletions(-)
 delete mode 100644 configs/j721s2_hs_evm_a72_defconfig
 delete mode 100644 configs/j721s2_hs_evm_r5_defconfig
MAINTAINERS +0 -2
index b9c505d5faa7..bdea0704adc0 100644
@@ -1457,8 +1457,6 @@ F:	configs/j7200_hs_evm_a72_defconfig
 F:	configs/j7200_hs_evm_r5_defconfig
 F:	configs/j721e_hs_evm_a72_defconfig
 F:	configs/j721e_hs_evm_r5_defconfig
-F:	configs/j721s2_hs_evm_a72_defconfig
-F:	configs/j721s2_hs_evm_r5_defconfig
 
 TPM DRIVERS
 M:	Ilias Apalodimas <[email protected]>
configs/j721s2_evm_a72_defconfig +2 -1
index 84b4fb083191..c880a8d37158 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_TI_SECURE_DEVICE=y
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x8000
 CONFIG_SPL_GPIO=y
@@ -32,7 +33,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
+CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs; if test ${boot_fit} -eq 1; then run get_fit_${boot}; run get_overlaystring; run run_fit; else; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; fi;"
 CONFIG_LOGLEVEL=7
 CONFIG_SPL_MAX_SIZE=0xc0000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
configs/j721s2_evm_r5_defconfig +1 -0
index 1f2102a9f91f..51f2da66c9d1 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_TI_SECURE_DEVICE=y
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x10000
 CONFIG_SPL_GPIO=y
configs/j721s2_hs_evm_a72_defconfig deleted +0 -213

213 lines not on this page · raw message

configs/j721s2_hs_evm_r5_defconfig deleted +0 -176

176 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 2/2 configs: j7200: Merge HS and non-HS defconfigs

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

---
v1->v2:
update MAINTAINERS

 MAINTAINERS                        |   2 -
 configs/j7200_evm_a72_defconfig    |   3 +-
 configs/j7200_evm_r5_defconfig     |   1 +
 configs/j7200_hs_evm_a72_defconfig | 205 -----------------------------
 configs/j7200_hs_evm_r5_defconfig  | 171 ------------------------
 5 files changed, 3 insertions(+), 379 deletions(-)
 delete mode 100644 configs/j7200_hs_evm_a72_defconfig
 delete mode 100644 configs/j7200_hs_evm_r5_defconfig
MAINTAINERS +0 -2
index bdea0704adc0..0516b36f5c16 100644
@@ -1453,8 +1453,6 @@ F:	configs/k2g_hs_evm_defconfig
 F:	configs/k2l_hs_evm_defconfig
 F:	configs/am65x_hs_evm_r5_defconfig
 F:	configs/am65x_hs_evm_a53_defconfig
-F:	configs/j7200_hs_evm_a72_defconfig
-F:	configs/j7200_hs_evm_r5_defconfig
 F:	configs/j721e_hs_evm_a72_defconfig
 F:	configs/j721e_hs_evm_r5_defconfig
 
configs/j7200_evm_a72_defconfig +2 -1
index 053f29b11f54..e588c4ada5cc 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_TI_SECURE_DEVICE=y
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x8000
 CONFIG_SPL_GPIO=y
@@ -32,7 +33,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
+CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs; if test ${boot_fit} -eq 1; then run get_fit_${boot}; run get_overlaystring; run run_fit; else; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; fi;"
 CONFIG_LOGLEVEL=7
 CONFIG_SPL_MAX_SIZE=0xc0000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
configs/j7200_evm_r5_defconfig +1 -0
index dc6c1b6935df..6fbc2e96321d 100644
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_K3=y
+CONFIG_TI_SECURE_DEVICE=y
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SYS_MALLOC_F_LEN=0x70000
 CONFIG_SPL_GPIO=y
configs/j7200_hs_evm_a72_defconfig deleted +0 -205

205 lines not on this page · raw message

configs/j7200_hs_evm_r5_defconfig deleted +0 -171

171 lines not on this page · raw message

Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH v2 2/2] configs: j7200: Merge HS and non-HS defconfigs

Quoted 9 lines · Manorit Chawdhry

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#3 lore raw
In reply to Manorit Chawdhry
Quoted 9 lines · Manorit Chawdhry

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#4 lore raw
Quoted 5 lines · Tom Rini
Quoted 3 lines · Manorit Chawdhry

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Quoted 9 lines
Quoted 6 lines

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

Applied to u-boot/next, thanks!

Hi Tom,

Please revert this series, they need some other fixes also along with them, i had dropped them during spinning of the seperate series, forgot to comment here.

Regards,
Manorit

Quoted 2 lines
Signature · 1 line
Tom
#5 lore raw
Quoted 13 lines · Manorit Chawdhry
Quoted 12 lines · Tom Rini
Quoted 9 lines · Manorit Chawdhry

K3 devices have runtime type board detection. Make the default defconfig include the secure configuration. Then remove the HS specific config.

Non-HS devices will continue to boot due to runtime device type detection. If TI_SECURE_DEV_PKG is not set the build will emit warnings, for non-HS devices these can be ignored.

Quoted 8 lines
Quoted 2 lines

Applied to u-boot/next, thanks!

Hi Tom,

Please revert this series, they need some other fixes also along with them, i had dropped them during spinning of the seperate series, forgot to comment here.

Done, thanks.

Signature · 1 line
Tom