summaryrefslogtreecommitdiff
path: root/board/bsh/imx8mn_smm_s2/spl.c
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@amarulasolutions.com>2022-05-15 12:41:09 +0300
committerStefano Babic <sbabic@denx.de>2022-05-20 13:36:48 +0300
commit35461fe94e4d827b4d94f7dcdfa5ead0261960fb (patch)
treeee38de2f3525cfb986cb65316593d4a27a7019c5 /board/bsh/imx8mn_smm_s2/spl.c
parentcc980143c01e76ff17004021777c2a65dcde367a (diff)
downloadu-boot-35461fe94e4d827b4d94f7dcdfa5ead0261960fb.tar.xz
imx: imx8mn_smm_s2/s2pro: Enable TrustZone
When the board was added, enabling tzc380 was left off by mistake. The optee was tested with the following configuration in s2pro + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 6MiB */ + optee_core@5f800000 { + reg = <0x00 0x5f800000 0x00 0x600000>; + }; + + /* 2MiB */ + optee_shm@5fe00000 { + reg = <0x00 0x5fe00000 0x00 0x200000>; + }; + }; + Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Diffstat (limited to 'board/bsh/imx8mn_smm_s2/spl.c')
-rw-r--r--board/bsh/imx8mn_smm_s2/spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/bsh/imx8mn_smm_s2/spl.c b/board/bsh/imx8mn_smm_s2/spl.c
index 4ccee7c31a..ce0504a011 100644
--- a/board/bsh/imx8mn_smm_s2/spl.c
+++ b/board/bsh/imx8mn_smm_s2/spl.c
@@ -72,6 +72,8 @@ void board_init_f(ulong dummy)
preloader_console_init();
+ enable_tzc380();
+
/* DDR initialization */
spl_dram_init();