aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSvyatoslav Ryhel2023-10-24 10:49:06 +0300
committerTom Rini2023-11-03 17:41:54 -0400
commit9d937cdc2ce831adfef969ced5e35b72a3131dea (patch)
treeee11de56b5133cd24222b71456ff30d9b86028f1 /include
parentfa1e72ea3d62f561fb990113ce404ad603d61e83 (diff)
sysreset: implement TPS80031 sysreset functions
TPS80031/TPS80032 PMICs have embedded power control functions used by some device to initiane device power off. Implement it as sysreset driver. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/power/tps80031.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/tps80031.h b/include/power/tps80031.h
index c80692a8af6..983c841bfe3 100644
--- a/include/power/tps80031.h
+++ b/include/power/tps80031.h
@@ -12,6 +12,7 @@
/* Drivers name */
#define TPS80031_LDO_DRIVER "tps80031_ldo"
#define TPS80031_SMPS_DRIVER "tps80031_smps"
+#define TPS80031_RST_DRIVER "tps80031_rst"
#define TPS80031_SMPS_OFFSET 0xe0
#define TPS80031_OFFSET_FLAG BIT(0)
@@ -35,6 +36,10 @@
#define LDO_VOLT_MIN 1018000
#define LDO_VOLT_BASE 916000
+#define TPS80031_PHOENIX_DEV_ON 0x25
+#define SW_RESET BIT(6)
+#define DEVOFF BIT(0)
+
/* register groups */
enum {
CTRL,