summaryrefslogtreecommitdiff
path: root/board/freescale/imx8qm_mek
diff options
context:
space:
mode:
authorFranck LENORMAND <franck.lenormand@nxp.com>2019-10-09 10:27:43 +0200
committerYe Li <ye.li@nxp.com>2022-04-06 18:03:28 +0800
commitf0b5e15f07050590be9c32e43bc05916a3c6bba9 (patch)
tree43310e759266b214453c678240844894ea1fa00c /board/freescale/imx8qm_mek
parentf4fa767879c9882790fd4a153d0755ff08d15b45 (diff)
SSI-87: imx8: Configure SNVS
Add a module to configure the tamper and secure violation of the SNVS using the SCU API. The module also adds some commands: - snvs_cfg: Configure the SNVS HP and LP registers - snvs_dgo_cfg: Configure the SNVS DGO bloc if present (8QXP) - tamper_pin_cfg: Change the configuration of the tamper pins - snvs_clear_status: Allow to write to LPSR and LPTDSR to clear status bits Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> Reviewed-by: Silvano Di Ninno <silvano.dininno@nxp.com> (cherry picked from commit b84be4fa1454ee0cd718be329d630b55aff34273) (cherry picked from commit 24b0be839ea2166ee80194b93d8efcca70b81539) (cherry picked from commit 74c0afb1f9e822f10b138c978be87757dfa19317) (cherry picked from commit a689af8cb4b09ca14daa7b0c181c2611f72fff1b)
Diffstat (limited to 'board/freescale/imx8qm_mek')
-rw-r--r--board/freescale/imx8qm_mek/imx8qm_mek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index 6a55dd2978..c005b407e5 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -16,6 +16,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/sci/sci.h>
#include <asm/arch/imx8-pins.h>
+#include <asm/arch/snvs_security_sc.h>
#include <usb.h>
#include <asm/arch/iomux.h>
#include <asm/arch/sys_proto.h>
@@ -339,6 +340,15 @@ int board_init(void)
setup_typec();
#endif
+#ifdef CONFIG_IMX_SNVS_SEC_SC_AUTO
+ {
+ int ret = snvs_security_sc_init();
+
+ if (ret)
+ return ret;
+ }
+#endif
+
return 0;
}