]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx95_evk: Initialize the ELE RNG context
authorJi Luo <ji.luo@nxp.com>
Thu, 13 Nov 2025 08:21:45 +0000 (16:21 +0800)
committerFabio Estevam <festevam@nabladev.com>
Sat, 29 Nov 2025 17:42:24 +0000 (14:42 -0300)
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

index 3d64097b4c7574778ef31b43f03963ec203a4b2a..48b47d2aed9639c04efc75ab7fd6f74cd32f17b5 100644 (file)
@@ -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)