summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParesh Bhagat <p-bhagat@ti.com>2023-03-20 11:24:05 +0000
committerRyan Eatmon <reatmon@ti.com>2023-03-21 13:03:29 -0500
commit129b52b0fdd374c62a40899843a6433d44705775 (patch)
tree9d6fa15d2e48a4c760a84c3ff79abf49e59104e5
parent0288443726ba9969e2732d8e47e68cf30e99d75e (diff)
downloadmeta-ti-129b52b0fdd374c62a40899843a6433d44705775.tar.gz
machine: Add am62axx evm configuration
Lets add the basic AM62Axx-evm configuration. - Add configurations. - Add firmware overrides. - Add u-boot overrides. - Add tifs-lpm-stub. - Add cnm-wave-fw. Signed-off-by: Sai Sree Kartheek Adivi <s-adivi@ti.com> Signed-off-by: Paresh Bhagat <p-bhagat@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf11
-rw-r--r--meta-ti-bsp/conf/machine/am62axx-evm.conf11
-rw-r--r--meta-ti-bsp/conf/machine/include/am62axx.inc15
-rw-r--r--meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb2
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb1
-rw-r--r--meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb2
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc2
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb65
9 files changed, 87 insertions, 23 deletions
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
new file mode 100644
index 00000000..ca30537f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: AM62AXX EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM62Axx EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "am62ax"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp"
10
11UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
new file mode 100644
index 00000000..4eb179f3
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: AM62AXX EVM
3#@DESCRIPTION: Machine configuration for the TI AM62AXX EVM
4
5require conf/machine/include/am62axx.inc
6
7KERNEL_DEVICETREE = " \
8 ti/k3-am62a7-sk.dtb \
9"
10
11UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/include/am62axx.inc b/meta-ti-bsp/conf/machine/include/am62axx.inc
new file mode 100644
index 00000000..cc477366
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/am62axx.inc
@@ -0,0 +1,15 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":am62axx"
3
4MACHINE_FEATURES += "screen touchscreen"
5
6SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9TFA_K3_SYSTEM_SUSPEND = "1"
10
11do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
12do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
13
14TFA_BOARD = "lite"
15OPTEEMACHINE = "k3-am62x"
diff --git a/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb
index e7aa9ef4..2f75f4e3 100644
--- a/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb
+++ b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb
@@ -13,7 +13,7 @@ PR = "${INC_PR}.1"
13 13
14CLEANBROKEN = "1" 14CLEANBROKEN = "1"
15 15
16COMPATIBLE_MACHINE = "j721s2|j784s4" 16COMPATIBLE_MACHINE = "j721s2|j784s4|am62axx"
17 17
18PACKAGE_ARCH = "${MACHINE_ARCH}" 18PACKAGE_ARCH = "${MACHINE_ARCH}"
19 19
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index eb641270..37d022e9 100644
--- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/meta-ti-bsp/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:am62axx-evm-k3r5 = "fs"
42 43
43SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin" 44SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin"
44 45
diff --git a/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb b/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
index ce5f4e1f..2db761ba 100644
--- a/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
+++ b/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
@@ -7,7 +7,7 @@ PR = "${INC_PR}.0"
7 7
8CLEANBROKEN = "1" 8CLEANBROKEN = "1"
9 9
10COMPATIBLE_MACHINE = "am62xx" 10COMPATIBLE_MACHINE = "am62xx|am62axx"
11 11
12PACKAGE_ARCH = "${MACHINE_ARCH}" 12PACKAGE_ARCH = "${MACHINE_ARCH}"
13 13
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
index 8c7bf9dd..1eca5c00 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
@@ -37,6 +37,7 @@ PACKAGECONFIG:append:j7200 = " dm"
37PACKAGECONFIG:append:j721s2 = " dm" 37PACKAGECONFIG:append:j721s2 = " dm"
38PACKAGECONFIG:append:j784s4 = " dm" 38PACKAGECONFIG:append:j784s4 = " dm"
39PACKAGECONFIG:append:am62xx = " dm" 39PACKAGECONFIG:append:am62xx = " dm"
40PACKAGECONFIG:append:am62axx = " dm"
40 41
41COMPATIBLE_MACHINE = "(ti-soc)" 42COMPATIBLE_MACHINE = "(ti-soc)"
42 43
diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
index 808a4766..69796915 100644
--- a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
@@ -30,6 +30,8 @@ RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721e = " vxd-dec-fw"
30# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs 30# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
31RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw" 31RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2 = " cnm-wave-fw"
32RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw" 32RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j784s4 = " cnm-wave-fw"
33RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " cnm-wave-fw"
33 34
34# Add run-time dependency for TIFS Low Power Module stub 35# Add run-time dependency for TIFS Low Power Module stub
35RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62xx = " tifs-lpm-stub" 36RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62xx = " tifs-lpm-stub"
37RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62axx = " tifs-lpm-stub"
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
index ddfa07be..9b94a61e 100644
--- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -20,6 +20,7 @@ PLAT_SFX:j784s4 = "j784s4"
20PLAT_SFX:am65xx = "am65xx" 20PLAT_SFX:am65xx = "am65xx"
21PLAT_SFX:am64xx = "am64xx" 21PLAT_SFX:am64xx = "am64xx"
22PLAT_SFX:am62xx = "am62xx" 22PLAT_SFX:am62xx = "am62xx"
23PLAT_SFX:am62axx = "am62axx"
23 24
24FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" 25FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
25require recipes-bsp/ti-linux-fw/ti-linux-fw.inc 26require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
@@ -63,31 +64,34 @@ C7X_4_FW = "ipc_echo_test_c7x_4_release_strip.xe71"
63ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" 64ETH_FW = "app_remoteswitchcfg_server_strip.xer5f"
64 65
65DM_FW_LIST = "" 66DM_FW_LIST = ""
66DM_FW_LIST:am65xx = "" 67DM_FW_LIST:am65xx = ""
67DM_FW_LIST:j721e = "${DM_FIRMWARE}" 68DM_FW_LIST:j721e = "${DM_FIRMWARE}"
68DM_FW_LIST:j7200 = "${DM_FIRMWARE}" 69DM_FW_LIST:j7200 = "${DM_FIRMWARE}"
69DM_FW_LIST:j721s2 = "${DM_FIRMWARE}" 70DM_FW_LIST:j721s2 = "${DM_FIRMWARE}"
70DM_FW_LIST:am64xx = "" 71DM_FW_LIST:am64xx = ""
71DM_FW_LIST:am62xx = "${DM_FIRMWARE}" 72DM_FW_LIST:am62xx = "${DM_FIRMWARE}"
72DM_FW_LIST:j784s4 = "${DM_FIRMWARE}" 73DM_FW_LIST:am62axx = "${DM_FIRMWARE}"
74DM_FW_LIST:j784s4 = "${DM_FIRMWARE}"
73 75
74IPC_FW_LIST = "" 76IPC_FW_LIST = ""
75IPC_FW_LIST:am65xx = "${MCU_1_0_FW} ${MCU_1_1_FW}" 77IPC_FW_LIST:am65xx = "${MCU_1_0_FW} ${MCU_1_1_FW}"
76IPC_FW_LIST:j721e = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C66_1_FW} ${C66_2_FW} ${C7X_1_FW}" 78IPC_FW_LIST:j721e = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C66_1_FW} ${C66_2_FW} ${C7X_1_FW}"
77IPC_FW_LIST:j7200 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW}" 79IPC_FW_LIST:j7200 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW}"
78IPC_FW_LIST:j721s2 = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_2_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW}" 80IPC_FW_LIST:j721s2 = " ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_2_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW}"
79IPC_FW_LIST:am64xx = "${MCU_1_0_FW} ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW}" 81IPC_FW_LIST:am64xx = "${MCU_1_0_FW} ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW}"
80IPC_FW_LIST:am62xx = " ${MCU_2_0_FW}" 82IPC_FW_LIST:am62xx = " ${MCU_2_0_FW}"
81IPC_FW_LIST:j784s4 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW} ${C7X_4_FW}" 83IPC_FW_LIST:am62axx = " ${MCU_2_0_FW} ${C7X_1_FW}"
84IPC_FW_LIST:j784s4 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW} ${C7X_4_FW}"
82 85
83ETH_FW_LIST = "" 86ETH_FW_LIST = ""
84ETH_FW_LIST:am65xx = "" 87ETH_FW_LIST:am65xx = ""
85ETH_FW_LIST:j721e = "${ETH_FW}" 88ETH_FW_LIST:j721e = "${ETH_FW}"
86ETH_FW_LIST:j7200 = "${ETH_FW}" 89ETH_FW_LIST:j7200 = "${ETH_FW}"
87ETH_FW_LIST:j721s2 = "" 90ETH_FW_LIST:j721s2 = ""
88ETH_FW_LIST:am64xx = "" 91ETH_FW_LIST:am64xx = ""
89ETH_FW_LIST:am62xx = "" 92ETH_FW_LIST:am62xx = ""
90ETH_FW_LIST:j784s4 = "${ETH_FW}" 93ETH_FW_LIST:am62axx = ""
94ETH_FW_LIST:j784s4 = "${ETH_FW}"
91 95
92# Update the am64xx ipc binaries to be consistent with other platforms 96# Update the am64xx ipc binaries to be consistent with other platforms
93do_install:prepend:am64xx() { 97do_install:prepend:am64xx() {
@@ -107,6 +111,13 @@ do_install:prepend:am62xx() {
107 ) 111 )
108} 112}
109 113
114# Update the am62axx ipc binaries to be consistent with other platforms
115do_install:prepend:am62axx() {
116 ( cd ${RTOS_IPC_FW_DIR}; \
117 ln -s am62a-mcu-r5f0_0-fw ${MCU_1_0_FW}; \
118 )
119}
120
110# Sign the firmware 121# Sign the firmware
111do_install:prepend() { 122do_install:prepend() {
112 # DM Firmware 123 # DM Firmware
@@ -183,6 +194,11 @@ ALTERNATIVE:${PN}:am62xx = "\
183 am62-main-r5f0_0-fw \ 194 am62-main-r5f0_0-fw \
184 " 195 "
185 196
197ALTERNATIVE:${PN}:am62axx = "\
198 am62a-mcu-r5f0_0-fw \
199 am62a-c71_0-fw \
200 "
201
186ALTERNATIVE:${PN}:j721e = "\ 202ALTERNATIVE:${PN}:j721e = "\
187 j7-mcu-r5f0_0-fw \ 203 j7-mcu-r5f0_0-fw \
188 j7-mcu-r5f0_1-fw \ 204 j7-mcu-r5f0_1-fw \
@@ -257,6 +273,9 @@ ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am6
257ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw" 273ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw"
258ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw" 274ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw"
259 275
276ALTERNATIVE_LINK_NAME[am62a-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62a-mcu-r5f0_0-fw"
277ALTERNATIVE_LINK_NAME[am62a-c71_0-fw] = "${nonarch_base_libdir}/firmware/am62a-c71_0-fw"
278
260ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_0-fw" 279ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_0-fw"
261ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw" 280ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw"
262ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-main-r5f0_0-fw" 281ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-main-r5f0_0-fw"
@@ -326,6 +345,10 @@ ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ip
326ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE}" 345ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE}"
327ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${MCU_2_0_FW}" 346ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${MCU_2_0_FW}"
328 347
348ALTERNATIVE_TARGET[am62a-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE}"
349ALTERNATIVE_TARGET[am62a-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${MCU_2_0_FW}"
350ALTERNATIVE_TARGET[am62a-c71_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${C7X_1_FW}"
351
329ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE}" 352ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE}"
330ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${MCU_1_1_FW}" 353ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/${MCU_1_1_FW}"
331ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/${ETH_FW}" 354ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/${ETH_FW}"