Skip to content

Commit

Permalink
optee-os: imx: configure SHMEM section
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
  • Loading branch information
ldts committed Oct 28, 2019
1 parent 0bebd5e commit 6cc08a9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From e915a809d0f03e0f2ebb3ad585b2206c0d4b2511 Mon Sep 17 00:00:00 2001
From: Jorge Ramirez-Ortiz <[email protected]>
Date: Sun, 27 Oct 2019 16:39:45 +0100
Subject: [PATCH 1/2] [FIO toup] plat-imx: configure the SHMEM section

Signed-off-by: Jorge Ramirez-Ortiz <[email protected]>
---
core/arch/arm/plat-imx/main.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/core/arch/arm/plat-imx/main.c b/core/arch/arm/plat-imx/main.c
index c632fa85..602365b5 100644
--- a/core/arch/arm/plat-imx/main.c
+++ b/core/arch/arm/plat-imx/main.c
@@ -112,6 +112,10 @@ register_phys_mem(MEM_AREA_TEE_COHERENT,
CORE_MMU_PGDIR_SIZE);
#endif

+#ifdef TEE_SHMEM_START
+register_dynamic_shm(TEE_SHMEM_START, TEE_SHMEM_SIZE);
+#endif
+
#if defined(CFG_PL310)
register_phys_mem_pgdir(MEM_AREA_IO_SEC,
ROUNDDOWN(PL310_BASE, CORE_MMU_PGDIR_SIZE),
--
2.17.1

1 change: 1 addition & 0 deletions recipes-security/optee/optee-os_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SRC_URI_append_qemuarm64 = " \
SRC_URI_append_imx = " \
file://0001-Minimal-HUK-implementation-without-full-CAAM-driver.patch \
file://0001-imx-huk-imx7-and-imx7ulp-caam-clock-support.patch \
file://0001-plat-imx-configure-the-SHMEM-section.patch \
"

PV = "3.6.0+git"
Expand Down

0 comments on commit 6cc08a9

Please sign in to comment.