diff options
| author | Tom Rini <[email protected]> | 2019-08-12 18:48:34 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-12 23:03:35 -0400 |
| commit | 60f38d82c45fef55ac04ee52b234e6dd07e31935 (patch) | |
| tree | 1bf05a3ecc7ebeba4247134aa6cf5dda1ec87e73 /arch/arm/include | |
| parent | 9c6115822e894ead72fa4c094bf718eaabb9e103 (diff) | |
| parent | eb1677250d704b93169a58114a74424c7bfa495a (diff) | |
Merge tag 'u-boot-amlogic-20190812' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- amlogic: add support for the SEI Robotic SEI510
Diffstat (limited to 'arch/arm/include')
| -rw-r--r-- | arch/arm/include/asm/arch-meson/sm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h index 60d04ae2283..f3ae46a6d6b 100644 --- a/arch/arm/include/asm/arch-meson/sm.h +++ b/arch/arm/include/asm/arch-meson/sm.h @@ -12,4 +12,22 @@ ssize_t meson_sm_read_efuse(uintptr_t offset, void *buffer, size_t size); int meson_sm_get_serial(void *buffer, size_t size); +enum { + REBOOT_REASON_COLD = 0, + REBOOT_REASON_NORMAL = 1, + REBOOT_REASON_RECOVERY = 2, + REBOOT_REASON_UPDATE = 3, + REBOOT_REASON_FASTBOOT = 4, + REBOOT_REASON_SUSPEND_OFF = 5, + REBOOT_REASON_HIBERNATE = 6, + REBOOT_REASON_BOOTLOADER = 7, + REBOOT_REASON_SHUTDOWN_REBOOT = 8, + REBOOT_REASON_RPMBP = 9, + REBOOT_REASON_CRASH_DUMP = 11, + REBOOT_REASON_KERNEL_PANIC = 12, + REBOOT_REASON_WATCHDOG_REBOOT = 13, +}; + +int meson_sm_get_reboot_reason(void); + #endif /* __MESON_SM_H__ */ |
