回复: [PATCH v1] imx95_evk: Initialize the ELE RNG context
Alice Guo (OSS)
alice.guo at oss.nxp.com
Fri Nov 28 10:08:39 CET 2025
> -----邮件原件-----
> 发件人: U-Boot <u-boot-bounces at lists.denx.de> 代表
> alice.guo at oss.nxp.com
> 发送时间: 2025年11月13日 16:22
> 收件人: u-boot at lists.denx.de; dl-uboot-imx <uboot-imx at nxp.com>;
> sbabic at nabladev.com; festevam at gmail.com; trini at konsulko.com
> 抄送: Ye Li <ye.li at nxp.com>; Peng Fan <peng.fan at nxp.com>; Ji Luo
> <ji.luo at nxp.com>; Alice Guo <alice.guo at nxp.com>
> 主题: [PATCH v1] imx95_evk: Initialize the ELE RNG context
>
> From: Ji Luo <ji.luo at 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 at nxp.com>
> Signed-off-by: Alice Guo <alice.guo at 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
Gentle ping: Any comments on this patch?
Best regards,
Alice Guo
More information about the U-Boot
mailing list