Files

38 lines
1.3 KiB
C
Raw Permalink Normal View History

2026-08-13 11:28:40 +08:00
/* 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
2026-08-25 10:02:36 +08:00
#define MESON_WATCHDOG_REBOOT 13
2026-08-13 11:28:40 +08:00
#define MESON_RECOVERY_QUIESCENT_REBOOT 14
#define MESON_FFV_REBOOT 15
#define MESON_FACTORY_MODE_REBOOT 16
#define MESON_BIST_MODE_REBOOT 17
2026-08-25 10:02:36 +08:00
#define MESON_THERMAL_REBOOT 18
2026-08-13 11:28:40 +08:00
#define MESON_AOCPU_WATCHDOG_REBOOT 19
#define MESON_RTC_QUIESCENT_REBOOT 20
2026-08-25 10:02:36 +08:00
#define MESON_FASTBOOT_UPDATE_REBOOT 21
2026-08-13 11:28:40 +08:00
#define MESON_MAX_REBOOT 128
2026-08-25 10:02:36 +08:00
/*reboot flag*/
#define THERMAL_KERNEL (1U << (3))
2026-08-13 11:28:40 +08:00
struct reboot_reason_str {
char *name;
};
u32 get_reboot_reason(void);