From 47d6a4dd046e237d3bd016b507ab17b18ed368f3 Mon Sep 17 00:00:00 2001 From: Franck LENORMAND Date: Wed, 9 Oct 2019 10:27:43 +0200 Subject: 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 (cherry picked from commit 75aa7f2254f0883aa14568ac32702b1ca15367e4) --- board/freescale/imx8qxp_mek/imx8qxp_mek.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/freescale/imx8qxp_mek/imx8qxp_mek.c') diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c index 89f99ea286..262beb67db 100644 --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -596,6 +597,15 @@ int board_init(void) setup_typec(); #endif +#ifdef CONFIG_SNVS_SEC_SC_AUTO + { + int ret = snvs_security_sc_init(); + + if (ret) + return ret; + } +#endif + return 0; } -- cgit v1.2.3