diff options
author | Franck LENORMAND <franck.lenormand@nxp.com> | 2019-10-09 10:27:43 +0200 |
---|---|---|
committer | Silvano di Ninno <silvano.dininno@nxp.com> | 2019-12-05 11:57:51 +0100 |
commit | 47d6a4dd046e237d3bd016b507ab17b18ed368f3 (patch) | |
tree | de9d7dd3bfc55b9701d7dd01509cc71e81c756b6 /board/freescale | |
parent | 4d52d1dd92515d501494628fc1adbdb427ee316f (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>
(cherry picked from commit 75aa7f2254f0883aa14568ac32702b1ca15367e4)
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/imx8qxp_arm2/imx8qxp_arm2.c | 10 | ||||
-rw-r--r-- | board/freescale/imx8qxp_mek/imx8qxp_mek.c | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c index 3ccf20de99..4cfc8f35cc 100644 --- a/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c +++ b/board/freescale/imx8qxp_arm2/imx8qxp_arm2.c @@ -20,6 +20,7 @@ #include <asm/arch/clock.h> #include <asm/mach-imx/sci/sci.h> #include <asm/arch/imx8-pins.h> +#include <asm/arch/snvs_security_sc.h> #include <dm.h> #include <imx8_hsio.h> #include <usb.h> @@ -625,6 +626,15 @@ int board_init(void) imx8qxp_gpmi_nand_initialize(); #endif +#ifdef CONFIG_SNVS_SEC_SC_AUTO + { + int ret = snvs_security_sc_init(); + + if (ret) + return ret; + } +#endif + return 0; } 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 <asm/mach-imx/sci/sci.h> #include <asm/arch/imx8-pins.h> #include <dm.h> +#include <asm/arch/snvs_security_sc.h> #include <imx8_hsio.h> #include <usb.h> #include <asm/arch/iomux.h> @@ -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; } |