summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/imx8m/soc.c
diff options
context:
space:
mode:
authorAymen Sghaier <aymen.sghaier@nxp.com>2018-07-03 10:14:37 +0200
committerAymen Sghaier <aymen.sghaier@nxp.com>2018-07-17 15:09:23 +0200
commit996329904c0304a7bfbc6cda8287ab93de77870d (patch)
tree5d1d5de91005ffa8141d5639b57adc27afd6f38c /arch/arm/mach-imx/imx8m/soc.c
parent1f4134c85f6416cbdadaf5f4ff6321f6c685c74c (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/imx8m/soc.c')
-rw-r--r--arch/arm/mach-imx/imx8m/soc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index d507584faf..1e3e84abf8 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 NXP
+ * Copyright 2017-2018 NXP
*
* Peng Fan <peng.fan@nxp.com>
*
@@ -21,6 +21,9 @@
#include <imx_sip.h>
#include <generated/version_autogenerated.h>
#include <asm/setup.h>
+#ifdef CONFIG_IMX_SEC_INIT
+#include <fsl_caam.h>
+#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -190,6 +193,11 @@ int arch_cpu_init(void)
imx_set_wdog_powerdown(false);
}
+#ifdef CONFIG_IMX_SEC_INIT
+ /* Secure init function such RNG */
+ imx_sec_init();
+#endif
+
return 0;
}