amlogic: reboot: add MESON_DOWNOLAD_REBOOT to enter thor mode 22/249922/1
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Dec 2020 07:57:06 +0000 (16:57 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Dec 2020 10:00:20 +0000 (19:00 +0900)
Add MESON_DOWNLOAD_REBOOT to enter thor mode.
Reuse the MESON_FASTBOOT_REBOOT value.

Change-Id: Ie3272062b103f131b8088191e4b534d4eff48819
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/amlogic/reboot/reboot.c
include/linux/amlogic/reboot.h

index a4e5423..ed7c53d 100644 (file)
@@ -87,6 +87,10 @@ static u32 parse_reason(const char *cmd)
                        reboot_reason = MESON_RECOVERY_QUIESCENT_REBOOT;
                else if (strcmp(cmd, "ffv_reboot") == 0)
                        reboot_reason = MESON_FFV_REBOOT;
+#ifdef CONFIG_TIZEN
+               else if (strcmp(cmd, "download") == 0)
+                       reboot_reason = MESON_DOWNLOAD_REBOOT;
+#endif
        } else {
                if (kernel_panic) {
                        if (strcmp(kernel_panic, "kernel_panic") == 0) {
index 18a54a4..4cc48b0 100644 (file)
@@ -30,3 +30,7 @@
 #define        MESON_KERNEL_PANIC                                      12
 #define MESON_RECOVERY_QUIESCENT_REBOOT                                14
 #define MESON_FFV_REBOOT                                       15
+
+#ifdef CONFIG_TIZEN
+#define MESON_DOWNLOAD_REBOOT                          4
+#endif