f2134bafd279aa1a66e0a078698d9ba65b79e3cd
[openwrt/staging/chunkeey.git] / target / linux / brcm63xx / patches-3.9 / 104-MIPS-BCM63XX-introduce-BCM63XX_OHCI-configuration-sy.patch
1 From 94ec618bd1a6b07fafbbfc9bcc54e7f9360ff9a0 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <florian@openwrt.org>
3 Date: Mon, 28 Jan 2013 20:06:23 +0100
4 Subject: [PATCH 05/11] MIPS: BCM63XX: introduce BCM63XX_OHCI configuration
5 symbol
6
7 This configuration symbol can be used by CPUs supporting the on-chip
8 OHCI controller, and ensures that all relevant OHCI-related
9 configuration options are correctly selected. So far, OHCI support is
10 available for the 6328, 6348, 6358 and 6358 SoCs.
11
12 Signed-off-by: Florian Fainelli <florian@openwrt.org>
13 ---
14 arch/mips/bcm63xx/Kconfig | 15 ++++++++++-----
15 1 file changed, 10 insertions(+), 5 deletions(-)
16
17 --- a/arch/mips/bcm63xx/Kconfig
18 +++ b/arch/mips/bcm63xx/Kconfig
19 @@ -1,37 +1,43 @@
20 menu "CPU support"
21 depends on BCM63XX
22
23 +config BCM63XX_OHCI
24 + bool
25 + select USB_ARCH_HAS_OHCI
26 + select USB_OHCI_BIG_ENDIAN_DESC if USB_OHCI_HCD
27 + select USB_OHCI_BIG_ENDIAN_MMIO if USB_OHCI_HCD
28 +
29 config BCM63XX_CPU_6328
30 bool "support 6328 CPU"
31 select HW_HAS_PCI
32 + select BCM63XX_OHCI
33
34 config BCM63XX_CPU_6338
35 bool "support 6338 CPU"
36 select HW_HAS_PCI
37 - select USB_ARCH_HAS_OHCI
38 - select USB_OHCI_BIG_ENDIAN_DESC
39 - select USB_OHCI_BIG_ENDIAN_MMIO
40
41 config BCM63XX_CPU_6345
42 bool "support 6345 CPU"
43 - select USB_OHCI_BIG_ENDIAN_DESC
44 - select USB_OHCI_BIG_ENDIAN_MMIO
45
46 config BCM63XX_CPU_6348
47 bool "support 6348 CPU"
48 select HW_HAS_PCI
49 + select BCM63XX_OHCI
50
51 config BCM63XX_CPU_6358
52 bool "support 6358 CPU"
53 select HW_HAS_PCI
54 + select BCM63XX_OHCI
55
56 config BCM63XX_CPU_6362
57 bool "support 6362 CPU"
58 select HW_HAS_PCI
59 + select BCM63XX_OHCI
60
61 config BCM63XX_CPU_6368
62 bool "support 6368 CPU"
63 select HW_HAS_PCI
64 + select BCM63XX_OHCI
65 endmenu
66
67 source "arch/mips/bcm63xx/boards/Kconfig"