aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mx6
diff options
context:
space:
mode:
authorHeinrich Schuchardt2020-06-26 19:57:55 +0200
committerStefano Babic2020-07-16 11:20:08 +0200
commit90865614b4e6243a100cde69ef08e9b55e4fa5fc (patch)
tree6c0cdbb056e9f9e9afcc48b323a67d269c609645 /arch/arm/mach-imx/mx6
parent496cb1f274059471422e4f6a815d3599924334be (diff)
ARM: mx6: make CAAM usable on the i.MX6 boards
Even if the HAB fuse is not set we want to be able to use the Cryptographic Accelerator and Assurance Module (CAAM) for generating random numbers. So SYS_FSL_HAS_SEC should be selected even if IMX_HAB is not set. arch_misc_init() has to be called to initialize the CAAM. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'arch/arm/mach-imx/mx6')
-rw-r--r--arch/arm/mach-imx/mx6/soc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index 19ca3826495..e1292860656 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -22,6 +22,7 @@
#include <asm/arch/mxc_hdmi.h>
#include <asm/arch/crm_regs.h>
#include <dm.h>
+#include <fsl_sec.h>
#include <imx_thermal.h>
#include <mmc.h>
@@ -691,6 +692,15 @@ void imx_setup_hdmi(void)
}
#endif
+#ifdef CONFIG_ARCH_MISC_INIT
+int arch_misc_init(void)
+{
+#ifdef CONFIG_FSL_CAAM
+ sec_init();
+#endif
+ return 0;
+}
+#endif
/*
* gpr_init() function is common for boards using MX6S, MX6DL, MX6D,