summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJin Park <jinyoungp@nvidia.com>2011-08-18 17:48:46 +0900
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:25 -0800
commit0db59b1457ab4c9fb3efe7394aaf4544056a404a (patch)
tree0da10d922fad9d58757f06ea2b79a6da0a226fd7 /include
parentc2e448ca31d40ca2faf100ab16e47d39dbe3e9ca (diff)
regulator: max77663: Slew rate and forced PWM mode for SDx
Adding slew rate and forced PWM mode for SD power rails. Bug 849360 Original-Change-Id: Ie66074bd36e600f2f72ba04e2c04331a58dd6a5c Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/47830 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R21ef37ada9a64dec082f82468f5c51d92e30a394
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/max77663-regulator.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/include/linux/regulator/max77663-regulator.h b/include/linux/regulator/max77663-regulator.h
index 8cf8c5852538..470248d20631 100644
--- a/include/linux/regulator/max77663-regulator.h
+++ b/include/linux/regulator/max77663-regulator.h
@@ -85,12 +85,23 @@ enum max77663_regulator_fps_src {
/*
* Flags
*/
-/* SD0 is controlled by EN2 input. */
+/* SD0 is controlled by EN2 */
#define EN2_CTRL_SD0 0x01
+/* SD Slew Rate */
+#define SD_SLEW_RATE_SLOWEST 0x02 /* 13.75mV/us */
+#define SD_SLEW_RATE_SLOW 0x04 /* 27.50mV/us */
+#define SD_SLEW_RATE_FAST 0x08 /* 55.00mV/us */
+#define SD_SLEW_RATE_FASTEST 0x10 /* 100.00mV/us */
+#define SD_SLEW_RATE_MASK 0x1E
+
+/* SD Forced PWM Mode */
+#define SD_FORCED_PWM_MODE 0x20
+
struct max77663_regulator_fps_cfg {
- int en_src;
- int time_period;
+ enum max77663_regulator_fps_src src;
+ enum max77663_regulator_fps_en_src en_src;
+ enum max77663_regulator_fps_time_period time_period;
};
struct max77663_regulator_platform_data {
@@ -98,11 +109,12 @@ struct max77663_regulator_platform_data {
bool init_apply;
bool init_enable;
int init_uV;
+ enum max77663_regulator_fps_src fps_src;
+ enum max77663_regulator_fps_power_period fps_pu_period;
+ enum max77663_regulator_fps_power_period fps_pd_period;
- int fps_src;
- int fps_pu_period;
- int fps_pd_period;
- struct max77663_regulator_fps_cfg *fps_cfg;
+ int num_fps_cfgs;
+ struct max77663_regulator_fps_cfg *fps_cfgs;
unsigned int flags;
};