mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
board: colibri-imx8x: initialize snvs
Initialize Secure Non-Volatile Storage, aka SNVS. Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
This commit is contained in:
parent
1b4c3e6125
commit
8d916e5c15
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <asm/arch/imx8-pins.h>
|
||||
#include <asm/arch/iomux.h>
|
||||
#include <firmware/imx/sci/sci.h>
|
||||
#include <asm/arch/snvs_security_sc.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue