aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3touchbook.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2011-06-06 14:57:07 -0400
committerTony Lindgren <tony@atomide.com>2011-06-14 07:46:26 -0400
commit786b01a8c1db0c0decca55d660a2a3ebd7cfb26b (patch)
treefde9e94c10d61e712c5e3b893e5c1dc5c82e723b /arch/arm/mach-omap2/board-omap3touchbook.c
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
cleanup regulator supply definitions in mach-omap2
to use REGULATOR_SUPPLY arrays. CC: Mark Brown <broonie@opensource.wolfsonmicro.com> CC: Mike Rapoport <mike@compulab.co.il> CC: Nishant Kamat <nskamat@ti.com> CC: Steve Sakoman <steve@sakoman.com> CC: Felipe Balbi <balbi@ti.com> CC: Santosh Shilimkar <santosh.shilimkar@ti.com> CC: peter.barada@logicpd.com Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3touchbook.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3touchbook.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c
index 5f649faf737..ab5c37d9540 100644
--- a/arch/arm/mach-omap2/board-omap3touchbook.c
+++ b/arch/arm/mach-omap2/board-omap3touchbook.c
@@ -114,12 +114,12 @@ static struct omap_lcd_config omap3_touchbook_lcd_config __initdata = {
114 .ctrl_name = "internal", 114 .ctrl_name = "internal",
115}; 115};
116 116
117static struct regulator_consumer_supply touchbook_vmmc1_supply = { 117static struct regulator_consumer_supply touchbook_vmmc1_supply[] = {
118 .supply = "vmmc", 118 REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
119}; 119};
120 120
121static struct regulator_consumer_supply touchbook_vsim_supply = { 121static struct regulator_consumer_supply touchbook_vsim_supply[] = {
122 .supply = "vmmc_aux", 122 REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"),
123}; 123};
124 124
125static struct gpio_led gpio_leds[]; 125static struct gpio_led gpio_leds[];
@@ -167,14 +167,18 @@ static struct twl4030_gpio_platform_data touchbook_gpio_data = {
167 .setup = touchbook_twl_gpio_setup, 167 .setup = touchbook_twl_gpio_setup,
168}; 168};
169 169
170static struct regulator_consumer_supply touchbook_vdac_supply = { 170static struct regulator_consumer_supply touchbook_vdac_supply[] = {
171{
171 .supply = "vdac", 172 .supply = "vdac",
172 .dev = &omap3_touchbook_lcd_device.dev, 173 .dev = &omap3_touchbook_lcd_device.dev,
174},
173}; 175};
174 176
175static struct regulator_consumer_supply touchbook_vdvi_supply = { 177static struct regulator_consumer_supply touchbook_vdvi_supply[] = {
178{
176 .supply = "vdvi", 179 .supply = "vdvi",
177 .dev = &omap3_touchbook_lcd_device.dev, 180 .dev = &omap3_touchbook_lcd_device.dev,
181},
178}; 182};
179 183
180/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ 184/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
@@ -188,8 +192,8 @@ static struct regulator_init_data touchbook_vmmc1 = {
188 | REGULATOR_CHANGE_MODE 192 | REGULATOR_CHANGE_MODE
189 | REGULATOR_CHANGE_STATUS, 193 | REGULATOR_CHANGE_STATUS,
190 }, 194 },
191 .num_consumer_supplies = 1, 195 .num_consumer_supplies = ARRAY_SIZE(touchbook_vmmc1_supply),
192 .consumer_supplies = &touchbook_vmmc1_supply, 196 .consumer_supplies = touchbook_vmmc1_supply,
193}; 197};
194 198
195/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */ 199/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
@@ -203,8 +207,8 @@ static struct regulator_init_data touchbook_vsim = {
203 | REGULATOR_CHANGE_MODE 207 | REGULATOR_CHANGE_MODE
204 | REGULATOR_CHANGE_STATUS, 208 | REGULATOR_CHANGE_STATUS,
205 }, 209 },
206 .num_consumer_supplies = 1, 210 .num_consumer_supplies = ARRAY_SIZE(touchbook_vsim_supply),
207 .consumer_supplies = &touchbook_vsim_supply, 211 .consumer_supplies = touchbook_vsim_supply,
208}; 212};
209 213
210/* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ 214/* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */
@@ -217,8 +221,8 @@ static struct regulator_init_data touchbook_vdac = {
217 .valid_ops_mask = REGULATOR_CHANGE_MODE 221 .valid_ops_mask = REGULATOR_CHANGE_MODE
218 | REGULATOR_CHANGE_STATUS, 222 | REGULATOR_CHANGE_STATUS,
219 }, 223 },
220 .num_consumer_supplies = 1, 224 .num_consumer_supplies = ARRAY_SIZE(touchbook_vdac_supply),
221 .consumer_supplies = &touchbook_vdac_supply, 225 .consumer_supplies = touchbook_vdac_supply,
222}; 226};
223 227
224/* VPLL2 for digital video outputs */ 228/* VPLL2 for digital video outputs */
@@ -232,8 +236,8 @@ static struct regulator_init_data touchbook_vpll2 = {
232 .valid_ops_mask = REGULATOR_CHANGE_MODE 236 .valid_ops_mask = REGULATOR_CHANGE_MODE
233 | REGULATOR_CHANGE_STATUS, 237 | REGULATOR_CHANGE_STATUS,
234 }, 238 },
235 .num_consumer_supplies = 1, 239 .num_consumer_supplies = ARRAY_SIZE(touchbook_vdvi_supply),
236 .consumer_supplies = &touchbook_vdvi_supply, 240 .consumer_supplies = touchbook_vdvi_supply,
237}; 241};
238 242
239static struct twl4030_usb_data touchbook_usb_data = { 243static struct twl4030_usb_data touchbook_usb_data = {