mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
board: apalis-imx8: initialize snvs
Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
committed by
Stefano Babic
parent
9607d8b17d
commit
382e89ca40
@@ -12,6 +12,7 @@
|
||||
#include <asm/arch/imx8-pins.h>
|
||||
#include <asm/arch/iomux.h>
|
||||
#include <asm/arch/sci/sci.h>
|
||||
#include <asm/arch/snvs_security_sc.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user