aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 1037bd2ffdb9..7e1d37584321 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -629,19 +629,6 @@ static void usbhs0_hardware_exit(struct platform_device *pdev)
629 cancel_delayed_work_sync(&priv->work); 629 cancel_delayed_work_sync(&priv->work);
630} 630}
631 631
632static u32 usbhs0_pipe_cfg[] = {
633 USB_ENDPOINT_XFER_CONTROL,
634 USB_ENDPOINT_XFER_ISOC,
635 USB_ENDPOINT_XFER_ISOC,
636 USB_ENDPOINT_XFER_BULK,
637 USB_ENDPOINT_XFER_BULK,
638 USB_ENDPOINT_XFER_BULK,
639 USB_ENDPOINT_XFER_INT,
640 USB_ENDPOINT_XFER_INT,
641 USB_ENDPOINT_XFER_INT,
642 USB_ENDPOINT_XFER_BULK,
643};
644
645static struct usbhs_private usbhs0_private = { 632static struct usbhs_private usbhs0_private = {
646 .usbcrcaddr = 0xe605810c, /* USBCR2 */ 633 .usbcrcaddr = 0xe605810c, /* USBCR2 */
647 .info = { 634 .info = {
@@ -654,8 +641,6 @@ static struct usbhs_private usbhs0_private = {
654 }, 641 },
655 .driver_param = { 642 .driver_param = {
656 .buswait_bwait = 4, 643 .buswait_bwait = 4,
657 .pipe_type = usbhs0_pipe_cfg,
658 .pipe_size = ARRAY_SIZE(usbhs0_pipe_cfg),
659 }, 644 },
660 }, 645 },
661}; 646};
@@ -786,6 +771,11 @@ static void usbhs1_hardware_exit(struct platform_device *pdev)
786 free_irq(IRQ8, pdev); 771 free_irq(IRQ8, pdev);
787} 772}
788 773
774static int usbhs1_get_id(struct platform_device *pdev)
775{
776 return USBHS_GADGET;
777}
778
789static u32 usbhs1_pipe_cfg[] = { 779static u32 usbhs1_pipe_cfg[] = {
790 USB_ENDPOINT_XFER_CONTROL, 780 USB_ENDPOINT_XFER_CONTROL,
791 USB_ENDPOINT_XFER_ISOC, 781 USB_ENDPOINT_XFER_ISOC,
@@ -812,6 +802,7 @@ static struct usbhs_private usbhs1_private = {
812 .platform_callback = { 802 .platform_callback = {
813 .hardware_init = usbhs1_hardware_init, 803 .hardware_init = usbhs1_hardware_init,
814 .hardware_exit = usbhs1_hardware_exit, 804 .hardware_exit = usbhs1_hardware_exit,
805 .get_id = usbhs1_get_id,
815 .phy_reset = usbhs_phy_reset, 806 .phy_reset = usbhs_phy_reset,
816 .get_vbus = usbhs_get_vbus, 807 .get_vbus = usbhs_get_vbus,
817 }, 808 },