diff options
author | Anshul Dalal <anshuld@ti.com> | 2025-06-26 15:21:42 +0530 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-06-26 09:05:46 -0500 |
commit | 266610c6f3b2c41fe6629ec24db11a709a8edba7 (patch) | |
tree | 610f077edaefc11c9c8b0818e5e6303df03fd37a | |
parent | 1892ec68f72e40b720606fe8105f6bb4aa79b335 (diff) | |
download | meta-ti-266610c6f3b2c41fe6629ec24db11a709a8edba7.tar.gz |
meta-ti-bsp: optee: add build flags for am62xxsip-evm
CFG_TZDRAM_START in OPTEE defines it's load address and is used to
configure the page tables accordingly.
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 the OPTEE's CFG_TZDRAM_START.
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/conf/machine/am62xxsip-evm.conf | 4 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf index fc525a9a..52121675 100644 --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf | |||
@@ -12,6 +12,10 @@ TFA_K3_PRELOADED_BL33 = "0x82000000" | |||
12 | TFA_K3_PRELOADED_BL33:bsp-ti-6_6 = "" | 12 | TFA_K3_PRELOADED_BL33:bsp-ti-6_6 = "" |
13 | TFA_K3_PRELOADED_BL33:bsp-ti-6_1 = "" | 13 | TFA_K3_PRELOADED_BL33:bsp-ti-6_1 = "" |
14 | 14 | ||
15 | OPTEE_K3_TZDRAM_START = "0x80080000" | ||
16 | OPTEE_K3_TZDRAM_START:bsp-ti-6_6 = "" | ||
17 | OPTEE_K3_TZDRAM_START:bsp-ti-6_1 = "" | ||
18 | |||
15 | KERNEL_DEVICETREE_PREFIX = " \ | 19 | KERNEL_DEVICETREE_PREFIX = " \ |
16 | ti/k3-am625 \ | 20 | ti/k3-am625 \ |
17 | ti/k3-am62x-sk \ | 21 | ti/k3-am62x-sk \ |
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc index d1de4368..61a74a06 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc | |||
@@ -4,6 +4,7 @@ inherit ti-secdev | |||
4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" | 4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" |
5 | 5 | ||
6 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" | 6 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" |
7 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_TZDRAM_START='+ d.getVar('OPTEE_K3_TZDRAM_START') if d.getVar('OPTEE_K3_TZDRAM_START') else ''}" | ||
7 | 8 | ||
8 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" | 9 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" |
9 | EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1" | 10 | EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1" |