ARM: rockchip: support reboot fastboot
author黄涛 <huangtao@rock-chips.com>
Mon, 23 Jun 2014 06:25:05 +0000 (14:25 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 23 Jun 2014 06:25:05 +0000 (14:25 +0800)
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;