[9610]mptool: add command to support debug mptool
authoravoid <bing3.lin@samsung.com>
Mon, 3 Sep 2018 08:00:42 +0000 (16:00 +0800)
committerhskang <hs1218.kang@samsung.com>
Wed, 5 Sep 2018 10:05:56 +0000 (19:05 +0900)
Change-Id: Ib1f4b604d990052782955a81f542a0546656d211
Signed-off-by: avoid <bing3.lin@samsung.com>
drivers/soc/samsung/exynos-reboot.c

index a1fe00c4066326f7c118cf7501afdb2ce8288557..be3d6710e09da5e2eea19ffce83e327747674aff 100644 (file)
@@ -206,6 +206,8 @@ void big_reset_control(int en)
 #define REBOOT_MODE_FASTBOOT           0xFC
 /* Reboot into recovery */
 #define REBOOT_MODE_RECOVERY           0xFF
+/* Reboot into recovery */
+#define REBOOT_MODE_FACTORY            0xFD
 
 #if !defined(CONFIG_SEC_REBOOT)
 #ifdef CONFIG_OF
@@ -287,6 +289,8 @@ static void exynos_reboot(enum reboot_mode mode, const char *cmd)
                        __raw_writel(REBOOT_MODE_FASTBOOT, addr);
                } else if (!strcmp(cmd, "recovery")) {
                        __raw_writel(REBOOT_MODE_RECOVERY, addr);
+               } else if (!strcmp(cmd, "factory")) {
+                       __raw_writel(REBOOT_MODE_FACTORY, addr);
                }
        }