diff options
author | Mike Rapoport <mike@compulab.co.il> | 2011-04-27 04:56:12 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-05-09 11:15:31 -0400 |
commit | 9e18630b689d658d65bf59508bfec084f61ff5c6 (patch) | |
tree | b9c1583d0d8eea28ad02b2a96ccf7116c8312fe2 /arch/arm/mach-omap2 | |
parent | 9a3f39ff36e11ea6b6c8b5f90337a864cb7e81f6 (diff) |
omap: musb: introduce default board config
Most boards use exactly the same configuration for musb initialization.
Create a default that can be shared amount different boards.
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-igep0030.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-rm680.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-peripherals.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/usb-musb.c | 14 |
15 files changed, 27 insertions, 98 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 99b3f2de21ff..a8810f83a573 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -208,11 +208,6 @@ static struct omap2_hsmmc_info mmc[] __initdata = { | |||
208 | {} /* Terminator */ | 208 | {} /* Terminator */ |
209 | }; | 209 | }; |
210 | 210 | ||
211 | static struct omap_musb_board_data musb_board_data = { | ||
212 | .interface_type = MUSB_INTERFACE_ULPI, | ||
213 | .mode = MUSB_OTG, | ||
214 | .power = 100, | ||
215 | }; | ||
216 | static struct omap_usb_config sdp2430_usb_config __initdata = { | 211 | static struct omap_usb_config sdp2430_usb_config __initdata = { |
217 | .otg = 1, | 212 | .otg = 1, |
218 | #ifdef CONFIG_USB_GADGET_OMAP | 213 | #ifdef CONFIG_USB_GADGET_OMAP |
@@ -246,7 +241,7 @@ static void __init omap_2430sdp_init(void) | |||
246 | omap2_usbfs_init(&sdp2430_usb_config); | 241 | omap2_usbfs_init(&sdp2430_usb_config); |
247 | 242 | ||
248 | omap_mux_init_signal("usb0hs_stp", OMAP_PULL_ENA | OMAP_PULL_UP); | 243 | omap_mux_init_signal("usb0hs_stp", OMAP_PULL_ENA | OMAP_PULL_UP); |
249 | usb_musb_init(&musb_board_data); | 244 | usb_musb_init(NULL); |
250 | 245 | ||
251 | board_smc91x_init(); | 246 | board_smc91x_init(); |
252 | 247 | ||
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index b12400e2c49a..951e5857ad31 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -810,12 +810,6 @@ static struct flash_partitions sdp_flash_partitions[] = { | |||
810 | }, | 810 | }, |
811 | }; | 811 | }; |
812 | 812 | ||
813 | static struct omap_musb_board_data musb_board_data = { | ||
814 | .interface_type = MUSB_INTERFACE_ULPI, | ||
815 | .mode = MUSB_OTG, | ||
816 | .power = 100, | ||
817 | }; | ||
818 | |||
819 | static void __init omap_3430sdp_init(void) | 813 | static void __init omap_3430sdp_init(void) |
820 | { | 814 | { |
821 | int gpio_pendown; | 815 | int gpio_pendown; |
@@ -832,7 +826,7 @@ static void __init omap_3430sdp_init(void) | |||
832 | gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV1; | 826 | gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV1; |
833 | omap_ads7846_init(1, gpio_pendown, 310, NULL); | 827 | omap_ads7846_init(1, gpio_pendown, 310, NULL); |
834 | board_serial_init(); | 828 | board_serial_init(); |
835 | usb_musb_init(&musb_board_data); | 829 | usb_musb_init(NULL); |
836 | board_smc91x_init(); | 830 | board_smc91x_init(); |
837 | board_flash_init(sdp_flash_partitions, chip_sel_3430, 0); | 831 | board_flash_init(sdp_flash_partitions, chip_sel_3430, 0); |
838 | sdp3430_display_init(); | 832 | sdp3430_display_init(); |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 948161d3998e..e0e2d4838003 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -653,12 +653,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
653 | }; | 653 | }; |
654 | #endif | 654 | #endif |
655 | 655 | ||
656 | static struct omap_musb_board_data musb_board_data = { | ||
657 | .interface_type = MUSB_INTERFACE_ULPI, | ||
658 | .mode = MUSB_OTG, | ||
659 | .power = 100, | ||
660 | }; | ||
661 | |||
662 | static struct omap_board_config_kernel cm_t35_config[] __initdata = { | 656 | static struct omap_board_config_kernel cm_t35_config[] __initdata = { |
663 | }; | 657 | }; |
664 | 658 | ||
@@ -675,7 +669,7 @@ static void __init cm_t35_init(void) | |||
675 | cm_t35_init_led(); | 669 | cm_t35_init_led(); |
676 | cm_t35_init_display(); | 670 | cm_t35_init_display(); |
677 | 671 | ||
678 | usb_musb_init(&musb_board_data); | 672 | usb_musb_init(NULL); |
679 | usbhs_init(&usbhs_bdata); | 673 | usbhs_init(&usbhs_bdata); |
680 | } | 674 | } |
681 | 675 | ||
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index e7dc057600d5..405542af6caa 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -509,12 +509,6 @@ static struct platform_device *devkit8000_devices[] __initdata = { | |||
509 | &omap_dm9000_dev, | 509 | &omap_dm9000_dev, |
510 | }; | 510 | }; |
511 | 511 | ||
512 | static struct omap_musb_board_data musb_board_data = { | ||
513 | .interface_type = MUSB_INTERFACE_ULPI, | ||
514 | .mode = MUSB_OTG, | ||
515 | .power = 100, | ||
516 | }; | ||
517 | |||
518 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | 512 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { |
519 | 513 | ||
520 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 514 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
@@ -698,7 +692,7 @@ static void __init devkit8000_init(void) | |||
698 | 692 | ||
699 | omap_ads7846_init(2, OMAP3_DEVKIT_TS_GPIO, 0, NULL); | 693 | omap_ads7846_init(2, OMAP3_DEVKIT_TS_GPIO, 0, NULL); |
700 | 694 | ||
701 | usb_musb_init(&musb_board_data); | 695 | usb_musb_init(NULL); |
702 | usbhs_init(&usbhs_bdata); | 696 | usbhs_init(&usbhs_bdata); |
703 | omap_nand_flash_init(NAND_BUSWIDTH_16, devkit8000_nand_partitions, | 697 | omap_nand_flash_init(NAND_BUSWIDTH_16, devkit8000_nand_partitions, |
704 | ARRAY_SIZE(devkit8000_nand_partitions)); | 698 | ARRAY_SIZE(devkit8000_nand_partitions)); |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index a0fd10e42b35..2c9a9197d2b2 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -559,12 +559,6 @@ static void __init igep2_i2c_init(void) | |||
559 | pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); | 559 | pr_warning("IGEP2: Could not register I2C3 bus (%d)\n", ret); |
560 | } | 560 | } |
561 | 561 | ||
562 | static struct omap_musb_board_data musb_board_data = { | ||
563 | .interface_type = MUSB_INTERFACE_ULPI, | ||
564 | .mode = MUSB_OTG, | ||
565 | .power = 100, | ||
566 | }; | ||
567 | |||
568 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | 562 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { |
569 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 563 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
570 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, | 564 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -637,7 +631,7 @@ static void __init igep2_init(void) | |||
637 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); | 631 | platform_add_devices(igep2_devices, ARRAY_SIZE(igep2_devices)); |
638 | omap_display_init(&igep2_dss_data); | 632 | omap_display_init(&igep2_dss_data); |
639 | omap_serial_init(); | 633 | omap_serial_init(); |
640 | usb_musb_init(&musb_board_data); | 634 | usb_musb_init(NULL); |
641 | usbhs_init(&usbhs_bdata); | 635 | usbhs_init(&usbhs_bdata); |
642 | 636 | ||
643 | igep2_flash_init(); | 637 | igep2_flash_init(); |
diff --git a/arch/arm/mach-omap2/board-igep0030.c b/arch/arm/mach-omap2/board-igep0030.c index a831e8549455..512a7eb9c2da 100644 --- a/arch/arm/mach-omap2/board-igep0030.c +++ b/arch/arm/mach-omap2/board-igep0030.c | |||
@@ -357,12 +357,6 @@ static int __init igep3_i2c_init(void) | |||
357 | return 0; | 357 | return 0; |
358 | } | 358 | } |
359 | 359 | ||
360 | static struct omap_musb_board_data musb_board_data = { | ||
361 | .interface_type = MUSB_INTERFACE_ULPI, | ||
362 | .mode = MUSB_OTG, | ||
363 | .power = 100, | ||
364 | }; | ||
365 | |||
366 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) | 360 | #if defined(CONFIG_LIBERTAS_SDIO) || defined(CONFIG_LIBERTAS_SDIO_MODULE) |
367 | 361 | ||
368 | static void __init igep3_wifi_bt_init(void) | 362 | static void __init igep3_wifi_bt_init(void) |
@@ -424,7 +418,7 @@ static void __init igep3_init(void) | |||
424 | igep3_i2c_init(); | 418 | igep3_i2c_init(); |
425 | platform_add_devices(igep3_devices, ARRAY_SIZE(igep3_devices)); | 419 | platform_add_devices(igep3_devices, ARRAY_SIZE(igep3_devices)); |
426 | omap_serial_init(); | 420 | omap_serial_init(); |
427 | usb_musb_init(&musb_board_data); | 421 | usb_musb_init(NULL); |
428 | usbhs_init(&usbhs_bdata); | 422 | usbhs_init(&usbhs_bdata); |
429 | 423 | ||
430 | igep3_flash_init(); | 424 | igep3_flash_init(); |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 7482c7531ede..f7d6038075f0 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -294,12 +294,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
294 | }; | 294 | }; |
295 | #endif | 295 | #endif |
296 | 296 | ||
297 | static struct omap_musb_board_data musb_board_data = { | ||
298 | .interface_type = MUSB_INTERFACE_ULPI, | ||
299 | .mode = MUSB_OTG, | ||
300 | .power = 100, | ||
301 | }; | ||
302 | |||
303 | static struct mtd_partition ldp_nand_partitions[] = { | 297 | static struct mtd_partition ldp_nand_partitions[] = { |
304 | /* All the partition sizes are listed in terms of NAND block size */ | 298 | /* All the partition sizes are listed in terms of NAND block size */ |
305 | { | 299 | { |
@@ -342,7 +336,7 @@ static void __init omap_ldp_init(void) | |||
342 | platform_add_devices(ldp_devices, ARRAY_SIZE(ldp_devices)); | 336 | platform_add_devices(ldp_devices, ARRAY_SIZE(ldp_devices)); |
343 | omap_ads7846_init(1, 54, 310, NULL); | 337 | omap_ads7846_init(1, 54, 310, NULL); |
344 | omap_serial_init(); | 338 | omap_serial_init(); |
345 | usb_musb_init(&musb_board_data); | 339 | usb_musb_init(NULL); |
346 | board_nand_init(ldp_nand_partitions, | 340 | board_nand_init(ldp_nand_partitions, |
347 | ARRAY_SIZE(ldp_nand_partitions), ZOOM_NAND_CS, 0); | 341 | ARRAY_SIZE(ldp_nand_partitions), ZOOM_NAND_CS, 0); |
348 | 342 | ||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index ce3bc2d1164c..bc30ab092d1e 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -551,12 +551,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
551 | }; | 551 | }; |
552 | #endif | 552 | #endif |
553 | 553 | ||
554 | static struct omap_musb_board_data musb_board_data = { | ||
555 | .interface_type = MUSB_INTERFACE_ULPI, | ||
556 | .mode = MUSB_OTG, | ||
557 | .power = 100, | ||
558 | }; | ||
559 | |||
560 | static void __init beagle_opp_init(void) | 554 | static void __init beagle_opp_init(void) |
561 | { | 555 | { |
562 | int r = 0; | 556 | int r = 0; |
@@ -618,7 +612,7 @@ static void __init omap3_beagle_init(void) | |||
618 | /* REVISIT leave DVI powered down until it's needed ... */ | 612 | /* REVISIT leave DVI powered down until it's needed ... */ |
619 | gpio_direction_output(170, true); | 613 | gpio_direction_output(170, true); |
620 | 614 | ||
621 | usb_musb_init(&musb_board_data); | 615 | usb_musb_init(NULL); |
622 | usbhs_init(&usbhs_bdata); | 616 | usbhs_init(&usbhs_bdata); |
623 | omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions, | 617 | omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions, |
624 | ARRAY_SIZE(omap3beagle_nand_partitions)); | 618 | ARRAY_SIZE(omap3beagle_nand_partitions)); |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index b99cc642c5e2..6c22d3f238eb 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -633,12 +633,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
633 | }; | 633 | }; |
634 | #endif | 634 | #endif |
635 | 635 | ||
636 | static struct omap_musb_board_data musb_board_data = { | ||
637 | .interface_type = MUSB_INTERFACE_ULPI, | ||
638 | .mode = MUSB_OTG, | ||
639 | .power = 100, | ||
640 | }; | ||
641 | |||
642 | static void __init omap3pandora_init(void) | 636 | static void __init omap3pandora_init(void) |
643 | { | 637 | { |
644 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 638 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
@@ -652,7 +646,7 @@ static void __init omap3pandora_init(void) | |||
652 | ARRAY_SIZE(omap3pandora_spi_board_info)); | 646 | ARRAY_SIZE(omap3pandora_spi_board_info)); |
653 | omap_ads7846_init(1, OMAP3_PANDORA_TS_GPIO, 0, NULL); | 647 | omap_ads7846_init(1, OMAP3_PANDORA_TS_GPIO, 0, NULL); |
654 | usbhs_init(&usbhs_bdata); | 648 | usbhs_init(&usbhs_bdata); |
655 | usb_musb_init(&musb_board_data); | 649 | usb_musb_init(NULL); |
656 | gpmc_nand_init(&pandora_nand_data); | 650 | gpmc_nand_init(&pandora_nand_data); |
657 | 651 | ||
658 | /* Ensure SDRC pins are mux'd for self-refresh */ | 652 | /* Ensure SDRC pins are mux'd for self-refresh */ |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index a1d550f8ba91..9981d06b7269 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -526,12 +526,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
526 | }; | 526 | }; |
527 | #endif | 527 | #endif |
528 | 528 | ||
529 | static struct omap_musb_board_data musb_board_data = { | ||
530 | .interface_type = MUSB_INTERFACE_ULPI, | ||
531 | .mode = MUSB_OTG, | ||
532 | .power = 100, | ||
533 | }; | ||
534 | |||
535 | static void __init omap3_stalker_init(void) | 529 | static void __init omap3_stalker_init(void) |
536 | { | 530 | { |
537 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); | 531 | omap3_mux_init(board_mux, OMAP_PACKAGE_CUS); |
@@ -546,7 +540,7 @@ static void __init omap3_stalker_init(void) | |||
546 | omap_display_init(&omap3_stalker_dss_data); | 540 | omap_display_init(&omap3_stalker_dss_data); |
547 | 541 | ||
548 | omap_serial_init(); | 542 | omap_serial_init(); |
549 | usb_musb_init(&musb_board_data); | 543 | usb_musb_init(NULL); |
550 | usbhs_init(&usbhs_bdata); | 544 | usbhs_init(&usbhs_bdata); |
551 | omap_ads7846_init(1, OMAP3_STALKER_TS_GPIO, 310, NULL); | 545 | omap_ads7846_init(1, OMAP3_STALKER_TS_GPIO, 310, NULL); |
552 | 546 | ||
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index d770802900b2..392278d9a882 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -421,12 +421,6 @@ static int __init early_touchbook_revision(char *p) | |||
421 | } | 421 | } |
422 | early_param("tbr", early_touchbook_revision); | 422 | early_param("tbr", early_touchbook_revision); |
423 | 423 | ||
424 | static struct omap_musb_board_data musb_board_data = { | ||
425 | .interface_type = MUSB_INTERFACE_ULPI, | ||
426 | .mode = MUSB_OTG, | ||
427 | .power = 100, | ||
428 | }; | ||
429 | |||
430 | static void __init omap3_touchbook_init(void) | 424 | static void __init omap3_touchbook_init(void) |
431 | { | 425 | { |
432 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 426 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
@@ -447,7 +441,7 @@ static void __init omap3_touchbook_init(void) | |||
447 | 441 | ||
448 | /* Touchscreen and accelerometer */ | 442 | /* Touchscreen and accelerometer */ |
449 | omap_ads7846_init(4, OMAP3_TS_GPIO, 310, &ads7846_pdata); | 443 | omap_ads7846_init(4, OMAP3_TS_GPIO, 310, &ads7846_pdata); |
450 | usb_musb_init(&musb_board_data); | 444 | usb_musb_init(NULL); |
451 | usbhs_init(&usbhs_bdata); | 445 | usbhs_init(&usbhs_bdata); |
452 | omap_nand_flash_init(NAND_BUSWIDTH_16, omap3touchbook_nand_partitions, | 446 | omap_nand_flash_init(NAND_BUSWIDTH_16, omap3touchbook_nand_partitions, |
453 | ARRAY_SIZE(omap3touchbook_nand_partitions)); | 447 | ARRAY_SIZE(omap3touchbook_nand_partitions)); |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 7ad2d7fea8d8..e152c13ded75 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -553,12 +553,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
553 | }; | 553 | }; |
554 | #endif | 554 | #endif |
555 | 555 | ||
556 | static struct omap_musb_board_data musb_board_data = { | ||
557 | .interface_type = MUSB_INTERFACE_ULPI, | ||
558 | .mode = MUSB_OTG, | ||
559 | .power = 100, | ||
560 | }; | ||
561 | |||
562 | static void __init overo_init(void) | 556 | static void __init overo_init(void) |
563 | { | 557 | { |
564 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 558 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
@@ -567,7 +561,7 @@ static void __init overo_init(void) | |||
567 | omap_serial_init(); | 561 | omap_serial_init(); |
568 | omap_nand_flash_init(0, overo_nand_partitions, | 562 | omap_nand_flash_init(0, overo_nand_partitions, |
569 | ARRAY_SIZE(overo_nand_partitions)); | 563 | ARRAY_SIZE(overo_nand_partitions)); |
570 | usb_musb_init(&musb_board_data); | 564 | usb_musb_init(NULL); |
571 | usbhs_init(&usbhs_bdata); | 565 | usbhs_init(&usbhs_bdata); |
572 | overo_spi_init(); | 566 | overo_spi_init(); |
573 | overo_ads7846_init(); | 567 | overo_ads7846_init(); |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 8e710ffaec66..42d10b12da3c 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -144,17 +144,11 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
144 | }; | 144 | }; |
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | static struct omap_musb_board_data rm680_musb_data = { | ||
148 | .interface_type = MUSB_INTERFACE_ULPI, | ||
149 | .mode = MUSB_PERIPHERAL, | ||
150 | .power = 100, | ||
151 | }; | ||
152 | |||
153 | static void __init rm680_init(void) | 147 | static void __init rm680_init(void) |
154 | { | 148 | { |
155 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 149 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
156 | omap_serial_init(); | 150 | omap_serial_init(); |
157 | usb_musb_init(&rm680_musb_data); | 151 | usb_musb_init(NULL); |
158 | rm680_peripherals_init(); | 152 | rm680_peripherals_init(); |
159 | } | 153 | } |
160 | 154 | ||
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index e4870c20f193..489294a715ce 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -363,12 +363,6 @@ static int __init omap_i2c_init(void) | |||
363 | return 0; | 363 | return 0; |
364 | } | 364 | } |
365 | 365 | ||
366 | static struct omap_musb_board_data musb_board_data = { | ||
367 | .interface_type = MUSB_INTERFACE_ULPI, | ||
368 | .mode = MUSB_OTG, | ||
369 | .power = 100, | ||
370 | }; | ||
371 | |||
372 | static void enable_board_wakeup_source(void) | 366 | static void enable_board_wakeup_source(void) |
373 | { | 367 | { |
374 | /* T2 interrupt line (keypad) */ | 368 | /* T2 interrupt line (keypad) */ |
@@ -383,7 +377,7 @@ void __init zoom_peripherals_init(void) | |||
383 | 377 | ||
384 | omap_i2c_init(); | 378 | omap_i2c_init(); |
385 | platform_device_register(&omap_vwlan_device); | 379 | platform_device_register(&omap_vwlan_device); |
386 | usb_musb_init(&musb_board_data); | 380 | usb_musb_init(NULL); |
387 | enable_board_wakeup_source(); | 381 | enable_board_wakeup_source(); |
388 | omap_serial_init(); | 382 | omap_serial_init(); |
389 | } | 383 | } |
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 35559f77e2de..dfa5a3cb5a17 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -108,7 +108,13 @@ static void usb_musb_mux_init(struct omap_musb_board_data *board_data) | |||
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
111 | void __init usb_musb_init(struct omap_musb_board_data *board_data) | 111 | static struct omap_musb_board_data musb_default_board_data = { |
112 | .interface_type = MUSB_INTERFACE_ULPI, | ||
113 | .mode = MUSB_OTG, | ||
114 | .power = 100, | ||
115 | }; | ||
116 | |||
117 | void __init usb_musb_init(struct omap_musb_board_data *musb_board_data) | ||
112 | { | 118 | { |
113 | struct omap_hwmod *oh; | 119 | struct omap_hwmod *oh; |
114 | struct omap_device *od; | 120 | struct omap_device *od; |
@@ -116,6 +122,12 @@ void __init usb_musb_init(struct omap_musb_board_data *board_data) | |||
116 | struct device *dev; | 122 | struct device *dev; |
117 | int bus_id = -1; | 123 | int bus_id = -1; |
118 | const char *oh_name, *name; | 124 | const char *oh_name, *name; |
125 | struct omap_musb_board_data *board_data; | ||
126 | |||
127 | if (musb_board_data) | ||
128 | board_data = musb_board_data; | ||
129 | else | ||
130 | board_data = &musb_default_board_data; | ||
119 | 131 | ||
120 | if (cpu_is_omap3517() || cpu_is_omap3505()) { | 132 | if (cpu_is_omap3517() || cpu_is_omap3505()) { |
121 | } else if (cpu_is_omap44xx()) { | 133 | } else if (cpu_is_omap44xx()) { |