mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
71a757690c
PD#SWPL-208146 Problem: add reboot reason to enter factory mode Solution: add reboot reason to enter factory mode Verify: local Change-Id: I5bdc66112107f51b05d4c0b9c28ae63f29983970 Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
/*******************************************************************/
|
|
#define MESON_COLD_REBOOT 0
|
|
#define MESON_NORMAL_BOOT 1
|
|
#define MESON_FACTORY_RESET_REBOOT 2
|
|
#define MESON_UPDATE_REBOOT 3
|
|
#define MESON_FASTBOOT_REBOOT 4
|
|
#define MESON_UBOOT_SUSPEND 5
|
|
#define MESON_HIBERNATE 6
|
|
#define MESON_BOOTLOADER_REBOOT 7
|
|
#define MESON_RPMBP_REBOOT 9
|
|
#define MESON_QUIESCENT_REBOOT 10
|
|
#define MESON_RESCUEPARTY_REBOOT 11
|
|
#define MESON_KERNEL_PANIC 12
|
|
#define MESON_RECOVERY_QUIESCENT_REBOOT 14
|
|
#define MESON_FFV_REBOOT 15
|
|
#define MESON_FACTORY_MODE_REBOOT 16
|
|
#define MESON_BIST_MODE_REBOOT 17
|
|
#define MESON_MAX_REBOOT 128
|
|
|
|
struct reboot_reason_str {
|
|
char *name;
|
|
};
|
|
|
|
u32 get_reboot_reason(void);
|