mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
reboot: add ffv_reboot mode [1/1]
PD#TV-10685 Problem: add ffv_reboot mode Solution: add ffv_reboot mode Verify: test pass on tl1_x301 Change-Id: Ifdeb1819d89a54acbfebba0bcfe0865ea5c4ba5b Signed-off-by: Hong Guo <hong.guo@amlogic.com>
This commit is contained in:
@@ -63,6 +63,8 @@ static u32 parse_reason(const char *cmd)
|
||||
if (strcmp(cmd, "recovery") == 0 ||
|
||||
strcmp(cmd, "factory_reset") == 0)
|
||||
reboot_reason = MESON_FACTORY_RESET_REBOOT;
|
||||
else if (strcmp(cmd, "cold_boot") == 0)
|
||||
reboot_reason = MESON_COLD_REBOOT;
|
||||
else if (strcmp(cmd, "update") == 0)
|
||||
reboot_reason = MESON_UPDATE_REBOOT;
|
||||
else if (strcmp(cmd, "fastboot") == 0)
|
||||
@@ -83,6 +85,8 @@ static u32 parse_reason(const char *cmd)
|
||||
strcmp(cmd, "quiescent,recovery") == 0 ||
|
||||
strcmp(cmd, "quiescent,factory_reset") == 0)
|
||||
reboot_reason = MESON_RECOVERY_QUIESCENT_REBOOT;
|
||||
else if (strcmp(cmd, "ffv_reboot") == 0)
|
||||
reboot_reason = MESON_FFV_REBOOT;
|
||||
} else {
|
||||
if (kernel_panic) {
|
||||
if (strcmp(kernel_panic, "kernel_panic") == 0) {
|
||||
|
||||
@@ -29,3 +29,4 @@
|
||||
#define MESON_CRASH_REBOOT 11
|
||||
#define MESON_KERNEL_PANIC 12
|
||||
#define MESON_RECOVERY_QUIESCENT_REBOOT 14
|
||||
#define MESON_FFV_REBOOT 15
|
||||
|
||||
Reference in New Issue
Block a user