U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] imx95_evk: Initialize the ELE RNG context
@ 2025-11-13  8:21 alice.guo
  2025-11-28  9:08 ` 回复: " Alice Guo (OSS)
  2025-11-29 21:22 ` Fabio Estevam
  0 siblings, 2 replies; 6+ messages in thread
From: alice.guo @ 2025-11-13  8:21 UTC (permalink / raw)
  To: u-boot, uboot-imx, sbabic, festevam, trini
  Cc: ye.li, peng.fan, ji.luo, alice.guo

From: Ji Luo <ji.luo@nxp.com>

OP-TEE requires a trusted RNG. This is provided by ELE on i.MX95. Start
the initialization of the ELE RNG context before OP-TEE startup to allow
OP-TEE to derive RNG later.

Signed-off-by: Ji Luo <ji.luo@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
---
 board/freescale/imx95_evk/spl.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/board/freescale/imx95_evk/spl.c b/board/freescale/imx95_evk/spl.c
index 3d64097b4c7..48b47d2aed9 100644
--- a/board/freescale/imx95_evk/spl.c
+++ b/board/freescale/imx95_evk/spl.c
@@ -7,6 +7,7 @@
 #include <asm/arch/mu.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/boot_mode.h>
+#include <asm/mach-imx/ele_api.h>
 #include <asm/sections.h>
 #include <hang.h>
 #include <init.h>
@@ -32,7 +33,13 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
 
 void spl_board_init(void)
 {
+	int ret;
+
 	puts("Normal Boot\n");
+
+	ret = ele_start_rng();
+	if (ret)
+		printf("Fail to start RNG: %d\n", ret);
 }
 
 void board_init_f(ulong dummy)
-- 
2.43.0


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

end of thread, other threads:[~2025-11-29 21:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-13  8:21 [PATCH v1] imx95_evk: Initialize the ELE RNG context alice.guo
2025-11-28  9:08 ` 回复: " Alice Guo (OSS)
2025-11-28 11:00   ` Fabio Estevam
2025-11-28 11:42     ` Francesco Dolcini
2025-11-28 16:27       ` Ye Li
2025-11-29 21:22 ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox