diff options
| author | Primoz Fiser <[email protected]> | 2025-08-28 13:24:05 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2025-09-01 10:33:09 +0800 |
| commit | ad197b31b3f88d53c349995d8bbaeba4b18b8f2b (patch) | |
| tree | 02c7c6d56f5b2768ff7f7e88f816d296b38115a2 /include/power | |
| parent | 9065b87f35018a4e993e7dfb8a8ec29474785f76 (diff) | |
power: pmic: pca9450: Add support for reset status
PCA9450 PMIC supports reading the reset status from the PWRON_STAT
register. Bits 7-4 give indication of the PMIC reset cause:
- PWRON (BIT7) - Power ON triggered by PMIC_ON_REQ input line,
- WDOGB (BIT6) - Boot after cold reset by WDOGB pin (watchdog reset),
- SW_RST (BIT5) - Boot after cold reset initiated by the software,
- PMIC_RST (BIT4) - Boot after PMIC_RST_B input line trigger.
Add support for reading reset status via the sysreset framework in a
convenient printable format.
Signed-off-by: Primoz Fiser <[email protected]>
Reviewed-by: Paul Geurts <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/power')
| -rw-r--r-- | include/power/pca9450.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/pca9450.h b/include/power/pca9450.h index 9119ef793b1..41b7f95c034 100644 --- a/include/power/pca9450.h +++ b/include/power/pca9450.h @@ -75,6 +75,11 @@ enum { #define PCA9450_PMIC_RESET_WDOG_B_CFG_WARM 0x40 #define PCA9450_PMIC_RESET_WDOG_B_CFG_COLD_LDO12 0x80 +#define PCA9450_PWRON_STAT_PWRON_MASK 0x80 +#define PCA9450_PWRON_STAT_WDOG_MASK 0x40 +#define PCA9450_PWRON_STAT_SW_RST_MASK 0x20 +#define PCA9450_PWRON_STAT_PMIC_RST_MASK 0x10 + #define PCA9450_SW_RST_COLD_RST 0x14 #endif |
