diff options
author | Chirag Shilwant <c-shilwant@ti.com> | 2023-01-06 12:13:30 +0530 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-01-06 15:08:19 -0600 |
commit | ef50eed5b93b97715cea163ab200a3801a7b118e (patch) | |
tree | 3b6f6574dade27d3e328063286533272e2126677 | |
parent | acd476ad0dae42a79e2f4f0cfd10bfdc28914f99 (diff) | |
download | meta-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.conf | 14 | ||||
-rw-r--r-- | conf/machine/am62xx-lp-evm-k3r5.conf | 12 | ||||
-rw-r--r-- | conf/machine/am62xx-lp-evm.conf | 6 | ||||
-rw-r--r-- | conf/machine/include/am62xx-lp.inc | 18 | ||||
-rw-r--r-- | conf/multiconfig/k3r5-hs-se.conf | 3 | ||||
-rw-r--r-- | recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 1 | ||||
-rw-r--r-- | recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | 4 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 1 | ||||
-rw-r--r-- | recipes-security/optee/optee-os_%.bbappend | 4 | ||||
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 30 |
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 | |||
7 | require conf/machine/include/k3r5.inc | ||
8 | SOC_FAMILY_append = ":k3r5-hs-se" | ||
9 | |||
10 | SYSFW_SOC = "am62x" | ||
11 | SYSFW_CONFIG = "evm" | ||
12 | SYSFW_SUFFIX = "hs" | ||
13 | |||
14 | UBOOT_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 | ||
5 | require conf/machine/include/k3r5.inc | 5 | require conf/machine/include/k3r5.inc |
6 | SOC_FAMILY_append = ":k3r5-gp" | ||
6 | 7 | ||
7 | SYSFW_SOC = "am62x" | 8 | SYSFW_SOC = "am62x" |
8 | SYSFW_CONFIG = "evm" | 9 | SYSFW_CONFIG = "evm" |
9 | SYSFW_SUFFIX = "gp" | 10 | SYSFW_SUFFIX = "gp" |
10 | 11 | ||
12 | SYSFW_TIBOOT3_SYMLINK = "" | ||
13 | |||
11 | UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" | 14 | UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" |
15 | |||
16 | SPL_BINARY = "" | ||
17 | UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}" | ||
18 | UBOOT_IMAGE = "u-boot-r5spl-gp-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
19 | UBOOT_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 | ||
5 | require conf/machine/include/am62xx.inc | 5 | require conf/machine/include/am62xx-lp.inc |
6 | 6 | ||
7 | MACHINE_FEATURES += "gpu" | 7 | MACHINE_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 | ||
16 | SPL_BINARY = "tispl.bin_HS" | ||
17 | UBOOT_BINARY = "u-boot.img_HS" | ||
18 | UBOOT_SYMLINK = "u-boot.img" | ||
19 | |||
16 | UBOOT_MACHINE = "am62x_lpsk_a53_defconfig" | 20 | UBOOT_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 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | SOC_FAMILY_append = ":am62xx" | ||
3 | |||
4 | MACHINE_FEATURES += "screen touchscreen" | ||
5 | |||
6 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" | ||
7 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
8 | |||
9 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
10 | |||
11 | # Default tiboot3.bin on AM62x LP is for HS-SE | ||
12 | BBMULTICONFIG += "k3r5-hs-se" | ||
13 | do_image_wic[mcdepends] += "mc::k3r5-hs-se:ti-sci-fw:do_deploy" | ||
14 | do_image_tar[mcdepends] += "mc::k3r5-hs-se:ti-sci-fw:do_deploy" | ||
15 | |||
16 | TFA_BOARD = "lite" | ||
17 | OPTEEMACHINE = "k3-am62x" | ||
18 | OPTEEOUTPUTMACHINE = "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 @@ | |||
1 | require k3r5.conf | ||
2 | |||
3 | MACHINE_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" | |||
39 | SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs" | 39 | SYSFW_PREFIX_j784s4-hs-evm-k3r5 = "fs" |
40 | SYSFW_PREFIX_am62xx-evm-k3r5 = "fs" | 40 | SYSFW_PREFIX_am62xx-evm-k3r5 = "fs" |
41 | SYSFW_PREFIX_am62xx-lp-evm-k3r5 = "fs" | 41 | SYSFW_PREFIX_am62xx-lp-evm-k3r5 = "fs" |
42 | SYSFW_PREFIX_am62xx-lp-evm-k3r5-hs-se = "fs" | ||
42 | SYSFW_PREFIX_am62axx-evm-k3r5 = "fs" | 43 | SYSFW_PREFIX_am62axx-evm-k3r5 = "fs" |
43 | 44 | ||
44 | SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin" | 45 | SYSFW_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 | ||
34 | do_compile_append_am62xx-lp-evm() { | ||
35 | tfa_sign_k3hs | ||
36 | } | ||
37 | |||
34 | do_compile_append_j7-hs-evm() { | 38 | do_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 | |||
34 | PACKAGECONFIG_append_aarch64 = " atf optee" | 34 | PACKAGECONFIG_append_aarch64 = " atf optee" |
35 | PACKAGECONFIG_append_j7 = " dm" | 35 | PACKAGECONFIG_append_j7 = " dm" |
36 | PACKAGECONFIG_append_am62xx = " dm" | 36 | PACKAGECONFIG_append_am62xx = " dm" |
37 | PACKAGECONFIG_append_am62xx-lp-evm = " dm" | ||
37 | PACKAGECONFIG_append_am62axx = " dm" | 38 | PACKAGECONFIG_append_am62axx = " dm" |
38 | 39 | ||
39 | COMPATIBLE_MACHINE = "(ti-soc)" | 40 | COMPATIBLE_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 | ||
73 | do_compile_append_am62xx-lp-evm() { | ||
74 | optee_sign_k3hs | ||
75 | } | ||
76 | |||
73 | do_compile_append_j7-hs-evm() { | 77 | do_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" | |||
24 | PLAT_SFX_am65xx = "am65xx" | 24 | PLAT_SFX_am65xx = "am65xx" |
25 | PLAT_SFX_am64xx = "am64xx" | 25 | PLAT_SFX_am64xx = "am64xx" |
26 | PLAT_SFX_am62xx = "am62xx" | 26 | PLAT_SFX_am62xx = "am62xx" |
27 | PLAT_SFX_am62xx-lp-evm = "am62xx" | ||
27 | PLAT_SFX_am62axx = "am62axx" | 28 | PLAT_SFX_am62axx = "am62axx" |
28 | 29 | ||
29 | FILESEXTRAPATHS_prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" | 30 | FILESEXTRAPATHS_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 | ||
185 | do_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 |
184 | do_install() { | 194 | do_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 | ||
368 | do_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 | |||
358 | do_install_am62axx() { | 375 | do_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 | ||
392 | do_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 | |||
375 | do_deploy_am62axx() { | 397 | do_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 | ||
420 | ALTERNATIVE_${PN}_am62xx-lp-evm = "\ | ||
421 | am62-mcu-m4f0_0-fw \ | ||
422 | am62-main-r5f0_0-fw \ | ||
423 | " | ||
424 | |||
398 | ALTERNATIVE_${PN}_am62axx = "\ | 425 | ALTERNATIVE_${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" | |||
532 | TARGET_MAIN_R5FSS0_0_am62xx = "am62-main-r5f0_0-fw" | 559 | TARGET_MAIN_R5FSS0_0_am62xx = "am62-main-r5f0_0-fw" |
533 | TARGET_MCU_M4FSS0_0_am62xx = "am62-mcu-m4f0_0-fw" | 560 | TARGET_MCU_M4FSS0_0_am62xx = "am62-mcu-m4f0_0-fw" |
534 | 561 | ||
562 | TARGET_MAIN_R5FSS0_0_am62xx-lp-evm = "am62-main-r5f0_0-fw" | ||
563 | TARGET_MCU_M4FSS0_0_am62xx-lp-evm = "am62-mcu-m4f0_0-fw" | ||
564 | |||
535 | TARGET_C7X_0_am62axx = "am62a-c71_0-fw" | 565 | TARGET_C7X_0_am62axx = "am62a-c71_0-fw" |
536 | TARGET_MCU_R5F0_0_am62axx = "am62a-mcu-r5f0_0-fw" | 566 | TARGET_MCU_R5F0_0_am62axx = "am62a-mcu-r5f0_0-fw" |
537 | 567 | ||