mfd: rk808: Prepare rk805 for poweroff
authorStefan Mavrodiev <stefan@olimex.com>
Fri, 7 Jun 2019 12:42:26 +0000 (15:42 +0300)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commitac195d94280a783f030a01ee84998a198b779d99
tree19111b780e4026f406709e9cd6c2fe77f1b01a50
parent76304994645028accc0cfe287652344b696f4470
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>
drivers/mfd/rk808.c
include/linux/mfd/rk808.h