summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2015-05-11 13:58:09 +0100
committerLee Jones <lee.jones@linaro.org>2015-06-22 12:25:14 +0100
commite6cb73410a6db70eab266f15b7e25053a45b842d (patch)
tree1bc4bd1ac0ce77c8169fbeea8cbfbacd7454da17 /include/linux/mfd/arizona
parent96129a0eaa3f5232f433812972c7bf38004ebf6b (diff)
downloadop-kernel-dev-e6cb73410a6db70eab266f15b7e25053a45b842d.zip
op-kernel-dev-e6cb73410a6db70eab266f15b7e25053a45b842d.tar.gz
mfd: arizona: Add better support for system suspend
Allow the chip to completely power off if we enter runtime suspend and there is no jack detection active. This is helpful for systems where system suspend might remove the supplies to the CODEC, without informing us. Note the powering off is done in runtime suspend rather than system suspend, because we need to hold reset until the first time DCVDD is powered anyway (which would be in runtime resume), and we might as well save the extra power. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/arizona')
-rw-r--r--include/linux/mfd/arizona/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h
index 16a498f..847bdaf 100644
--- a/include/linux/mfd/arizona/core.h
+++ b/include/linux/mfd/arizona/core.h
@@ -117,6 +117,7 @@ struct arizona {
int num_core_supplies;
struct regulator_bulk_data core_supplies[ARIZONA_MAX_CORE_SUPPLIES];
struct regulator *dcvdd;
+ bool has_fully_powered_off;
struct arizona_pdata pdata;
OpenPOWER on IntegriCloud