Files
kernel_common_drivers/include/linux/amlogic/reboot.h
T
hongyu.chen1 184158952d reboot: add aocpu watchdog reason in kernel. [3/12]
PD#SWPL-228126

Problem:
The kernel needs to be adapted to the aocpu watchdog.

Solution:
add config.

Verify:
build ok

Change-Id: I032224c9558401def04eb85daa443cd79b0b9352
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2025-10-28 05:03:54 -07:00

31 lines
1.1 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_AOCPU_WATCHDOG_REBOOT 19
#define MESON_MAX_REBOOT 128
struct reboot_reason_str {
char *name;
};
u32 get_reboot_reason(void);