summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorFranck LENORMAND <franck.lenormand@nxp.com>2019-10-09 10:27:43 +0200
committerStefano Babic <sbabic@denx.de>2020-05-01 13:46:22 +0200
commit242d1cd69b9f750daee0f15c8028d827a6da13e2 (patch)
tree007cd52bf153b3b4eec962e123bf6e845b2d2378 /board
parent73d769d8afb936cd99873cfb2fef2ef04e02a13d (diff)
downloadu-boot-242d1cd69b9f750daee0f15c8028d827a6da13e2.tar.gz
u-boot-242d1cd69b9f750daee0f15c8028d827a6da13e2.tar.xz
u-boot-242d1cd69b9f750daee0f15c8028d827a6da13e2.zip
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 Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8qxp_mek/imx8qxp_mek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index b96f0da21e..93f0cd827c 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_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 <asm/arch/iomux.h>
#include <asm/arch/sys_proto.h>
@@ -111,6 +112,15 @@ int board_init(void)
{
board_gpio_init();
+#ifdef CONFIG_IMX_SNVS_SEC_SC_AUTO
+ {
+ int ret = snvs_security_sc_init();
+
+ if (ret)
+ return ret;
+ }
+#endif
+
return 0;
}