diff options
| author | Svyatoslav Ryhel <[email protected]> | 2023-10-24 10:49:08 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-11-03 17:42:39 -0400 |
| commit | 4afdc7a3c63d99b53676d31cc38e18de15a036f5 (patch) | |
| tree | d3796998ac6eabc3e8b7bcdf0d86fdc2b482ad74 /include/power | |
| parent | 8b8a00eaf47719ee04338eff9cd94b0408779d9d (diff) | |
sysreset: implement PALMAS sysreset functions
PALMAS PMIC family has embedded poweroff function used by some
device to initiane device power off. Implement it as sysreset
driver.
Signed-off-by: Svyatoslav Ryhel <[email protected]>
Diffstat (limited to 'include/power')
| -rw-r--r-- | include/power/palmas.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/power/palmas.h b/include/power/palmas.h index df5f15c5bd6..0a612052f01 100644 --- a/include/power/palmas.h +++ b/include/power/palmas.h @@ -2,6 +2,10 @@ #define TPS659038 0x1 #define TPS65917 0x2 +struct palmas_priv { + struct udevice *chip2; +}; + /* I2C device address for pmic palmas */ #define PALMAS_I2C_ADDR (0x12 >> 1) #define PALMAS_LDO_NUM 11 @@ -10,6 +14,7 @@ /* Drivers name */ #define PALMAS_LDO_DRIVER "palmas_ldo" #define PALMAS_SMPS_DRIVER "palmas_smps" +#define PALMAS_RST_DRIVER "palmas_rst" #define PALMAS_SMPS_VOLT_MASK 0x7F #define PALMAS_SMPS_RANGE_MASK 0x80 @@ -24,3 +29,9 @@ #define PALMAS_LDO_MODE_MASK 0x1 #define PALMAS_LDO_STATUS_MASK 0x10 #define PALMAS_LDO_BYPASS_EN 0x40 + +#define PALMAS_DEV_CTRL 0xA0 +#define SW_RST BIT(1) +#define DEV_OFF 0x00 +#define PALMAS_INT3_MASK 0x1B +#define MASK_VBUS BIT(7) |
