imx: imx8mn_smm_s2/s2pro: Enable TrustZone
PATCH 1/1 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>;
+ };
+ };
+
--- board/bsh/imx8mn_smm_s2/spl.c | 2 ++ 1 file changed, 2 insertions(+)
board/bsh/imx8mn_smm_s2/spl.c +2 -0
@@ -86,6 +86,8 @@ void board_init_f(ulong dummy)preloader_console_init (); +enable_tzc380 (); +/* DDR initialization */ spl_dram_init ();
Signature · 1 line
2.25.1
PATCH 1/1 imx: imx8mn_smm_s2/s2pro: Enable TrustZone
Quoted 26 lines
When the board was added, enabling tzc380 was left off by mistake. The optee was tested with the following configuration in s2pro
(quoted diff) +23
-0+ 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>; + }; + }; +
Quoted 1 line
Signed-off-by Michael Trimarchi <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================