ARM: rockchip: add support bootloader charge

This commit is contained in:
黄涛
2014-05-23 15:16:41 +08:00
parent f813a418a9
commit fa7b795ddf
2 changed files with 7 additions and 2 deletions

View File

@@ -214,6 +214,7 @@ static inline const char *boot_flag_name(u32 flag)
case BOOT_WIPEALL: return "WIPEALL";
case BOOT_CHECKIMG: return "CHECKIMG";
case BOOT_FASTBOOT: return "FASTBOOT";
case BOOT_CHARGING: return "CHARGING";
default: return "";
}
}
@@ -253,8 +254,10 @@ void rockchip_restart_get_boot_mode(const char *cmd, u32 *flag, u32 *mode)
*flag = SYS_LOADER_REBOOT_FLAG + BOOT_LOADER;
else if(!strcmp(cmd, "recovery"))
*flag = SYS_LOADER_REBOOT_FLAG + BOOT_RECOVER;
else if (!strcmp(cmd, "charge"))
else if (!strcmp(cmd, "charge")) {
*flag = SYS_LOADER_REBOOT_FLAG + BOOT_CHARGING;
*mode = BOOT_MODE_CHARGE;
}
} else {
if (is_panic)
*mode = BOOT_MODE_PANIC;

View File

@@ -14,7 +14,9 @@ enum {
BOOT_WIPEDATA, /* enter recover and wipe data. */
BOOT_WIPEALL, /* enter recover and wipe all data. */
BOOT_CHECKIMG, /* check firmware img with backup part(in loader mode)*/
BOOT_FASTBOOT, /* enter fast boot mode (not support now) */
BOOT_FASTBOOT, /* enter fast boot mode */
BOOT_SECUREBOOT_DISABLE,
BOOT_CHARGING, /* enter charge mode */
BOOT_MAX /* MAX VALID BOOT TYPE.*/
};