bcm63xx: update patches
[openwrt/staging/chunkeey.git] / target / linux / brcm63xx / patches-3.9 / 107-MIPS-BCM63XX-introduce-BCM63XX_EHCI-configuration-sy.patch
1 From 00da1683364e58c6430a4577123d01037f8faddc Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Mon, 28 Jan 2013 20:06:26 +0100
4 Subject: [PATCH 08/11] MIPS: BCM63XX: introduce BCM63XX_EHCI configuration
5 symbol
6
7 This configuration symbol can be used by CPUs supporting the on-chip
8 EHCI controller, and ensures that all relevant EHCI-related
9 configuration options are selected. So far BCM6328, BCM6358 and BCM6368
10 have an EHCI controller and do select this symbol. Update
11 drivers/usb/host/Kconfig with BCM63XX to update direct unmet
12 dependencies.
13
14 Signed-off-by: Florian Fainelli <florian@openwrt.org>
15 ---
16 arch/mips/bcm63xx/Kconfig | 9 +++++++++
17 drivers/usb/host/Kconfig | 5 +++--
18 2 files changed, 12 insertions(+), 2 deletions(-)
19
20 --- a/arch/mips/bcm63xx/Kconfig
21 +++ b/arch/mips/bcm63xx/Kconfig
22 @@ -11,10 +11,17 @@ config BCM63XX_OHCI
23 select USB_OHCI_BIG_ENDIAN_DESC if USB_OHCI_HCD
24 select USB_OHCI_BIG_ENDIAN_MMIO if USB_OHCI_HCD
25
26 +config BCM63XX_EHCI
27 + bool
28 + select USB_ARCH_HAS_EHCI
29 + select USB_EHCI_BIG_ENDIAN_DESC if USB_EHCI_HCD
30 + select USB_EHCI_BIG_ENDIAN_MMIO if USB_EHCI_HCD
31 +
32 config BCM63XX_CPU_6328
33 bool "support 6328 CPU"
34 select HW_HAS_PCI
35 select BCM63XX_OHCI
36 + select BCM63XX_EHCI
37
38 config BCM63XX_CPU_6338
39 bool "support 6338 CPU"
40 @@ -32,16 +39,19 @@ config BCM63XX_CPU_6358
41 bool "support 6358 CPU"
42 select HW_HAS_PCI
43 select BCM63XX_OHCI
44 + select BCM63XX_EHCI
45
46 config BCM63XX_CPU_6362
47 bool "support 6362 CPU"
48 select HW_HAS_PCI
49 select BCM63XX_OHCI
50 + select BCM63XX_EHCI
51
52 config BCM63XX_CPU_6368
53 bool "support 6368 CPU"
54 select HW_HAS_PCI
55 select BCM63XX_OHCI
56 + select BCM63XX_EHCI
57 endmenu
58
59 source "arch/mips/bcm63xx/boards/Kconfig"
60 --- a/drivers/usb/host/Kconfig
61 +++ b/drivers/usb/host/Kconfig
62 @@ -115,14 +115,15 @@ config USB_EHCI_BIG_ENDIAN_MMIO
63 depends on USB_EHCI_HCD && (PPC_CELLEB || PPC_PS3 || 440EPX || \
64 ARCH_IXP4XX || XPS_USB_HCD_XILINX || \
65 PPC_MPC512x || CPU_CAVIUM_OCTEON || \
66 - PMC_MSP || SPARC_LEON || MIPS_SEAD3)
67 + PMC_MSP || SPARC_LEON || MIPS_SEAD3 || \
68 + BCM63XX)
69 default y
70
71 config USB_EHCI_BIG_ENDIAN_DESC
72 bool
73 depends on USB_EHCI_HCD && (440EPX || ARCH_IXP4XX || XPS_USB_HCD_XILINX || \
74 PPC_MPC512x || PMC_MSP || SPARC_LEON || \
75 - MIPS_SEAD3)
76 + MIPS_SEAD3 || BCM63XX)
77 default y
78
79 config XPS_USB_HCD_XILINX