From 6368783e86168bae5f30c73e308bd1dd2bcf4b3b Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 21 Dec 2020 14:06:46 +0900 Subject: [PATCH] ARM: meson: add a reboot reason about DOWNLOAD Tizen is using "reboot download" as download mode. Change-Id: Ia53d1605982957bc2388552e81c4d3cd99eac1e8 Signed-off-by: Jaehoon Chung --- arch/arm/include/asm/arch-meson/sm.h | 4 ++++ arch/arm/mach-meson/sm.c | 4 ++++ 2 files changed, 8 insertions(+) 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 1a8f23cb1f..0a369b971d 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -148,7 +148,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", -- 2.34.1