summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <[email protected]>2024-10-06 16:51:21 +0300
committerSvyatoslav Ryhel <[email protected]>2025-05-08 08:30:53 +0300
commit5f3588a94d219818c1b3a2dac4d063f77f48a5ef (patch)
tree7d3ce8934615f4aec5092377d75c62acda0b6196 /include/power
parent5204a362b8c80049e5242d92994637b3bac94d14 (diff)
sysreset: implement MAX9807 sysreset functions
MAX8907 PMIC has embedded poweroff function used by some device to initiane device power off. Implement it as optional sysreset driver guarded by kconfig option and system-power-controller device tree property. Tested-by: Ion Agorria <[email protected]> Signed-off-by: Svyatoslav Ryhel <[email protected]>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/max8907.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/power/max8907.h b/include/power/max8907.h
index a19b25f44c0..a6e558e582c 100644
--- a/include/power/max8907.h
+++ b/include/power/max8907.h
@@ -12,6 +12,7 @@
/* Drivers name */
#define MAX8907_LDO_DRIVER "max8907_ldo"
#define MAX8907_SD_DRIVER "max8907_sd"
+#define MAX8907_RST_DRIVER "max8907_rst"
/* MAX8907 register map */
#define MAX8907_REG_SDCTL1 0x04
@@ -39,6 +40,9 @@
#define MAX8907_REG_LDOCTL18 0x72
#define MAX8907_REG_LDOCTL20 0x9C
+#define MAX8907_REG_RESET_CNFG 0x0F
+#define MASK_POWER_OFF BIT(6)
+
/* MAX8907 configuration values */
#define MAX8907_CTL 0
#define MAX8907_SEQCNT 1