diff options
author | Ondrej Jirman <megous@megous.com> | 2021-08-29 05:51:53 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 17:40:05 +0300 |
commit | 4d94b98f2e2407e3f053b2546f86c76179fea644 (patch) | |
tree | f3cae510476476203dab19349423327b66c15f36 /drivers/mfd | |
parent | 635a0535e2fa8fbd88bb49d65eed35c7ed808b8e (diff) | |
download | linux-4d94b98f2e2407e3f053b2546f86c76179fea644.tar.xz |
mfd: rk808: Add support for power off on RK817
RK817 has a power-off bit in SYS_CFG3. Add support for powering
off the PMIC.
Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/rk808.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 77ccd31ca1d9..b181fe401330 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -543,6 +543,10 @@ static void rk808_pm_power_off(void) reg = RK808_DEVCTRL_REG, bit = DEV_OFF_RST; break; + case RK817_ID: + reg = RK817_SYS_CFG(3); + bit = DEV_OFF; + break; case RK818_ID: reg = RK818_DEVCTRL_REG; bit = DEV_OFF; |