ARM: rockchip: support reboot fastboot
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-rockchip / common.c
index b9893d362a13c139fe5947724b065e1ccbd8e9fb..87aba158e9e4268e818e0ebf7554f86d500ff863 100755 (executable)
@@ -254,6 +254,8 @@ 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, "fastboot"))
+                       *flag = SYS_LOADER_REBOOT_FLAG + BOOT_FASTBOOT;
                else if (!strcmp(cmd, "charge")) {
                        *flag = SYS_LOADER_REBOOT_FLAG + BOOT_CHARGING;
                        *mode = BOOT_MODE_CHARGE;