From: Jaehoon Chung Date: Mon, 21 Dec 2020 05:06:46 +0000 (+0900) Subject: ARM: meson: add a reboot reason about DOWNLOAD X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a19aad5740a3f346aac040bdd9218ff1edb846f;p=platform%2Fkernel%2Fu-boot.git ARM: meson: add a reboot reason about DOWNLOAD Tizen is using "reboot download" as download mode. Change-Id: Ia53d1605982957bc2388552e81c4d3cd99eac1e8 Signed-off-by: Jaehoon Chung --- diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h index f3ae46a6d6..512c340169 100644 --- a/arch/arm/include/asm/arch-meson/sm.h +++ b/arch/arm/include/asm/arch-meson/sm.h @@ -17,7 +17,11 @@ enum { REBOOT_REASON_NORMAL = 1, REBOOT_REASON_RECOVERY = 2, REBOOT_REASON_UPDATE = 3, +#ifdef CONFIG_TIZEN + REBOOT_REASON_DOWNLOAD = 4, +#else REBOOT_REASON_FASTBOOT = 4, +#endif REBOOT_REASON_SUSPEND_OFF = 5, REBOOT_REASON_HIBERNATE = 6, REBOOT_REASON_BOOTLOADER = 7, diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index ebbb880b71..1b07ecd82c 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -147,7 +147,11 @@ static const char *reboot_reasons[MAX_REBOOT_REASONS] = { [REBOOT_REASON_NORMAL] = "normal", [REBOOT_REASON_RECOVERY] = "recovery", [REBOOT_REASON_UPDATE] = "update", +#ifdef CONFIG_TIZEN + [REBOOT_REASON_DOWNLOAD] = "download", +#else [REBOOT_REASON_FASTBOOT] = "fastboot", +#endif [REBOOT_REASON_SUSPEND_OFF] = "suspend_off", [REBOOT_REASON_HIBERNATE] = "hibernate", [REBOOT_REASON_BOOTLOADER] = "bootloader",