rb532: preserve commandline-patched kernel images for faster kernel testing via netboot
[openwrt.git] / target / linux / brcm63xx / patches-2.6.27 / 008-usb_ehci_support.patch
1 From 2940d1996c86c4c4dd7a82214f846d0c0b707165 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Mon, 21 Jul 2008 18:24:42 +0200
4 Subject: [PATCH] [MIPS] BCM63XX: Add USB EHCI support.
5
6 Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
7 ---
8 arch/mips/bcm63xx/Kconfig | 2 +
9 arch/mips/bcm63xx/Makefile | 1 +
10 arch/mips/bcm63xx/dev-usb-ehci.c | 50 +++++++
11 drivers/usb/host/ehci-bcm63xx.c | 152 ++++++++++++++++++++
12 drivers/usb/host/ehci-hcd.c | 5 +
13 drivers/usb/host/ehci.h | 5 +
14 .../asm-mips/mach-bcm63xx/bcm63xx_dev_usb_ehci.h | 6 +
15 7 files changed, 221 insertions(+), 0 deletions(-)
16 create mode 100644 arch/mips/bcm63xx/dev-usb-ehci.c
17 create mode 100644 drivers/usb/host/ehci-bcm63xx.c
18 create mode 100644 include/asm-mips/mach-bcm63xx/bcm63xx_dev_usb_ehci.h
19
20 --- a/drivers/usb/host/ehci-hcd.c
21 +++ b/drivers/usb/host/ehci-hcd.c
22 @@ -1041,6 +1041,11 @@ MODULE_LICENSE ("GPL");
23 #define PLATFORM_DRIVER ixp4xx_ehci_driver
24 #endif
25
26 +#ifdef CONFIG_BCM63XX
27 +#include "ehci-bcm63xx.c"
28 +#define PLATFORM_DRIVER ehci_hcd_bcm63xx_driver
29 +#endif
30 +
31 #if !defined(PCI_DRIVER) && !defined(PLATFORM_DRIVER) && \
32 !defined(PS3_SYSTEM_BUS_DRIVER) && !defined(OF_PLATFORM_DRIVER)
33 #error "missing bus glue for ehci-hcd"
34 --- a/drivers/usb/host/ehci.h
35 +++ b/drivers/usb/host/ehci.h
36 @@ -764,6 +764,11 @@ ehci_port_speed(struct ehci_hcd *ehci, u
37 #define writel_be(val, addr) __raw_writel(val, (__force unsigned *)addr)
38 #endif
39
40 +#if defined(CONFIG_MIPS) && defined(CONFIG_BCM63XX)
41 +#define readl_be(addr) __raw_readl((__force unsigned *)addr)
42 +#define writel_be(val, addr) __raw_writel(val, (__force unsigned *)addr)
43 +#endif
44 +
45 static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
46 __u32 __iomem * regs)
47 {
This page took 0.050776 seconds and 5 git commands to generate.