diff options
Diffstat (limited to 'include/linux/qpnp/power-on.h')
| -rw-r--r-- | include/linux/qpnp/power-on.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/qpnp/power-on.h b/include/linux/qpnp/power-on.h index da8f5a86..73c9fe9e 100644 --- a/include/linux/qpnp/power-on.h +++ b/include/linux/qpnp/power-on.h @@ -59,6 +59,8 @@ enum pon_restart_reason { PON_RESTART_REASON_DMVERITY_ENFORCE = 0x05, PON_RESTART_REASON_KEYS_CLEAR = 0x06, }; +#define RESET_EXTRA_REBOOT_BL_REASON BIT(2) +#define RESET_EXTRA_LAST_REBOOT_REASON BIT(4) #ifdef CONFIG_QPNP_POWER_ON int qpnp_pon_system_pwr_off(enum pon_power_off_type type); @@ -67,7 +69,7 @@ int qpnp_pon_trigger_config(enum pon_trigger_source pon_src, bool enable); int qpnp_pon_wd_config(bool enable); int qpnp_pon_set_restart_reason(enum pon_restart_reason reason); bool qpnp_pon_check_hard_reset_stored(void); - +int qpnp_pon_store_extra_reset_info(u16 mask, u16 val); #else static int qpnp_pon_system_pwr_off(enum pon_power_off_type type) { @@ -91,6 +93,11 @@ static inline bool qpnp_pon_check_hard_reset_stored(void) { return false; } + +static inline int qpnp_pon_store_extra_reset_info(u16 mask, u16 val) +{ + return -ENODEV; +} #endif #endif |
