aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-08 09:11:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 14:14:24 -0400
commitafe046be983f7da53c4bdcfa9a7689d163f08196 (patch)
tree73726c2756e9859e9572f138ab757e0854b1e346
parent7bccfcd2eb09297e0406b38cfac8e1f3001964f3 (diff)
MIPS: Loongson 1B: use ehci-platform instead of ehci-ls1x.
The Loongson 1B EHCI driver does nothing more than what the EHCI platform driver already does, so use the generic implementation. Signed-off-by: Florian Fainelli <florian@openwrt.org> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/mips/configs/ls1b_defconfig1
-rw-r--r--arch/mips/loongson1/common/platform.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/configs/ls1b_defconfig b/arch/mips/configs/ls1b_defconfig
index 80cff8bea8e..7eb75543ca1 100644
--- a/arch/mips/configs/ls1b_defconfig
+++ b/arch/mips/configs/ls1b_defconfig
@@ -76,6 +76,7 @@ CONFIG_HID_GENERIC=m
76CONFIG_USB=y 76CONFIG_USB=y
77CONFIG_USB_ANNOUNCE_NEW_DEVICES=y 77CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
78CONFIG_USB_EHCI_HCD=y 78CONFIG_USB_EHCI_HCD=y
79CONFIG_USB_EHCI_HCD_PLATFORM=y
79# CONFIG_USB_EHCI_TT_NEWSCHED is not set 80# CONFIG_USB_EHCI_TT_NEWSCHED is not set
80CONFIG_USB_STORAGE=m 81CONFIG_USB_STORAGE=m
81CONFIG_USB_SERIAL=m 82CONFIG_USB_SERIAL=m
diff --git a/arch/mips/loongson1/common/platform.c b/arch/mips/loongson1/common/platform.c
index e92d59c4bd7..2874bf22441 100644
--- a/arch/mips/loongson1/common/platform.c
+++ b/arch/mips/loongson1/common/platform.c
@@ -13,6 +13,7 @@
13#include <linux/phy.h> 13#include <linux/phy.h>
14#include <linux/serial_8250.h> 14#include <linux/serial_8250.h>
15#include <linux/stmmac.h> 15#include <linux/stmmac.h>
16#include <linux/usb/ehci_pdriver.h>
16#include <asm-generic/sizes.h> 17#include <asm-generic/sizes.h>
17 18
18#include <loongson1.h> 19#include <loongson1.h>
@@ -107,13 +108,18 @@ static struct resource ls1x_ehci_resources[] = {
107 }, 108 },
108}; 109};
109 110
111static struct usb_ehci_pdata ls1x_ehci_pdata = {
112 .port_power_off = 1,
113};
114
110struct platform_device ls1x_ehci_device = { 115struct platform_device ls1x_ehci_device = {
111 .name = "ls1x-ehci", 116 .name = "ehci-platform",
112 .id = -1, 117 .id = -1,
113 .num_resources = ARRAY_SIZE(ls1x_ehci_resources), 118 .num_resources = ARRAY_SIZE(ls1x_ehci_resources),
114 .resource = ls1x_ehci_resources, 119 .resource = ls1x_ehci_resources,
115 .dev = { 120 .dev = {
116 .dma_mask = &ls1x_ehci_dmamask, 121 .dma_mask = &ls1x_ehci_dmamask,
122 .platform_data = &ls1x_ehci_pdata,
117 }, 123 },
118}; 124};
119 125