From 8d916e5c15451756b0b8d4542f4586eed416d40e Mon Sep 17 00:00:00 2001 From: Andrejs Cainikovs Date: Mon, 3 Apr 2023 13:14:26 +0200 Subject: [PATCH] board: colibri-imx8x: initialize snvs Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs --- board/toradex/colibri-imx8x/colibri-imx8x.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c index f504385aec..6c0b09787c 100644 --- a/board/toradex/colibri-imx8x/colibri-imx8x.c +++ b/board/toradex/colibri-imx8x/colibri-imx8x.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -139,6 +140,13 @@ int board_init(void) { board_gpio_init(); + if (IS_ENABLED(CONFIG_IMX_SNVS_SEC_SC_AUTO)) { + int ret = snvs_security_sc_init(); + + if (ret) + return ret; + } + return 0; } -- 2.39.5