amlogic: reboot: add fota as reboot paremeter 52/251052/1 accepted/tizen/unified/20210108.125918 submit/tizen/20210107.224559
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 7 Jan 2021 07:39:11 +0000 (16:39 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 7 Jan 2021 07:39:11 +0000 (16:39 +0900)
Add fota as reboot parameter.
To use it, defined MESON_FOTA_REBOOT as 3.

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

index ed7c53d..ab3164e 100644 (file)
@@ -90,6 +90,8 @@ static u32 parse_reason(const char *cmd)
 #ifdef CONFIG_TIZEN
                else if (strcmp(cmd, "download") == 0)
                        reboot_reason = MESON_DOWNLOAD_REBOOT;
+               else if (strcmp(cmd, "fota") == 0)
+                       reboot_reason = MESON_FOTA_REBOOT;
 #endif
        } else {
                if (kernel_panic) {
index 4cc48b0..60024cd 100644 (file)
@@ -32,5 +32,6 @@
 #define MESON_FFV_REBOOT                                       15
 
 #ifdef CONFIG_TIZEN
+#define        MESON_FOTA_REBOOT                               3
 #define MESON_DOWNLOAD_REBOOT                          4
 #endif