aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-10-09 05:49:02 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-17 09:21:21 -0400
commitf329b1755b475f64f0472cda1ae9602e092f6f05 (patch)
tree3580b525f7626d063bf93e4a1370056f1e605b84 /include/linux/mfd
parent3a81ef8c27cea5c749a45765da4e06a7af75be2b (diff)
regulator: tps65090: add external control support for DCDC
The TPS65090's DCDC output can also be enable/disable through the external digital input signal. Add support for enable/disable either through register access via I2C or through external control inputs. The external control inputs can be driven through GPIOs also and hence adding support for passing the GPIO number. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tps65090.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h
index 598921221ff..804e280c1e1 100644
--- a/include/linux/mfd/tps65090.h
+++ b/include/linux/mfd/tps65090.h
@@ -64,10 +64,15 @@ struct tps65090_subdev_info {
64 * struct tps65090_regulator_plat_data 64 * struct tps65090_regulator_plat_data
65 * 65 *
66 * @reg_init_data: The regulator init data. 66 * @reg_init_data: The regulator init data.
67 * @enable_ext_control: Enable extrenal control or not. Only available for
68 * DCDC1, DCDC2 and DCDC3.
69 * @gpio: Gpio number if external control is enabled and controlled through
70 * gpio.
67 */ 71 */
68
69struct tps65090_regulator_plat_data { 72struct tps65090_regulator_plat_data {
70 struct regulator_init_data *reg_init_data; 73 struct regulator_init_data *reg_init_data;
74 bool enable_ext_control;
75 int gpio;
71}; 76};
72 77
73struct tps65090_platform_data { 78struct tps65090_platform_data {