diff options
author | Aymen Sghaier <aymen.sghaier@nxp.com> | 2018-07-03 10:14:37 +0200 |
---|---|---|
committer | Aymen Sghaier <aymen.sghaier@nxp.com> | 2018-07-17 15:09:23 +0200 |
commit | 996329904c0304a7bfbc6cda8287ab93de77870d (patch) | |
tree | 5d1d5de91005ffa8141d5639b57adc27afd6f38c /arch/arm/mach-imx/mx6 | |
parent | 1f4134c85f6416cbdadaf5f4ff6321f6c685c74c (diff) |
MLK-18703: crypto: caam: Add TRNG init function call
Call the TRNG init function at the end of arch_cpu_init()
Concerned SoCs are: i.MX6, i.MX7 and i.MX8M
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/mx6')
-rw-r--r-- | arch/arm/mach-imx/mx6/soc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index 5295819176..7e8f587972 100644 --- a/arch/arm/mach-imx/mx6/soc.c +++ b/arch/arm/mach-imx/mx6/soc.c @@ -25,6 +25,9 @@ #include <imx_thermal.h> #include <mmc.h> #include <asm/setup.h> +#ifdef CONFIG_IMX_SEC_INIT +#include <fsl_caam.h> +#endif enum ldo_reg { LDO_ARM, @@ -637,6 +640,11 @@ int arch_cpu_init(void) if (is_mx6dqp()) writel(0x80000201, 0xbb0608); +#ifdef CONFIG_IMX_SEC_INIT + /* Secure init function such RNG */ + imx_sec_init(); +#endif + return 0; } |