All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] imx: imx8mn_smm_s2/s2pro: Enable TrustZone
@ 2022-05-15  9:41 Michael Trimarchi
  2022-05-20 13:43 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Trimarchi @ 2022-05-15  9:41 UTC (permalink / raw)
  To: U-Boot-Denx
  Cc: Stefano Babic, Fabio Estevam, Dario Binacchi, linux-amarula,
	Jagan Teki, Ariel D'Alessandro

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>
---
 board/bsh/imx8mn_smm_s2/spl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/bsh/imx8mn_smm_s2/spl.c b/board/bsh/imx8mn_smm_s2/spl.c
index 097b60c055..549fc6992b 100644
--- a/board/bsh/imx8mn_smm_s2/spl.c
+++ b/board/bsh/imx8mn_smm_s2/spl.c
@@ -86,6 +86,8 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
+	enable_tzc380();
+
 	/* DDR initialization */
 	spl_dram_init();
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] imx: imx8mn_smm_s2/s2pro: Enable TrustZone
  2022-05-15  9:41 [PATCH] imx: imx8mn_smm_s2/s2pro: Enable TrustZone Michael Trimarchi
@ 2022-05-20 13:43 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2022-05-20 13:43 UTC (permalink / raw)
  To: Michael Trimarchi, u-boot

> 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>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-20 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15  9:41 [PATCH] imx: imx8mn_smm_s2/s2pro: Enable TrustZone Michael Trimarchi
2022-05-20 13:43 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.