diff options
| author | Ji Luo <[email protected]> | 2025-11-13 16:21:45 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-11-29 14:42:24 -0300 |
| commit | 3a4c79dd2fd83da1aa178f8504d7aa48a0554d32 (patch) | |
| tree | 9892a09d30b948bec98081a9a4dbcc99ca7d409a | |
| parent | 8cad37db3667cf1bff8c36b15e17c63e53786873 (diff) | |
imx95_evk: Initialize the ELE RNG context
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 <[email protected]>
Signed-off-by: Alice Guo <[email protected]>
| -rw-r--r-- | board/freescale/imx95_evk/spl.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) |
