diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-omap4panda.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap4panda.c | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 8b06c6a60d02..e96a2e7ad36f 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -364,74 +364,8 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
364 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 364 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
365 | }; | 365 | }; |
366 | 366 | ||
367 | static struct omap_device_pad serial2_pads[] __initdata = { | ||
368 | OMAP_MUX_STATIC("uart2_cts.uart2_cts", | ||
369 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
370 | OMAP_MUX_STATIC("uart2_rts.uart2_rts", | ||
371 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
372 | OMAP_MUX_STATIC("uart2_rx.uart2_rx", | ||
373 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
374 | OMAP_MUX_STATIC("uart2_tx.uart2_tx", | ||
375 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
376 | }; | ||
377 | |||
378 | static struct omap_device_pad serial3_pads[] __initdata = { | ||
379 | OMAP_MUX_STATIC("uart3_cts_rctx.uart3_cts_rctx", | ||
380 | OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), | ||
381 | OMAP_MUX_STATIC("uart3_rts_sd.uart3_rts_sd", | ||
382 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
383 | OMAP_MUX_STATIC("uart3_rx_irrx.uart3_rx_irrx", | ||
384 | OMAP_PIN_INPUT | OMAP_MUX_MODE0), | ||
385 | OMAP_MUX_STATIC("uart3_tx_irtx.uart3_tx_irtx", | ||
386 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
387 | }; | ||
388 | |||
389 | static struct omap_device_pad serial4_pads[] __initdata = { | ||
390 | OMAP_MUX_STATIC("uart4_rx.uart4_rx", | ||
391 | OMAP_PIN_INPUT | OMAP_MUX_MODE0), | ||
392 | OMAP_MUX_STATIC("uart4_tx.uart4_tx", | ||
393 | OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), | ||
394 | }; | ||
395 | |||
396 | static struct omap_board_data serial2_data __initdata = { | ||
397 | .id = 1, | ||
398 | .pads = serial2_pads, | ||
399 | .pads_cnt = ARRAY_SIZE(serial2_pads), | ||
400 | }; | ||
401 | |||
402 | static struct omap_board_data serial3_data __initdata = { | ||
403 | .id = 2, | ||
404 | .pads = serial3_pads, | ||
405 | .pads_cnt = ARRAY_SIZE(serial3_pads), | ||
406 | }; | ||
407 | |||
408 | static struct omap_board_data serial4_data __initdata = { | ||
409 | .id = 3, | ||
410 | .pads = serial4_pads, | ||
411 | .pads_cnt = ARRAY_SIZE(serial4_pads), | ||
412 | }; | ||
413 | |||
414 | static inline void board_serial_init(void) | ||
415 | { | ||
416 | struct omap_board_data bdata; | ||
417 | bdata.flags = 0; | ||
418 | bdata.pads = NULL; | ||
419 | bdata.pads_cnt = 0; | ||
420 | bdata.id = 0; | ||
421 | /* pass dummy data for UART1 */ | ||
422 | omap_serial_init_port(&bdata); | ||
423 | |||
424 | omap_serial_init_port(&serial2_data); | ||
425 | omap_serial_init_port(&serial3_data); | ||
426 | omap_serial_init_port(&serial4_data); | ||
427 | } | ||
428 | #else | 367 | #else |
429 | #define board_mux NULL | 368 | #define board_mux NULL |
430 | |||
431 | static inline void board_serial_init(void) | ||
432 | { | ||
433 | omap_serial_init(); | ||
434 | } | ||
435 | #endif | 369 | #endif |
436 | 370 | ||
437 | /* Display DVI */ | 371 | /* Display DVI */ |
@@ -562,7 +496,7 @@ static void __init omap4_panda_init(void) | |||
562 | omap4_panda_i2c_init(); | 496 | omap4_panda_i2c_init(); |
563 | platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices)); | 497 | platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices)); |
564 | platform_device_register(&omap_vwlan_device); | 498 | platform_device_register(&omap_vwlan_device); |
565 | board_serial_init(); | 499 | omap_serial_init(); |
566 | omap_sdrc_init(NULL, NULL); | 500 | omap_sdrc_init(NULL, NULL); |
567 | omap4_twl6030_hsmmc_init(mmc); | 501 | omap4_twl6030_hsmmc_init(mmc); |
568 | omap4_ehci_init(); | 502 | omap4_ehci_init(); |