summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXin Xie <xxie@nvidia.com>2011-04-25 17:36:15 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-07-21 15:07:27 -0700
commit89f82d3c1d06f1952b281516edad965f16297121 (patch)
tree667cc4e3580d1f80cec1cb6d098a25f890c12d2a /include
parentf3d6b91a116310f074619ff40faf69ee074f9b29 (diff)
regulator: tps6586x: add SMx slew rate setting
bug 815933 Change-Id: I3b8f8910b12ff4f8a5f9588615bd0bb6452bdc3b Reviewed-on: http://git-master/r/40263 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/tps6586x.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h
index 6d6ddc983f10..e43184a43201 100644
--- a/include/linux/mfd/tps6586x.h
+++ b/include/linux/mfd/tps6586x.h
@@ -55,12 +55,27 @@ enum {
enum pwm_pfm_mode {
PWM_ONLY,
AUTO_PWM_PFM,
- NOT_CONFIGURABLE
+ PWM_DEFAULT_VALUE,
+
+};
+
+enum slew_rate_settings {
+ SLEW_RATE_INSTANTLY = 0,
+ SLEW_RATE_0110UV_PER_SEC = 0x1,
+ SLEW_RATE_0220UV_PER_SEC = 0x2,
+ SLEW_RATE_0440UV_PER_SEC = 0x3,
+ SLEW_RATE_0880UV_PER_SEC = 0x4,
+ SLEW_RATE_1760UV_PER_SEC = 0x5,
+ SLEW_RATE_3520UV_PER_SEC = 0x6,
+ SLEW_RATE_7040UV_PER_SEC = 0x7,
+ SLEW_RATE_DEFAULT_VALUE,
};
struct tps6586x_settings {
/* SM0, SM1 and SM2 have PWM-only and auto PWM/PFM mode */
enum pwm_pfm_mode sm_pwm_mode;
+ /* SM0 and SM1 have slew rate settings */
+ enum slew_rate_settings slew_rate;
};
enum {