Files
kernel_common_drivers/include/linux/amlogic/reboot.h
T
Yao Jie 2b31d6669b reboot: extend reboot reason index to 128 [8/8]
PD#SWPL-100550

Problem:
Need to extend reboot reason index to 128 for
some chip like SC2/S4/T3/T7, etc.

Solution:
Add another 4 bits of sticky register for reboot
reason index storage, this will extend reboot
reason to 128 (0 ~ 127)

Verify:
SC2-AH212

Change-Id: Ia756d7640dc7caf0132c66b55deb0c263e198f3d
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-01-11 22:10:28 -08:00

28 lines
955 B
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_MAX_REBOOT 128
struct reboot_reason_str {
char *name;
};
u32 get_reboot_reason(void);