nbhw16: add fct check function during boot

This commit is contained in:
Stefan Eichenberger 2017-02-28 11:34:04 +01:00
parent 3cf092bd86
commit ff99850b58
1 changed files with 13 additions and 0 deletions

View File

@ -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