mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-04-04 06:46:11 +00:00
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> |
||
---|---|---|
.. | ||
mx2 | ||
mx5 | ||
mx6 | ||
mx7 | ||
mx7ulp | ||
mx8m | ||
cache.c | ||
cmd_bmode.c | ||
cmd_dek.c | ||
cmd_hdmidet.c | ||
cpu.c | ||
ddrmc-vf610.c | ||
hab.c | ||
i2c-mxv7.c | ||
imx_bootaux.c | ||
init.c | ||
iomux-v3.c | ||
Kconfig | ||
mac.c | ||
Makefile | ||
misc.c | ||
mmc_env.c | ||
rdc-sema.c | ||
sata.c | ||
sip.c | ||
speed.c | ||
spl.c | ||
spl_sd.cfg | ||
syscounter.c | ||
timer.c | ||
video.c |