summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirag Shilwant <c-shilwant@ti.com>2023-01-06 12:13:30 +0530
committerRyan Eatmon <reatmon@ti.com>2023-01-06 15:08:19 -0600
commitef50eed5b93b97715cea163ab200a3801a7b118e (patch)
tree3b6f6574dade27d3e328063286533272e2126677
parentacd476ad0dae42a79e2f4f0cfd10bfdc28914f99 (diff)
downloadmeta-ti-ef50eed5b93b97715cea163ab200a3801a7b118e.tar.gz
machine: Add AM62Q HS-SE evm configuration
Lets add the basic AM62Q HS-SE configuration. - Add configurations. - Add ti-sci-firmware overrides. - Add u-boot overrides. - Add optee overrides. - Add ti-rtos-firmware overrides. Signed-off-by: Chirag Shilwant <c-shilwant@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--conf/machine/am62xx-lp-evm-k3r5-hs-se.conf14
-rw-r--r--conf/machine/am62xx-lp-evm-k3r5.conf12
-rw-r--r--conf/machine/am62xx-lp-evm.conf6
-rw-r--r--conf/machine/include/am62xx-lp.inc18
-rw-r--r--conf/multiconfig/k3r5-hs-se.conf3
-rw-r--r--recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb1
-rw-r--r--recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend4
-rw-r--r--recipes-bsp/u-boot/u-boot-ti.inc1
-rw-r--r--recipes-security/optee/optee-os_%.bbappend4
-rw-r--r--recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb30
10 files changed, 90 insertions, 3 deletions
diff --git a/conf/machine/am62xx-lp-evm-k3r5-hs-se.conf b/conf/machine/am62xx-lp-evm-k3r5-hs-se.conf
new file mode 100644
index 00000000..b752ee7e
--- /dev/null
+++ b/conf/machine/am62xx-lp-evm-k3r5-hs-se.conf
@@ -0,0 +1,14 @@
1#@TYPE: Machine
2#@NAME: AM62xx LPSK HS-SE EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM62xx LP HS-SE EVM (R5F core)
4
5# Booting HS-SE requires different SYSFW, the rest is handled at runtime
6
7require conf/machine/include/k3r5.inc
8SOC_FAMILY_append = ":k3r5-hs-se"
9
10SYSFW_SOC = "am62x"
11SYSFW_CONFIG = "evm"
12SYSFW_SUFFIX = "hs"
13
14UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
diff --git a/conf/machine/am62xx-lp-evm-k3r5.conf b/conf/machine/am62xx-lp-evm-k3r5.conf
index ca4ced5a..0aaca286 100644
--- a/conf/machine/am62xx-lp-evm-k3r5.conf
+++ b/conf/machine/am62xx-lp-evm-k3r5.conf
@@ -1,11 +1,19 @@
1#@TYPE: Machine 1#@TYPE: Machine
2#@NAME: AM62XX LP EVM (R5F) 2#@NAME: AM62XX LP GP EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM62xx LP EVM (R5F core) 3#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
4 4
5require conf/machine/include/k3r5.inc 5require conf/machine/include/k3r5.inc
6SOC_FAMILY_append = ":k3r5-gp"
6 7
7SYSFW_SOC = "am62x" 8SYSFW_SOC = "am62x"
8SYSFW_CONFIG = "evm" 9SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp" 10SYSFW_SUFFIX = "gp"
10 11
12SYSFW_TIBOOT3_SYMLINK = ""
13
11UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" 14UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
15
16SPL_BINARY = ""
17UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
18UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
19UBOOT_SYMLINK = "u-boot-r5spl-gp.${UBOOT_SUFFIX}"
diff --git a/conf/machine/am62xx-lp-evm.conf b/conf/machine/am62xx-lp-evm.conf
index ef8e8692..3230b84d 100644
--- a/conf/machine/am62xx-lp-evm.conf
+++ b/conf/machine/am62xx-lp-evm.conf
@@ -2,7 +2,7 @@
2#@NAME: AM62XX LP EVM 2#@NAME: AM62XX LP EVM
3#@DESCRIPTION: Machine configuration for the TI AM62XX LP EVM 3#@DESCRIPTION: Machine configuration for the TI AM62XX LP EVM
4 4
5require conf/machine/include/am62xx.inc 5require conf/machine/include/am62xx-lp.inc
6 6
7MACHINE_FEATURES += "gpu" 7MACHINE_FEATURES += "gpu"
8 8
@@ -13,4 +13,8 @@ KERNEL_DEVICETREE = " \
13 ti/k3-am625-sk-csi2-ov5640.dtbo \ 13 ti/k3-am625-sk-csi2-ov5640.dtbo \
14" 14"
15 15
16SPL_BINARY = "tispl.bin_HS"
17UBOOT_BINARY = "u-boot.img_HS"
18UBOOT_SYMLINK = "u-boot.img"
19
16UBOOT_MACHINE = "am62x_lpsk_a53_defconfig" 20UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
diff --git a/conf/machine/include/am62xx-lp.inc b/conf/machine/include/am62xx-lp.inc
new file mode 100644
index 00000000..c38de868
--- /dev/null
+++ b/conf/machine/include/am62xx-lp.inc
@@ -0,0 +1,18 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY_append = ":am62xx"
3
4MACHINE_FEATURES += "screen touchscreen"
5
6SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9TFA_K3_SYSTEM_SUSPEND = "1"
10
11# Default tiboot3.bin on AM62x LP is for HS-SE
12BBMULTICONFIG += "k3r5-hs-se"
13do_image_wic[mcdepends] += "mc::k3r5-hs-se:ti-sci-fw:do_deploy"
14do_image_tar[mcdepends] += "mc::k3r5-hs-se:ti-sci-fw:do_deploy"
15
16TFA_BOARD = "lite"
17OPTEEMACHINE = "k3-am62x"
18OPTEEOUTPUTMACHINE = "k3"
diff --git a/conf/multiconfig/k3r5-hs-se.conf b/conf/multiconfig/k3r5-hs-se.conf
new file mode 100644
index 00000000..701f8e88
--- /dev/null
+++ b/conf/multiconfig/k3r5-hs-se.conf
@@ -0,0 +1,3 @@
1require k3r5.conf
2
3MACHINE_append = "-hs-se"
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 1b8530ec..0fb3a832 100644
--- a/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -39,6 +39,7 @@ SYSFW_PREFIX_j784s4-evm-k3r5 = "fs"
39SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs" 39SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs"
40SYSFW_PREFIX_am62xx-evm-k3r5 = "fs" 40SYSFW_PREFIX_am62xx-evm-k3r5 = "fs"
41SYSFW_PREFIX_am62xx-lp-evm-k3r5 = "fs" 41SYSFW_PREFIX_am62xx-lp-evm-k3r5 = "fs"
42SYSFW_PREFIX_am62xx-lp-evm-k3r5-hs-se = "fs"
42SYSFW_PREFIX_am62axx-evm-k3r5 = "fs" 43SYSFW_PREFIX_am62axx-evm-k3r5 = "fs"
43 44
44SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin" 45SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin"
diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
index e3c171dc..bb969da2 100644
--- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
+++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
@@ -31,6 +31,10 @@ do_compile_append_am64xx-evm() {
31 tfa_sign_k3hs 31 tfa_sign_k3hs
32} 32}
33 33
34do_compile_append_am62xx-lp-evm() {
35 tfa_sign_k3hs
36}
37
34do_compile_append_j7-hs-evm() { 38do_compile_append_j7-hs-evm() {
35 tfa_sign_k3hs 39 tfa_sign_k3hs
36} 40}
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc
index 90f60980..7932e072 100644
--- a/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/recipes-bsp/u-boot/u-boot-ti.inc
@@ -34,6 +34,7 @@ PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-i
34PACKAGECONFIG_append_aarch64 = " atf optee" 34PACKAGECONFIG_append_aarch64 = " atf optee"
35PACKAGECONFIG_append_j7 = " dm" 35PACKAGECONFIG_append_j7 = " dm"
36PACKAGECONFIG_append_am62xx = " dm" 36PACKAGECONFIG_append_am62xx = " dm"
37PACKAGECONFIG_append_am62xx-lp-evm = " dm"
37PACKAGECONFIG_append_am62axx = " dm" 38PACKAGECONFIG_append_am62axx = " dm"
38 39
39COMPATIBLE_MACHINE = "(ti-soc)" 40COMPATIBLE_MACHINE = "(ti-soc)"
diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend
index dab30c02..ca2fd42e 100644
--- a/recipes-security/optee/optee-os_%.bbappend
+++ b/recipes-security/optee/optee-os_%.bbappend
@@ -70,6 +70,10 @@ do_compile_append_am64xx-evm() {
70 optee_sign_k3hs 70 optee_sign_k3hs
71} 71}
72 72
73do_compile_append_am62xx-lp-evm() {
74 optee_sign_k3hs
75}
76
73do_compile_append_j7-hs-evm() { 77do_compile_append_j7-hs-evm() {
74 optee_sign_k3hs 78 optee_sign_k3hs
75} 79}
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
index 59145740..47b29632 100644
--- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
+++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -24,6 +24,7 @@ PLAT_SFX_j784s4-hs-evm = "j784s4"
24PLAT_SFX_am65xx = "am65xx" 24PLAT_SFX_am65xx = "am65xx"
25PLAT_SFX_am64xx = "am64xx" 25PLAT_SFX_am64xx = "am64xx"
26PLAT_SFX_am62xx = "am62xx" 26PLAT_SFX_am62xx = "am62xx"
27PLAT_SFX_am62xx-lp-evm = "am62xx"
27PLAT_SFX_am62axx = "am62axx" 28PLAT_SFX_am62axx = "am62axx"
28 29
29FILESEXTRAPATHS_prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" 30FILESEXTRAPATHS_prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
@@ -180,6 +181,15 @@ do_install_prepend_am62xx() {
180 ) 181 )
181} 182}
182 183
184# AM62Q HS-SE support
185do_install_prepend_am62xx-lp-evm() {
186 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
187 ( cd ${RTOS_DM_FW_DIR}; \
188 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
189 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
190 )
191}
192
183#Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level 193#Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level
184do_install() { 194do_install() {
185 195
@@ -355,6 +365,13 @@ do_install_am62xx() {
355 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} 365 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
356} 366}
357 367
368do_install_am62xx-lp-evm() {
369 install -d ${LEGACY_IPC_FW_DIR}
370 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
371 # DM Firmware
372 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
373}
374
358do_install_am62axx() { 375do_install_am62axx() {
359 install -d ${LEGACY_IPC_FW_DIR} 376 install -d ${LEGACY_IPC_FW_DIR}
360 # DM+IPC Firmware 377 # DM+IPC Firmware
@@ -372,6 +389,11 @@ do_deploy_am62xx() {
372 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR} 389 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR}
373} 390}
374 391
392do_deploy_am62xx-lp-evm() {
393 install -d ${DEPLOYDIR}
394 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR}
395}
396
375do_deploy_am62axx() { 397do_deploy_am62axx() {
376 install -d ${DEPLOYDIR} 398 install -d ${DEPLOYDIR}
377 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR} 399 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${DEPLOYDIR}
@@ -395,6 +417,11 @@ ALTERNATIVE_${PN}_am62xx = "\
395 am62-main-r5f0_0-fw \ 417 am62-main-r5f0_0-fw \
396 " 418 "
397 419
420ALTERNATIVE_${PN}_am62xx-lp-evm = "\
421 am62-mcu-m4f0_0-fw \
422 am62-main-r5f0_0-fw \
423 "
424
398ALTERNATIVE_${PN}_am62axx = "\ 425ALTERNATIVE_${PN}_am62axx = "\
399 am62a-mcu-r5f0_0-fw \ 426 am62a-mcu-r5f0_0-fw \
400 am62a-c71_0-fw \ 427 am62a-c71_0-fw \
@@ -532,6 +559,9 @@ TARGET_MCU_M4FSS0_0_am64xx = "am64-mcu-m4f0_0-fw"
532TARGET_MAIN_R5FSS0_0_am62xx = "am62-main-r5f0_0-fw" 559TARGET_MAIN_R5FSS0_0_am62xx = "am62-main-r5f0_0-fw"
533TARGET_MCU_M4FSS0_0_am62xx = "am62-mcu-m4f0_0-fw" 560TARGET_MCU_M4FSS0_0_am62xx = "am62-mcu-m4f0_0-fw"
534 561
562TARGET_MAIN_R5FSS0_0_am62xx-lp-evm = "am62-main-r5f0_0-fw"
563TARGET_MCU_M4FSS0_0_am62xx-lp-evm = "am62-mcu-m4f0_0-fw"
564
535TARGET_C7X_0_am62axx = "am62a-c71_0-fw" 565TARGET_C7X_0_am62axx = "am62a-c71_0-fw"
536TARGET_MCU_R5F0_0_am62axx = "am62a-mcu-r5f0_0-fw" 566TARGET_MCU_R5F0_0_am62axx = "am62a-mcu-r5f0_0-fw"
537 567