diff options
author | 2019-06-07 15:42:26 +0300 | |
---|---|---|
committer | 2019-07-02 12:11:31 +0100 | |
commit | ac195d94280a783f030a01ee84998a198b779d99 (patch) | |
tree | 19111b780e4026f406709e9cd6c2fe77f1b01a50 /include/linux/mfd | |
parent | mfd: rk808: Check pm_power_off pointer (diff) | |
download | linux-ac195d94280a783f030a01ee84998a198b779d99.tar.gz linux-ac195d94280a783f030a01ee84998a198b779d99.tar.bz2 linux-ac195d94280a783f030a01ee84998a198b779d99.zip |
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 */ |