aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-06-15 18:09:14 +0800
committerStefano Babic <sbabic@denx.de>2023-07-13 11:29:40 +0200
commit1c3f5df2597b80d4dac635152fc5dd1a9c4150b9 (patch)
tree7dce6c7cc60f37d6416b814a68fd467af161b949 /board
parent78b4cf75307f4704881b7b7501721f27f2691f9f (diff)
downloadu-boot-1c3f5df2597b80d4dac635152fc5dd1a9c4150b9.zip
u-boot-1c3f5df2597b80d4dac635152fc5dd1a9c4150b9.tar.gz
u-boot-1c3f5df2597b80d4dac635152fc5dd1a9c4150b9.tar.bz2
imx: imx8ulp: start the ELE RNG at boot
On the imx8ulp A1 SoC, the ELE RNG needs to be manually started. Signed-off-by: Clement Faure <clement.faure@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8ulp_evk/spl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/imx8ulp_evk/spl.c b/board/freescale/imx8ulp_evk/spl.c
index b7c6ff0..66d0f68 100644
--- a/board/freescale/imx8ulp_evk/spl.c
+++ b/board/freescale/imx8ulp_evk/spl.c
@@ -123,6 +123,16 @@ void spl_board_init(void)
ret = ele_release_caam(0x7, &res);
if (ret)
printf("ele release caam failed %d, 0x%x\n", ret, res);
+
+ /*
+ * RNG start only available on the A1 soc revision.
+ * Check some JTAG register for the SoC revision.
+ */
+ if (!is_soc_rev(CHIP_REV_1_0)) {
+ ret = ele_start_rng();
+ if (ret)
+ printf("Fail to start RNG: %d\n", ret);
+ }
}
void board_init_f(ulong dummy)