diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-peripherals.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index 8dee7549fbdf..118c6f53c5eb 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include "mux.h" | 32 | #include "mux.h" |
33 | #include "hsmmc.h" | 33 | #include "hsmmc.h" |
34 | #include "common-board-devices.h" | ||
34 | 35 | ||
35 | #define OMAP_ZOOM_WLAN_PMENA_GPIO (101) | 36 | #define OMAP_ZOOM_WLAN_PMENA_GPIO (101) |
36 | #define OMAP_ZOOM_WLAN_IRQ_GPIO (162) | 37 | #define OMAP_ZOOM_WLAN_IRQ_GPIO (162) |
@@ -276,13 +277,11 @@ static int zoom_twl_gpio_setup(struct device *dev, | |||
276 | zoom_vsim_supply.dev = mmc[0].dev; | 277 | zoom_vsim_supply.dev = mmc[0].dev; |
277 | zoom_vmmc2_supply.dev = mmc[1].dev; | 278 | zoom_vmmc2_supply.dev = mmc[1].dev; |
278 | 279 | ||
279 | ret = gpio_request(LCD_PANEL_ENABLE_GPIO, "lcd enable"); | 280 | ret = gpio_request_one(LCD_PANEL_ENABLE_GPIO, GPIOF_OUT_INIT_LOW, |
280 | if (ret) { | 281 | "lcd enable"); |
282 | if (ret) | ||
281 | pr_err("Failed to get LCD_PANEL_ENABLE_GPIO (gpio%d).\n", | 283 | pr_err("Failed to get LCD_PANEL_ENABLE_GPIO (gpio%d).\n", |
282 | LCD_PANEL_ENABLE_GPIO); | 284 | LCD_PANEL_ENABLE_GPIO); |
283 | return ret; | ||
284 | } | ||
285 | gpio_direction_output(LCD_PANEL_ENABLE_GPIO, 0); | ||
286 | 285 | ||
287 | return ret; | 286 | return ret; |
288 | } | 287 | } |
@@ -349,15 +348,6 @@ static struct twl4030_platform_data zoom_twldata = { | |||
349 | .vdac = &zoom_vdac, | 348 | .vdac = &zoom_vdac, |
350 | }; | 349 | }; |
351 | 350 | ||
352 | static struct i2c_board_info __initdata zoom_i2c_boardinfo[] = { | ||
353 | { | ||
354 | I2C_BOARD_INFO("twl5030", 0x48), | ||
355 | .flags = I2C_CLIENT_WAKE, | ||
356 | .irq = INT_34XX_SYS_NIRQ, | ||
357 | .platform_data = &zoom_twldata, | ||
358 | }, | ||
359 | }; | ||
360 | |||
361 | static int __init omap_i2c_init(void) | 351 | static int __init omap_i2c_init(void) |
362 | { | 352 | { |
363 | if (machine_is_omap_zoom2()) { | 353 | if (machine_is_omap_zoom2()) { |
@@ -365,19 +355,12 @@ static int __init omap_i2c_init(void) | |||
365 | zoom_audio_data.hs_extmute = 1; | 355 | zoom_audio_data.hs_extmute = 1; |
366 | zoom_audio_data.set_hs_extmute = zoom2_set_hs_extmute; | 356 | zoom_audio_data.set_hs_extmute = zoom2_set_hs_extmute; |
367 | } | 357 | } |
368 | omap_register_i2c_bus(1, 2400, zoom_i2c_boardinfo, | 358 | omap_pmic_init(1, 2400, "twl5030", INT_34XX_SYS_NIRQ, &zoom_twldata); |
369 | ARRAY_SIZE(zoom_i2c_boardinfo)); | ||
370 | omap_register_i2c_bus(2, 400, NULL, 0); | 359 | omap_register_i2c_bus(2, 400, NULL, 0); |
371 | omap_register_i2c_bus(3, 400, NULL, 0); | 360 | omap_register_i2c_bus(3, 400, NULL, 0); |
372 | return 0; | 361 | return 0; |
373 | } | 362 | } |
374 | 363 | ||
375 | static struct omap_musb_board_data musb_board_data = { | ||
376 | .interface_type = MUSB_INTERFACE_ULPI, | ||
377 | .mode = MUSB_OTG, | ||
378 | .power = 100, | ||
379 | }; | ||
380 | |||
381 | static void enable_board_wakeup_source(void) | 364 | static void enable_board_wakeup_source(void) |
382 | { | 365 | { |
383 | /* T2 interrupt line (keypad) */ | 366 | /* T2 interrupt line (keypad) */ |
@@ -392,7 +375,7 @@ void __init zoom_peripherals_init(void) | |||
392 | 375 | ||
393 | omap_i2c_init(); | 376 | omap_i2c_init(); |
394 | platform_device_register(&omap_vwlan_device); | 377 | platform_device_register(&omap_vwlan_device); |
395 | usb_musb_init(&musb_board_data); | 378 | usb_musb_init(NULL); |
396 | enable_board_wakeup_source(); | 379 | enable_board_wakeup_source(); |
397 | omap_serial_init(); | 380 | omap_serial_init(); |
398 | } | 381 | } |