nbhw16: add fct check function during boot
This commit is contained in:
parent
3cf092bd86
commit
ff99850b58
|
|
@ -493,6 +493,15 @@ static void get_hw_version(void)
|
|||
setenv("add_version_bootargs", new_env);
|
||||
}
|
||||
|
||||
static void check_fct(void)
|
||||
{
|
||||
uchar buffer[1];
|
||||
if (i2c_read(0x51, 0, 2, buffer, 1) == 0) {
|
||||
printf("Entering fct mode\n");
|
||||
setenv ("bootcmd", "");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BOARD_LATE_INIT
|
||||
|
|
@ -529,6 +538,10 @@ int board_late_init(void)
|
|||
|
||||
enable_wlan_clock();
|
||||
|
||||
#if !defined(CONFIG_SPL_BUILD)
|
||||
check_fct();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue