From f2a0a9b835d0afd34c62c5750576b094f961a911 Mon Sep 17 00:00:00 2001 From: Bryan O'Donoghue Date: Thu, 11 Jan 2018 14:36:56 +0000 Subject: warp7 : run sec_init for CAAM RNG This patch adds a sec_init call into board_init. Doing so in conjunction with the patch "drivers/crypto/fsl: assign job-rings to non-TrustZone" enables use of the CAAM in Linux. u-boot will initialise the RNG and assign ownership of the job-ring registers to a non-TrustZone context. Linux then simply has to detect or be told to skip RNG initialisation. Signed-off-by: Bryan O'Donoghue Signed-off-by: Ryan Harkin --- board/warp7/warp7.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 9ec2ed1877..3de903f161 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -166,6 +167,10 @@ int board_init(void) setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); #endif + #ifdef CONFIG_FSL_CAAM + sec_init(); + #endif + return 0; } -- cgit v1.2.3