diff options
author | Stefan Mavrodiev <stefan@olimex.com> | 2019-06-07 15:42:26 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-07-02 12:11:31 +0100 |
commit | ac195d94280a783f030a01ee84998a198b779d99 (patch) | |
tree | 19111b780e4026f406709e9cd6c2fe77f1b01a50 /include/linux/mfd | |
parent | 76304994645028accc0cfe287652344b696f4470 (diff) |
mfd: rk808: Prepare rk805 for poweroff
RK805 has SLEEP signal, which can put the device into SLEEP or OFF
mode. The default is SLEEP mode.
However, when the kernel performs power-off (actually the ATF) the
device will not go fully off and this will result in higher power
consumption and inability to wake the device with RTC alarm.
The solution is to enable pm_power_off_prepare function, which will
configure SLEEP pin for OFF function.
Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/rk808.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 286316375636..b264ac794c74 100644 --- a/include/linux/mfd/rk808.h +++ b/include/linux/mfd/rk808.h @@ -629,5 +629,6 @@ struct rk808 { const struct regmap_config *regmap_cfg; const struct regmap_irq_chip *regmap_irq_chip; void (*pm_pwroff_fn)(void); + void (*pm_pwroff_prep_fn)(void); }; #endif /* __LINUX_REGULATOR_RK808_H */ |