diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-devkit8000.c')
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 64 |
1 files changed, 15 insertions, 49 deletions
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 34956ec83296..b6002ec31c6a 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -58,7 +58,6 @@ | |||
58 | 58 | ||
59 | #include "mux.h" | 59 | #include "mux.h" |
60 | #include "hsmmc.h" | 60 | #include "hsmmc.h" |
61 | #include "timer-gp.h" | ||
62 | #include "common-board-devices.h" | 61 | #include "common-board-devices.h" |
63 | 62 | ||
64 | #define OMAP_DM9000_GPIO_IRQ 25 | 63 | #define OMAP_DM9000_GPIO_IRQ 25 |
@@ -130,13 +129,14 @@ static void devkit8000_panel_disable_dvi(struct omap_dss_device *dssdev) | |||
130 | gpio_set_value_cansleep(dssdev->reset_gpio, 0); | 129 | gpio_set_value_cansleep(dssdev->reset_gpio, 0); |
131 | } | 130 | } |
132 | 131 | ||
133 | static struct regulator_consumer_supply devkit8000_vmmc1_supply = | 132 | static struct regulator_consumer_supply devkit8000_vmmc1_supply[] = { |
134 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); | 133 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
135 | 134 | }; | |
136 | 135 | ||
137 | /* ads7846 on SPI */ | 136 | /* ads7846 on SPI */ |
138 | static struct regulator_consumer_supply devkit8000_vio_supply = | 137 | static struct regulator_consumer_supply devkit8000_vio_supply[] = { |
139 | REGULATOR_SUPPLY("vcc", "spi2.0"); | 138 | REGULATOR_SUPPLY("vcc", "spi2.0"), |
139 | }; | ||
140 | 140 | ||
141 | static struct panel_generic_dpi_data lcd_panel = { | 141 | static struct panel_generic_dpi_data lcd_panel = { |
142 | .name = "generic", | 142 | .name = "generic", |
@@ -186,9 +186,6 @@ static struct omap_dss_board_info devkit8000_dss_data = { | |||
186 | .default_device = &devkit8000_lcd_device, | 186 | .default_device = &devkit8000_lcd_device, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct regulator_consumer_supply devkit8000_vdda_dac_supply = | ||
190 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"); | ||
191 | |||
192 | static uint32_t board_keymap[] = { | 189 | static uint32_t board_keymap[] = { |
193 | KEY(0, 0, KEY_1), | 190 | KEY(0, 0, KEY_1), |
194 | KEY(1, 0, KEY_2), | 191 | KEY(1, 0, KEY_2), |
@@ -284,22 +281,8 @@ static struct regulator_init_data devkit8000_vmmc1 = { | |||
284 | | REGULATOR_CHANGE_MODE | 281 | | REGULATOR_CHANGE_MODE |
285 | | REGULATOR_CHANGE_STATUS, | 282 | | REGULATOR_CHANGE_STATUS, |
286 | }, | 283 | }, |
287 | .num_consumer_supplies = 1, | 284 | .num_consumer_supplies = ARRAY_SIZE(devkit8000_vmmc1_supply), |
288 | .consumer_supplies = &devkit8000_vmmc1_supply, | 285 | .consumer_supplies = devkit8000_vmmc1_supply, |
289 | }; | ||
290 | |||
291 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | ||
292 | static struct regulator_init_data devkit8000_vdac = { | ||
293 | .constraints = { | ||
294 | .min_uV = 1800000, | ||
295 | .max_uV = 1800000, | ||
296 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
297 | | REGULATOR_MODE_STANDBY, | ||
298 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
299 | | REGULATOR_CHANGE_STATUS, | ||
300 | }, | ||
301 | .num_consumer_supplies = 1, | ||
302 | .consumer_supplies = &devkit8000_vdda_dac_supply, | ||
303 | }; | 286 | }; |
304 | 287 | ||
305 | /* VPLL1 for digital video outputs */ | 288 | /* VPLL1 for digital video outputs */ |
@@ -327,31 +310,14 @@ static struct regulator_init_data devkit8000_vio = { | |||
327 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 310 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
328 | | REGULATOR_CHANGE_STATUS, | 311 | | REGULATOR_CHANGE_STATUS, |
329 | }, | 312 | }, |
330 | .num_consumer_supplies = 1, | 313 | .num_consumer_supplies = ARRAY_SIZE(devkit8000_vio_supply), |
331 | .consumer_supplies = &devkit8000_vio_supply, | 314 | .consumer_supplies = devkit8000_vio_supply, |
332 | }; | ||
333 | |||
334 | static struct twl4030_usb_data devkit8000_usb_data = { | ||
335 | .usb_mode = T2_USB_MODE_ULPI, | ||
336 | }; | ||
337 | |||
338 | static struct twl4030_codec_audio_data devkit8000_audio_data; | ||
339 | |||
340 | static struct twl4030_codec_data devkit8000_codec_data = { | ||
341 | .audio_mclk = 26000000, | ||
342 | .audio = &devkit8000_audio_data, | ||
343 | }; | 315 | }; |
344 | 316 | ||
345 | static struct twl4030_platform_data devkit8000_twldata = { | 317 | static struct twl4030_platform_data devkit8000_twldata = { |
346 | .irq_base = TWL4030_IRQ_BASE, | ||
347 | .irq_end = TWL4030_IRQ_END, | ||
348 | |||
349 | /* platform_data for children goes here */ | 318 | /* platform_data for children goes here */ |
350 | .usb = &devkit8000_usb_data, | ||
351 | .gpio = &devkit8000_gpio_data, | 319 | .gpio = &devkit8000_gpio_data, |
352 | .codec = &devkit8000_codec_data, | ||
353 | .vmmc1 = &devkit8000_vmmc1, | 320 | .vmmc1 = &devkit8000_vmmc1, |
354 | .vdac = &devkit8000_vdac, | ||
355 | .vpll1 = &devkit8000_vpll1, | 321 | .vpll1 = &devkit8000_vpll1, |
356 | .vio = &devkit8000_vio, | 322 | .vio = &devkit8000_vio, |
357 | .keypad = &devkit8000_kp_data, | 323 | .keypad = &devkit8000_kp_data, |
@@ -359,6 +325,9 @@ static struct twl4030_platform_data devkit8000_twldata = { | |||
359 | 325 | ||
360 | static int __init devkit8000_i2c_init(void) | 326 | static int __init devkit8000_i2c_init(void) |
361 | { | 327 | { |
328 | omap3_pmic_get_config(&devkit8000_twldata, | ||
329 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, | ||
330 | TWL_COMMON_REGULATOR_VDAC); | ||
362 | omap3_pmic_init("tps65930", &devkit8000_twldata); | 331 | omap3_pmic_init("tps65930", &devkit8000_twldata); |
363 | /* Bus 3 is attached to the DVI port where devices like the pico DLP | 332 | /* Bus 3 is attached to the DVI port where devices like the pico DLP |
364 | * projector don't work reliably with 400kHz */ | 333 | * projector don't work reliably with 400kHz */ |
@@ -438,10 +407,7 @@ static void __init devkit8000_init_early(void) | |||
438 | 407 | ||
439 | static void __init devkit8000_init_irq(void) | 408 | static void __init devkit8000_init_irq(void) |
440 | { | 409 | { |
441 | omap_init_irq(); | 410 | omap3_init_irq(); |
442 | #ifdef CONFIG_OMAP_32K_TIMER | ||
443 | omap2_gp_clockevent_set_gptimer(12); | ||
444 | #endif | ||
445 | } | 411 | } |
446 | 412 | ||
447 | #define OMAP_DM9000_BASE 0x2c000000 | 413 | #define OMAP_DM9000_BASE 0x2c000000 |
@@ -707,5 +673,5 @@ MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | |||
707 | .init_early = devkit8000_init_early, | 673 | .init_early = devkit8000_init_early, |
708 | .init_irq = devkit8000_init_irq, | 674 | .init_irq = devkit8000_init_irq, |
709 | .init_machine = devkit8000_init, | 675 | .init_machine = devkit8000_init, |
710 | .timer = &omap_timer, | 676 | .timer = &omap3_secure_timer, |
711 | MACHINE_END | 677 | MACHINE_END |