From: Jaehoon Chung Date: Mon, 21 Dec 2020 05:06:46 +0000 (+0900) Subject: ARM: meson: add a reboot reason about DOWNLOAD X-Git-Tag: accepted/tizen/unified/20221108.163909~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4989b65a4024ee56bb1eff79aee2a04f87b91f71;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 d6eb910689..91d475bd9b 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -165,7 +165,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",