aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorStefan Mavrodiev <stefan@olimex.com>2019-06-07 15:42:26 +0300
committerLee Jones <lee.jones@linaro.org>2019-07-02 12:11:31 +0100
commitac195d94280a783f030a01ee84998a198b779d99 (patch)
tree19111b780e4026f406709e9cd6c2fe77f1b01a50 /include/linux/mfd
parentmfd: rk808: Check pm_power_off pointer (diff)
downloadlinux-dev-ac195d94280a783f030a01ee84998a198b779d99.tar.xz
linux-dev-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.h1
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 */