diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-27 15:06:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-27 15:06:08 -0500 |
commit | b87d07b13c779c42e4929e590003c9eb8c2f06fa (patch) | |
tree | 9fbe55b61e176e783e5c6d6063733079d0274948 /include/linux/mfd | |
parent | 77b71b370ed06c75bdebef09be438d5275f70fc1 (diff) | |
parent | 8dc995f56ef7aedb41873fdeaa1971f3aa166ebd (diff) |
Merge branch 'topic/hotplug' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-max8997
Conflicts:
drivers/regulator/max8997.c
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/tps65090.h | 35 | ||||
-rw-r--r-- | include/linux/mfd/tps6586x.h | 3 |
2 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h index 6bc31d854626..804e280c1e1d 100644 --- a/include/linux/mfd/tps65090.h +++ b/include/linux/mfd/tps65090.h | |||
@@ -24,6 +24,25 @@ | |||
24 | 24 | ||
25 | #include <linux/irq.h> | 25 | #include <linux/irq.h> |
26 | 26 | ||
27 | /* TPS65090 Regulator ID */ | ||
28 | enum { | ||
29 | TPS65090_REGULATOR_DCDC1, | ||
30 | TPS65090_REGULATOR_DCDC2, | ||
31 | TPS65090_REGULATOR_DCDC3, | ||
32 | TPS65090_REGULATOR_FET1, | ||
33 | TPS65090_REGULATOR_FET2, | ||
34 | TPS65090_REGULATOR_FET3, | ||
35 | TPS65090_REGULATOR_FET4, | ||
36 | TPS65090_REGULATOR_FET5, | ||
37 | TPS65090_REGULATOR_FET6, | ||
38 | TPS65090_REGULATOR_FET7, | ||
39 | TPS65090_REGULATOR_LDO1, | ||
40 | TPS65090_REGULATOR_LDO2, | ||
41 | |||
42 | /* Last entry for maximum ID */ | ||
43 | TPS65090_REGULATOR_MAX, | ||
44 | }; | ||
45 | |||
27 | struct tps65090 { | 46 | struct tps65090 { |
28 | struct mutex lock; | 47 | struct mutex lock; |
29 | struct device *dev; | 48 | struct device *dev; |
@@ -41,10 +60,26 @@ struct tps65090_subdev_info { | |||
41 | void *platform_data; | 60 | void *platform_data; |
42 | }; | 61 | }; |
43 | 62 | ||
63 | /* | ||
64 | * struct tps65090_regulator_plat_data | ||
65 | * | ||
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. | ||
71 | */ | ||
72 | struct tps65090_regulator_plat_data { | ||
73 | struct regulator_init_data *reg_init_data; | ||
74 | bool enable_ext_control; | ||
75 | int gpio; | ||
76 | }; | ||
77 | |||
44 | struct tps65090_platform_data { | 78 | struct tps65090_platform_data { |
45 | int irq_base; | 79 | int irq_base; |
46 | int num_subdevs; | 80 | int num_subdevs; |
47 | struct tps65090_subdev_info *subdevs; | 81 | struct tps65090_subdev_info *subdevs; |
82 | struct tps65090_regulator_plat_data *reg_pdata[TPS65090_REGULATOR_MAX]; | ||
48 | }; | 83 | }; |
49 | 84 | ||
50 | /* | 85 | /* |
diff --git a/include/linux/mfd/tps6586x.h b/include/linux/mfd/tps6586x.h index 2dd123194958..f8da0e152567 100644 --- a/include/linux/mfd/tps6586x.h +++ b/include/linux/mfd/tps6586x.h | |||
@@ -29,6 +29,7 @@ enum { | |||
29 | TPS6586X_ID_LDO_8, | 29 | TPS6586X_ID_LDO_8, |
30 | TPS6586X_ID_LDO_9, | 30 | TPS6586X_ID_LDO_9, |
31 | TPS6586X_ID_LDO_RTC, | 31 | TPS6586X_ID_LDO_RTC, |
32 | TPS6586X_ID_MAX_REGULATOR, | ||
32 | }; | 33 | }; |
33 | 34 | ||
34 | enum { | 35 | enum { |
@@ -79,6 +80,8 @@ struct tps6586x_platform_data { | |||
79 | int gpio_base; | 80 | int gpio_base; |
80 | int irq_base; | 81 | int irq_base; |
81 | bool pm_off; | 82 | bool pm_off; |
83 | |||
84 | struct regulator_init_data *reg_init_data[TPS6586X_ID_MAX_REGULATOR]; | ||
82 | }; | 85 | }; |
83 | 86 | ||
84 | /* | 87 | /* |