Skip to contentSkip to conversation

conf: machine: Remove leftover k3r5 SOC_FAMILY names

PATCH New Andrew Davis 1 participant 8 messages May 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 conf: machine: Remove leftover k3r5 SOC_FAMILY names

These are not used anymore and most have been removed, these look to be leftovers, remove them.

---
 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf   | 1 -
 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf | 1 -
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf    | 1 -
 3 files changed, 3 deletions(-)
meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf +0 -1
index 80b6497f..2af3317e 100644
@@ -3,7 +3,6 @@
 #@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-hs-fs"
 
 SYSFW_SOC = "am62ax"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +0 -1
index 54059dd7..d2064b27 100644
@@ -3,7 +3,6 @@
 #@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-gp"
 
 SYSFW_SOC = "am62x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf +0 -1
index 4369becc..e932928a 100644
@@ -3,7 +3,6 @@
 #@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x_sr2"
 SYSFW_CONFIG = "evm"
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/8 conf: machine: am65xx: Deploy SR2 version of SYSFW

The HS boards use the SR2 version of the silicon, ship that version of the sysfw.itb image.

---
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf | 2 +-
 meta-ti-bsp/conf/machine/include/am65xx.inc      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +1 -1
index 3ca728dc..5ac0c578 100644
@@ -4,7 +4,7 @@
 
 require conf/machine/include/k3r5.inc
 
-SYSFW_SOC = "am65x"
+SYSFW_SOC = "am65x_sr2"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "hs"
 
meta-ti-bsp/conf/machine/include/am65xx.inc +1 -1
index 548a96f2..98895c33 100644
@@ -18,7 +18,7 @@ IMAGE_BOOT_FILES += "sysfw.itb"
 IMAGE_BOOT_FILES += "sysfw-am65x-gp-evm.itb"
 
 # Since default sysfw.itb on AM65x is for GP, add a version for HS-SE
-IMAGE_BOOT_FILES += "sysfw-am65x-hs-evm.itb"
+IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb"
 
 TFA_BOARD = "generic"
 
Signature · 1 line
2.39.2
#2 lore raw

PATCH 3/8 conf: machine: j721s2: Include the non-HS config in the HS config

In reply to Andrew Davis

Everything is the same, so just include the non-HS config to set vars.

---
 meta-ti-bsp/conf/machine/j721s2-hs-evm.conf | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)
meta-ti-bsp/conf/machine/j721s2-hs-evm.conf +1 -16
index 564b571d..4cf32a28 100644
@@ -2,19 +2,4 @@
 #@NAME: J721S2 HS EVM
 #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
 
-require conf/machine/include/j721s2.inc
-
-TFA_K3_USART = "0x8"
-OPTEE_K3_USART = "0x8"
-
-KERNEL_DEVICETREE_PREFIX = " \
-    ti/k3-j721s2 \
-    ti/k3-j7200-mcspi-loopback \
-    ti/k3-am68-sk \
-"
-
-KERNEL_DEVICETREE = " \
-    ti/k3-j721s2-common-proc-board.dtb \
-"
-
-UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
+require conf/machine/j721s2-evm.conf
Signature · 1 line
2.39.2
#3 lore raw

PATCH 4/8 conf: machine: j784s4: Include the non-HS config in the HS config

In reply to Andrew Davis

Everything is the same, so just include the non-HS config to set vars.

---
 meta-ti-bsp/conf/machine/j784s4-hs-evm.conf | 24 +--------------------
 1 file changed, 1 insertion(+), 23 deletions(-)
meta-ti-bsp/conf/machine/j784s4-hs-evm.conf +1 -23
index 847a26b6..8fa1c1fd 100644
@@ -2,26 +2,4 @@
 #@NAME: J784S4 HS EVM
 #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
 
-require conf/machine/include/j784s4.inc
-
-TFA_K3_USART = "0x8"
-OPTEEMACHINE = "k3-j784s4"
-OPTEE_K3_USART = "0x8"
-
-KERNEL_DEVICETREE_PREFIX = " \
-    ti/k3-j784s4 \
-    ti/k3-j7200-mcspi-loopback \
-    ti/k3-am69-sk \
-"
-
-KERNEL_DEVICETREE = " \
-    ti/k3-j784s4-evm.dtb \
-"
-
-UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
-
-TFA_BOARD = "j784s4"
-
-SPL_BINARY = "tispl.bin_HS"
-UBOOT_BINARY = "u-boot.img_HS"
-UBOOT_SYMLINK = "u-boot.img"
+require conf/machine/j784s4-evm.conf
Signature · 1 line
2.39.2
#4 lore raw

PATCH 5/8 conf: machine: am62xx: Remove old SPL_BINARY and UBOOT_BINARY overrides

In reply to Andrew Davis

The defaults set in am62xx.inc are correct now and these can be dropped.

---
 meta-ti-bsp/conf/machine/am62xx-evm.conf | 4 ----
 1 file changed, 4 deletions(-)
