diff options
author | Svyatoslav Ryhel | 2023-10-24 10:49:07 +0300 |
---|---|---|
committer | Tom Rini | 2023-11-03 17:42:14 -0400 |
commit | 8b8a00eaf47719ee04338eff9cd94b0408779d9d (patch) | |
tree | 6c1112be1f2b4d4ae255818b6fa24bffe8ff3371 /include/power | |
parent | 9d937cdc2ce831adfef969ced5e35b72a3131dea (diff) |
sysreset: implement TPS65910 sysreset functions
TPS65910/TPS65911 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/power')
-rw-r--r-- | include/power/tps65910_pmic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/power/tps65910_pmic.h b/include/power/tps65910_pmic.h index 7d6545abdf0..2026ec2f426 100644 --- a/include/power/tps65910_pmic.h +++ b/include/power/tps65910_pmic.h @@ -17,6 +17,12 @@ #define TPS65910_SUPPLY_STATE_OFF 0x0 #define TPS65910_SUPPLY_STATE_ON 0x1 +/* TPS65910 DEVICE_CTRL bits */ +#define PWR_OFF_SEQ BIT(7) +#define DEV_OFF_RST BIT(3) +#define DEV_ON BIT(2) +#define DEV_OFF BIT(0) + /* i2c registers */ enum { TPS65910_REG_RTC_SEC = 0x00, @@ -125,6 +131,7 @@ struct tps65910_regulator_pdata { #define TPS65910_BUCK_DRIVER "tps65910_buck" #define TPS65910_BOOST_DRIVER "tps65910_boost" #define TPS65910_LDO_DRIVER "tps65910_ldo" +#define TPS65910_RST_DRIVER "tps65910_rst" /* tps65911 i2c registers */ enum { |