summaryrefslogtreecommitdiff
path: root/include/linux/mfd/tps65090.h
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-10-09 15:19:02 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-17 22:21:21 +0900
commitf329b1755b475f64f0472cda1ae9602e092f6f05 (patch)
tree3580b525f7626d063bf93e4a1370056f1e605b84 /include/linux/mfd/tps65090.h
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/tps65090.h')
-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 598921221ff0..804e280c1e1d 100644
--- a/include/linux/mfd/tps65090.h
+++ b/include/linux/mfd/tps65090.h
@@ -64,10 +64,15 @@ struct tps65090_subdev_info {
* struct tps65090_regulator_plat_data
*
* @reg_init_data: The regulator init data.
+ * @enable_ext_control: Enable extrenal control or not. Only available for
+ * DCDC1, DCDC2 and DCDC3.
+ * @gpio: Gpio number if external control is enabled and controlled through
+ * gpio.
*/
-
struct tps65090_regulator_plat_data {
struct regulator_init_data *reg_init_data;
+ bool enable_ext_control;
+ int gpio;
};
struct tps65090_platform_data {