From e8fcfc7939f99a1d185a81b35d70b23d86fbf6c6 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Thu, 7 Jan 2021 16:39:11 +0900 Subject: [PATCH] amlogic: reboot: add fota as reboot paremeter Add fota as reboot parameter. To use it, defined MESON_FOTA_REBOOT as 3. Change-Id: I06e725cf47e6d0de0add7336266679203dcf6a41 Signed-off-by: Jaehoon Chung --- drivers/amlogic/reboot/reboot.c | 2 ++ include/linux/amlogic/reboot.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/amlogic/reboot/reboot.c b/drivers/amlogic/reboot/reboot.c index ed7c53d962d1..ab3164e72a51 100644 --- a/drivers/amlogic/reboot/reboot.c +++ b/drivers/amlogic/reboot/reboot.c @@ -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) { diff --git a/include/linux/amlogic/reboot.h b/include/linux/amlogic/reboot.h index 4cc48b085c82..60024cdb9b08 100644 --- a/include/linux/amlogic/reboot.h +++ b/include/linux/amlogic/reboot.h @@ -32,5 +32,6 @@ #define MESON_FFV_REBOOT 15 #ifdef CONFIG_TIZEN +#define MESON_FOTA_REBOOT 3 #define MESON_DOWNLOAD_REBOOT 4 #endif -- 2.34.1