This commit is contained in:
刘可亮
2024-10-30 16:50:31 +08:00
parent 0ef85b55da
commit 661e71562d
458 changed files with 46555 additions and 12133 deletions

View File

@@ -190,11 +190,12 @@ static bool force_upg_check(void)
int upg_type_check(enum boot_device bd)
{
enum aic_reboot_reason r;
upg_type = UPG_TYPE_NONE;
upg_mode = UPG_MODE_NORMAL;
#ifdef AIC_WRI_DRV
enum aic_reboot_reason r;
r = aic_get_reboot_reason();
/*
* if REBOOT_REASON_UPGRADE is not clear in BROM or PBP, should be clear
@@ -218,6 +219,7 @@ int upg_type_check(enum boot_device bd)
aic_clr_reboot_reason();
return 0;
}
#endif
if (bd == BD_USB) {
if (usbd_connect_pc_check()) {