From: Andrejs Cainikovs Date: Mon, 16 Jan 2023 19:05:12 +0000 (+0100) Subject: board: apalis-imx8: initialize snvs X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=382e89ca40f195810d061c3235578e538fef51f9;p=u-boot.git board: apalis-imx8: initialize snvs Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini Reviewed-by: Fabio Estevam --- diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c index ad0986eebf..6b43b58700 100644 --- a/board/toradex/apalis-imx8/apalis-imx8.c +++ b/board/toradex/apalis-imx8/apalis-imx8.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -290,6 +291,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; }