diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2011-06-15 02:16:35 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-15 03:03:17 -0400 |
commit | 05a7929f31a0d516a9c19012bf27a1ea5058dc7a (patch) | |
tree | 0c5187a643235b51d8d835d4af6760e96a70219d /arch/arm/mach-shmobile/board-mackerel.c | |
parent | 311057250e87f7470ccca8bd68bf9e67f6b6db09 (diff) |
ARM: mach-shmobile: mackerel: tidyup usbhs driver settings
- usb0 pipe is same as default. own pipe config is not needed
- usb1 lost get_id function
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 21 |
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 | ||
632 | static 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 | |||
645 | static struct usbhs_private usbhs0_private = { | 632 | static 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 | ||
774 | static int usbhs1_get_id(struct platform_device *pdev) | ||
775 | { | ||
776 | return USBHS_GADGET; | ||
777 | } | ||
778 | |||
789 | static u32 usbhs1_pipe_cfg[] = { | 779 | static 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 | }, |