u-boot/arch/arm/mach-imx/mx7
Bryan O'Donoghue d1ceb0c488 imx: mx7: run sec_init for CAAM RNG
This patch adds a sec_init call into arch_misc_init(). Doing so in
conjunction with the patch "drivers/crypto/fsl: assign job-rings to
non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone is
active.

u-boot will initialise the RNG and assign ownership of the job-ring
registers to a non-TrustZone context. With recent changes by Lukas Auer to
fully initialize the RNG in sec_init() this means that u-boot will hand-off
the CAAM in a state that Linux then can use the CAAM without touching the
reserved DECO registers.

This change is safe both for the OPTEE/TrustZone boot path and the regular
non-OPTEE/TrustZone boot path.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Marco Franchi <marco.franchi@nxp.com>
Cc: Vanessa Maegima <vanessa.maegima@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Tested-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-02-04 12:14:11 +01:00
..
clock.c arm: imx: Rework i.MX specific commands to be excluded from SPL 2018-01-12 14:28:04 +01:00
clock_slice.c imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
ddr.c imx: mx7: DDR controller configuration for the i.MX7 architecture 2017-10-12 17:31:16 +02:00
Kconfig imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig 2018-01-08 17:33:06 +01:00
Makefile imx: mx7: DDR controller configuration for the i.MX7 architecture 2017-10-12 17:31:16 +02:00
psci-mx7.c imx: mx7: psci: add system power off support 2018-02-04 12:00:58 +01:00
psci.S imx: mx7: psci: add system power off support 2018-02-04 12:00:58 +01:00
soc.c imx: mx7: run sec_init for CAAM RNG 2018-02-04 12:14:11 +01:00