From: Jaehoon Chung Date: Thu, 17 Dec 2020 07:57:06 +0000 (+0900) Subject: amlogic: reboot: add MESON_DOWNOLAD_REBOOT to enter thor mode X-Git-Tag: submit/tizen/20201221.095525~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e3d5dbdca120ebefe0fd0502319c3be27c27014;p=platform%2Fkernel%2Flinux-amlogic.git amlogic: reboot: add MESON_DOWNOLAD_REBOOT to enter thor mode Add MESON_DOWNLOAD_REBOOT to enter thor mode. Reuse the MESON_FASTBOOT_REBOOT value. Change-Id: Ie3272062b103f131b8088191e4b534d4eff48819 Signed-off-by: Jaehoon Chung --- diff --git a/drivers/amlogic/reboot/reboot.c b/drivers/amlogic/reboot/reboot.c index a4e5423fd8af..ed7c53d962d1 100644 --- a/drivers/amlogic/reboot/reboot.c +++ b/drivers/amlogic/reboot/reboot.c @@ -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) { diff --git a/include/linux/amlogic/reboot.h b/include/linux/amlogic/reboot.h index 18a54a4288b2..4cc48b085c82 100644 --- a/include/linux/amlogic/reboot.h +++ b/include/linux/amlogic/reboot.h @@ -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