summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-01-11 14:36:56 +0000
committerRyan Harkin <ryan.harkin@linaro.org>2018-01-24 16:00:23 +0000
commitf2a0a9b835d0afd34c62c5750576b094f961a911 (patch)
tree0b14754c85c6503e5bf67f34bce7bb1abf13cc6e
parentbdeea6256347f1451fcf8690a0c1c9445a668c8a (diff)
warp7 : run sec_init for CAAM RNGlinaro-20180124-001
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 <bryan.odonoghue@linaro.org> Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rw-r--r--board/warp7/warp7.c5
1 files changed, 5 insertions, 0 deletions
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 <asm/io.h>
#include <common.h>
#include <fsl_esdhc.h>
+#include <fsl_sec.h>
#include <i2c.h>
#include <mmc.h>
#include <asm/arch/crm_regs.h>
@@ -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;
}