mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
meta-ti-bsp: Add Support for AM62L
- Add machine configuration for am62lxx-evm - Add TFA, OPTEE, firmware & u-boot overrides Signed-off-by: Chirag Shilwant <c-shilwant@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
committed by
Ryan Eatmon
parent
8c32ee287e
commit
d91ef21814
13
meta-ti-bsp/conf/machine/am62lxx-evm.conf
Normal file
13
meta-ti-bsp/conf/machine/am62lxx-evm.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM62L EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM62L EVM
|
||||
|
||||
require conf/machine/include/am62lxx.inc
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am62l \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
UBOOT_MACHINE = "am62lx_evm_defconfig"
|
||||
12
meta-ti-bsp/conf/machine/include/am62lxx.inc
Normal file
12
meta-ti-bsp/conf/machine/include/am62lxx.inc
Normal file
@@ -0,0 +1,12 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY:append = ":am62lxx"
|
||||
|
||||
MACHINE_FEATURES += "screen"
|
||||
|
||||
# Default tiboot3.bin on AM62L is for HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-am62lx-hs-fs-evm.bin"
|
||||
|
||||
TFA_BOARD = "am62l"
|
||||
TFA_K3_SYSTEM_SUSPEND = "1"
|
||||
|
||||
OPTEEMACHINE = "k3-am62lx"
|
||||
@@ -31,6 +31,7 @@ PLAT_SFX:am65xx = "am65xx"
|
||||
PLAT_SFX:am64xx = "am64xx"
|
||||
PLAT_SFX:am62xx = "am62xx"
|
||||
PLAT_SFX:am62axx = "am62axx"
|
||||
PLAT_SFX:am62lxx = "am62lxx"
|
||||
PLAT_SFX:am62pxx = "am62pxx"
|
||||
|
||||
DM_FW_DIR = "ti-dm/${PLAT_SFX}"
|
||||
@@ -50,6 +51,7 @@ DM_FW_LIST:am65xx = ""
|
||||
DM_FW_LIST:am64xx = ""
|
||||
DM_FW_LIST:am62xx = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:am62axx = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:am62lxx = ""
|
||||
DM_FW_LIST:am62pxx = "${DM_FIRMWARE}"
|
||||
|
||||
do_install() {
|
||||
|
||||
@@ -26,4 +26,10 @@ do_deploy:k3r5() {
|
||||
install -m 644 ${S}/ti-sysfw/ti-fs-stub-firmware-* ${DEPLOYDIR}/ti-sysfw
|
||||
}
|
||||
|
||||
do_deploy:am62lxx(){
|
||||
install -d ${DEPLOYDIR}/ti-sysfw
|
||||
install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
|
||||
install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
|
||||
@@ -7,5 +7,8 @@ TFA_BUILD_TARGET:k3 = "all"
|
||||
TFA_INSTALL_TARGET:k3 = "bl31"
|
||||
TFA_SPD:k3 = "opteed"
|
||||
|
||||
# For am62lxx, install bl1 & bl31 using TFA_INSTALL_TARGET
|
||||
TFA_INSTALL_TARGET:am62lxx = "bl31 bl1"
|
||||
|
||||
EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}"
|
||||
EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}"
|
||||
|
||||
@@ -53,8 +53,10 @@ PLAT_SFX:am65xx = "am65xx"
|
||||
PLAT_SFX:am64xx = "am64xx"
|
||||
PLAT_SFX:am62xx = "am62xx"
|
||||
PLAT_SFX:am62axx = "am62axx"
|
||||
PLAT_SFX:am62lxx = "am62lxx"
|
||||
PLAT_SFX:am62pxx = "am62pxx"
|
||||
|
||||
PACKAGECONFIG[ap-trusted-rom] = "BL1=${STAGING_DIR_HOST}/firmware/bl1.bin,,trusted-firmware-a"
|
||||
PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
|
||||
PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os"
|
||||
PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw"
|
||||
@@ -68,6 +70,7 @@ PACKAGECONFIG:append:j722s = " dm"
|
||||
PACKAGECONFIG:append:j742s2 = " dm"
|
||||
PACKAGECONFIG:append:am62xx = " dm"
|
||||
PACKAGECONFIG:append:am62axx = " dm"
|
||||
PACKAGECONFIG:append:am62lxx = " ap-trusted-rom"
|
||||
PACKAGECONFIG:append:am62pxx = " dm"
|
||||
|
||||
COMPATIBLE_MACHINE = "(ti-soc)"
|
||||
@@ -226,6 +229,16 @@ uboot_deploy_config:append:k3r5 () {
|
||||
done
|
||||
}
|
||||
|
||||
uboot_deploy_config:append:am62lxx () {
|
||||
for f in ${B}/${config}/tiboot3-*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
f_base=$(basename $f)
|
||||
install -m 644 $f ${DEPLOYDIR}/${f_base}-${type}
|
||||
ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
uboot_deploy:append:k3r5 () {
|
||||
for f in ${B}/tiboot3-*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
@@ -240,6 +253,14 @@ uboot_deploy:append:k3r5 () {
|
||||
done
|
||||
}
|
||||
|
||||
uboot_deploy:append:am62lxx () {
|
||||
for f in ${B}/tiboot3*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
install -m 644 $f ${DEPLOYDIR}/
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
uboot_deploy_config:append () {
|
||||
cd ${DEPLOYDIR}
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
|
||||
@@ -6,6 +6,7 @@ EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
|
||||
EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
|
||||
|
||||
EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
EXTRA_OEMAKE:append:j722s = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
|
||||
Reference in New Issue
Block a user