summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-01-11 14:36:56 +0000
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-01-18 13:46:07 +0000
commitd7bc92a8d772737ea19d8ab8dd3526645f24471a (patch)
tree6242dd5b7dc8d267d473d4f2850bada7ade94faf
parent4fdd8723ed2cba22ee2bdc6214cdc2335b3132db (diff)
warp7 : run sec_init for CAAM RNGlinaro-20180111-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>
-rw-r--r--board/warp7/warp7.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index eda5fceed4..47a154815c 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -16,6 +16,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>
@@ -231,6 +232,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;
}
@@ -372,5 +377,4 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
return 0;
}
-
#endif /* ifdef CONFIG_USB_GADGET */