Skip to content

Commit

Permalink
MIPS: Loongson 1B: use ehci-platform instead of ehci-ls1x.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 7bccfcd commit afe046b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/mips/configs/ls1b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ CONFIG_HID_GENERIC=m
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
CONFIG_USB_STORAGE=m
CONFIG_USB_SERIAL=m
Expand Down
8 changes: 7 additions & 1 deletion arch/mips/loongson1/common/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/phy.h>
#include <linux/serial_8250.h>
#include <linux/stmmac.h>
#include <linux/usb/ehci_pdriver.h>
#include <asm-generic/sizes.h>

#include <loongson1.h>
Expand Down Expand Up @@ -107,13 +108,18 @@ static struct resource ls1x_ehci_resources[] = {
},
};

static struct usb_ehci_pdata ls1x_ehci_pdata = {
.port_power_off = 1,
};

struct platform_device ls1x_ehci_device = {
.name = "ls1x-ehci",
.name = "ehci-platform",
.id = -1,
.num_resources = ARRAY_SIZE(ls1x_ehci_resources),
.resource = ls1x_ehci_resources,
.dev = {
.dma_mask = &ls1x_ehci_dmamask,
.platform_data = &ls1x_ehci_pdata,
},
};

Expand Down

0 comments on commit afe046b

Please sign in to comment.