meta-ti-bsp/conf/machine/am62xx-evm.conf +0 -4
index 5b86a1f5..c4357be3 100644
@@ -11,7 +11,3 @@ KERNEL_DEVICETREE = " \
 "
 
 UBOOT_MACHINE = "am62x_evm_a53_defconfig"
-
-SPL_BINARY = "tispl.bin"
-UBOOT_BINARY = "u-boot.img"
-UBOOT_SYMLINK = "u-boot.img"
Signature · 1 line
2.39.2
#5 lore raw

PATCH 6/8 conf: machine: Do not override SPL_BINARY on AM65x and J721e

In reply to Andrew Davis

In U-Boot the names of these files have been updated to match our expected defaults. Remove these fixups.

---
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf    | 2 --
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf | 2 --
 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf     | 2 --
 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf  | 2 --
 4 files changed, 8 deletions(-)
meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +0 -2
index 2a7b5990..b1b2490e 100644
@@ -8,6 +8,4 @@ SYSFW_SOC = "am65x"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "gp"
 
-SPL_BINARY = "tiboot3.${SPL_SUFFIX}_unsigned"
-
 UBOOT_MACHINE = "am65x_evm_r5_defconfig"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +0 -2
index 5ac0c578..4fb2bf50 100644
@@ -8,6 +8,4 @@ SYSFW_SOC = "am65x_sr2"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "hs"
 
-SPL_BINARY = "tiboot3.${SPL_SUFFIX}"
-
 UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf +0 -2
index d54af565..070bf7aa 100644
@@ -8,6 +8,4 @@ SYSFW_SOC = "j721e"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "gp"
 
-SPL_BINARY = "tiboot3.${SPL_SUFFIX}_unsigned"
-
 UBOOT_MACHINE = "j721e_evm_r5_defconfig"
meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf +0 -2
index c529985f..7904c660 100644
@@ -8,6 +8,4 @@ SYSFW_SOC = "j721e_sr1_1"
 SYSFW_CONFIG = "evm"
 SYSFW_SUFFIX = "hs"
 
-SPL_BINARY = "tiboot3.${SPL_SUFFIX}"
-
 UBOOT_MACHINE = "j721e_evm_r5_defconfig"
Signature · 1 line
2.39.2
#6 lore raw

PATCH 7/8 conf: machine: am65xx: Also deploy full named tiboot3.bin files

In reply to Andrew Davis

The platforms with combined boot image have full names for tiboot3.bin and to keep things consistent we can do the same here. Deploy these files.

---
 meta-ti-bsp/conf/machine/include/am65xx.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-ti-bsp/conf/machine/include/am65xx.inc +4 -2
index 98895c33..4b2c05e7 100644
@@ -14,10 +14,12 @@ KERNEL_DEVICETREE = " \
 
 IMAGE_BOOT_FILES += "sysfw.itb"
 
-# Default sysfw.itb on AM65x is for GP
+# Default on AM65x is for GP
+IMAGE_BOOT_FILES += "tiboot3-am65x-gp-evm.bin"
 IMAGE_BOOT_FILES += "sysfw-am65x-gp-evm.itb"
 
-# Since default sysfw.itb on AM65x is for GP, add a version for HS-SE
+# Since default on AM65x is for GP, add a version for HS-SE
+IMAGE_BOOT_FILES += "tiboot3-am65x_sr2-hs-evm.bin"
 IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb"
 
 TFA_BOARD = "generic"
Signature · 1 line
2.39.2
#7 lore raw

PATCH 8/8 conf: machine: j721e: Also deploy full named tiboot3.bin files

In reply to Andrew Davis

The platforms with combined boot image have full names for tiboot3.bin and to keep things consistent we can do the same here. Deploy these files.

---
 meta-ti-bsp/conf/machine/include/j721e.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
meta-ti-bsp/conf/machine/include/j721e.inc +6 -3
index f77099a1..ca653770 100644
@@ -8,13 +8,16 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
 
 IMAGE_BOOT_FILES += "sysfw.itb"
 
-# Default sysfw.itb on J721e is for GP
+# Default on J721e is for GP
+IMAGE_BOOT_FILES += "tiboot3-j721e-gp-evm.bin"
 IMAGE_BOOT_FILES += "sysfw-j721e-gp-evm.itb"
 
-# Since default sysfw.itb on J721e is for GP, add a version for HS-FS
+# Since default on J721e is for GP, add a version for HS-FS
+IMAGE_BOOT_FILES += "tiboot3-j721e_sr2-hs-fs-evm.bin"
 IMAGE_BOOT_FILES += "sysfw-j721e_sr2-hs-fs-evm.itb"
 
-# Since default sysfw.itb on J721e is for GP, add a version for HS-SE
+# Since default on J721e is for GP, add a version for HS-SE
+IMAGE_BOOT_FILES += "tiboot3-j721e_sr1_1-hs-evm.bin"
 IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb"
 
 TFA_BOARD = "generic"
Signature · 1 line
2.39.2