aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/hi6421v530-regulator.c
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2018-08-02 12:34:24 +0200
committerMark Brown <broonie@kernel.org>2018-09-11 16:15:57 +0100
commitc29daffa322ad36978cbce487f8ebcd9c3c3f7c0 (patch)
treea6bbe144e4ff55acc050f565380b64d324ac065f /drivers/regulator/hi6421v530-regulator.c
parentregulator: pfuze100: add fsl,pmic-stby-poweroff property (diff)
downloadlinux-dev-c29daffa322ad36978cbce487f8ebcd9c3c3f7c0.tar.xz
linux-dev-c29daffa322ad36978cbce487f8ebcd9c3c3f7c0.zip
regulator: pfuze100-regulator: provide pm_power_off_prepare handler
On some boards the SoC can use one pin "PMIC_STBY_REQ" to notify th PMIC about state changes. In this case internal state of PMIC must be preconfigured for upcomming state change. It works fine with the current regulator framework, except with the power-off case. This patch is providing an optional pm_power_off_prepare handler which will configure standby state of the PMIC to disable all power lines. In my power consumption test on RIoTBoard, I got the following results: power off without this patch: 320 mA power off with this patch: 2 mA suspend to ram: 40 mA Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/hi6421v530-regulator.c')
0 files changed, 0 insertions, 0 deletions