summaryrefslogtreecommitdiff
path: root/include/linux/mfd/tps65218.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2016-06-24 11:28:08 +0300
committerMark Brown <broonie@kernel.org>2016-06-27 19:56:43 +0300
commitb9a0d359413d7f4e078d81cd59f9d851a6febb7a (patch)
treee18abc30b2338f1d22e4d8a27129dc407ba47e61 /include/linux/mfd/tps65218.h
parent3de56099591a4042556a2d05d4703387ad950c6f (diff)
downloadlinux-b9a0d359413d7f4e078d81cd59f9d851a6febb7a.tar.xz
regulator: tps65218: Enable suspend configuration
TPS65218 has a pre-defined power-up / power-down sequence which in a typical application does not need to be changed. However, it is possible to define custom sequences under I2C control. The power-up sequence is defined by strobes and delay times. Each output rail is assigned to a strobe to determine the order in which the rails are enabled. Every regulator has sequence registers and every regulator has a default strobe value and gets disabled when a particular power down sequence occurs. To keep a regulator on during suspend we write value 0 to strobe so that the regulator is out of all sequencers and is not impacted by any power down sequence. Hence saving the default strobe value during probe so that when we want to regulator to be enabled during suspend we write 0 to strobe and when we want it to get disabled during suspend we write the default saved strobe value. This allows platform data to specify which power rails should be on or off during RTC only suspend. This is necessary to keep DDR state while in RTC only suspend. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/tps65218.h')
-rw-r--r--include/linux/mfd/tps65218.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps65218.h
index d58f3b5f585a..7fdf5326f34e 100644
--- a/include/linux/mfd/tps65218.h
+++ b/include/linux/mfd/tps65218.h
@@ -246,6 +246,7 @@ enum tps65218_irqs {
* @name: Voltage regulator name
* @min_uV: minimum micro volts
* @max_uV: minimum micro volts
+ * @strobe: sequencing strobe value for the regulator
*
* This data is used to check the regualtor voltage limits while setting.
*/
@@ -254,6 +255,7 @@ struct tps_info {
const char *name;
int min_uV;
int max_uV;
+ int strobe;
};
/**