From fbfe7607700718f4d1f1e3f70f17f49e1c7519ae Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Thu, 26 Jun 2025 15:21:41 +0530 Subject: meta-ti-bsp: tfa: add build flags for am62xxsip-evm Due to 512MiB DDR limitation of am62x SiP, the memory map has been modified with OP-TEE moved to bottom of DDR after atf to 0x80080000, this requires modifications to ATF's BL32_BASE. PRELOADED_BL33_BASE has also been updated to 0x82000000 to reflect the updated SPL_TEXT_BASE from u-boot. Signed-off-by: Anshul Dalal Signed-off-by: Ryan Eatmon --- meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 8 ++++++++ .../recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc | 2 ++ 2 files changed, 10 insertions(+) diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf index 38bd4407..fc525a9a 100644 --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf @@ -4,6 +4,14 @@ require conf/machine/include/am62xx.inc +TFA_K3_BL32_BASE = "0x80080000" +TFA_K3_BL32_BASE:bsp-ti-6_6 = "" +TFA_K3_BL32_BASE:bsp-ti-6_1 = "" + +TFA_K3_PRELOADED_BL33 = "0x82000000" +TFA_K3_PRELOADED_BL33:bsp-ti-6_6 = "" +TFA_K3_PRELOADED_BL33:bsp-ti-6_1 = "" + KERNEL_DEVICETREE_PREFIX = " \ ti/k3-am625 \ ti/k3-am62x-sk \ diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc index cb956a00..c17ac9de 100644 --- a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc @@ -18,5 +18,7 @@ TFA_INSTALL_TARGET:am62lxx = "bl31 bl1" TFA_SPD:am62lxx = "" EXTRA_OEMAKE += "${@ 'K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" +EXTRA_OEMAKE += "${@ 'BL32_BASE=' + d.getVar('TFA_K3_BL32_BASE') if d.getVar('TFA_K3_BL32_BASE') else ''}" +EXTRA_OEMAKE += "${@ 'PRELOADED_BL33_BASE=' + d.getVar('TFA_K3_PRELOADED_BL33') if d.getVar('TFA_K3_PRELOADED_BL33') else ''}" EXTRA_OEMAKE += "${@ 'K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" EXTRA_OEMAKE:append:ti-falcon = " PRELOADED_BL33_BASE=0x82000000 K3_HW_CONFIG_BASE=0x88000000" -- cgit v1.2.3-54-g00ecf