diff options
author | Jin Park <jinyoungp@nvidia.com> | 2011-08-18 17:48:46 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-19 15:35:58 -0700 |
commit | 757ef98293df9e7dd6dc9953d75e646dc83259f3 (patch) | |
tree | e5ad3c35a4e885d6b5ff60d6e5a679afff6d0422 /include | |
parent | a24ac894d58d19060288dfd3b1ca1c12794e48aa (diff) |
regulator: max77663: Slew rate and forced PWM mode for SDx
Adding slew rate and forced PWM mode for SD power rails.
Bug 849360
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/max77663-regulator.h | 26 |
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; }; |