case BOOT_WIPEALL: return "WIPEALL";
case BOOT_CHECKIMG: return "CHECKIMG";
case BOOT_FASTBOOT: return "FASTBOOT";
+ case BOOT_CHARGING: return "CHARGING";
default: return "";
}
}
*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;
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.*/
};