aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-12-01 01:58:58 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-12-01 01:58:58 -0500
commite3e9887ee9de36d8e2bef972ad74a42abd7a44c4 (patch)
treeea0c29e07ca348cb1889dd75606b1123ef05b52e
parent6e9d4476063a820764ec063bf683379c38ea1e18 (diff)
sh: Convert to USB_ARCH_HAS_OHCI/EHCI selects.
This switches over to selects for the subtypes to enable OHCI/EHCI support explicitly rather than littering the usb Kconfig with subtype dependencies. Suggested-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/Kconfig5
-rw-r--r--drivers/usb/Kconfig6
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 5c075f562eb..e0e2234341f 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -344,6 +344,7 @@ config CPU_SUBTYPE_SH7720
344 select CPU_SH3 344 select CPU_SH3
345 select CPU_HAS_DSP 345 select CPU_HAS_DSP
346 select SYS_SUPPORTS_CMT 346 select SYS_SUPPORTS_CMT
347 select USB_ARCH_HAS_OHCI
347 help 348 help
348 Select SH7720 if you have a SH3-DSP SH7720 CPU. 349 Select SH7720 if you have a SH3-DSP SH7720 CPU.
349 350
@@ -352,6 +353,7 @@ config CPU_SUBTYPE_SH7721
352 select CPU_SH3 353 select CPU_SH3
353 select CPU_HAS_DSP 354 select CPU_HAS_DSP
354 select SYS_SUPPORTS_CMT 355 select SYS_SUPPORTS_CMT
356 select USB_ARCH_HAS_OHCI
355 help 357 help
356 Select SH7721 if you have a SH3-DSP SH7721 CPU. 358 Select SH7721 if you have a SH3-DSP SH7721 CPU.
357 359
@@ -429,6 +431,7 @@ config CPU_SUBTYPE_SH7757
429config CPU_SUBTYPE_SH7763 431config CPU_SUBTYPE_SH7763
430 bool "Support SH7763 processor" 432 bool "Support SH7763 processor"
431 select CPU_SH4A 433 select CPU_SH4A
434 select USB_ARCH_HAS_OHCI
432 help 435 help
433 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU. 436 Select SH7763 if you have a SH4A SH7763(R5S77631) CPU.
434 437
@@ -453,6 +456,8 @@ config CPU_SUBTYPE_SH7786
453 select CPU_SHX3 456 select CPU_SHX3
454 select CPU_HAS_PTEAEX 457 select CPU_HAS_PTEAEX
455 select GENERIC_CLOCKEVENTS_BROADCAST if SMP 458 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
459 select USB_ARCH_HAS_OHCI
460 select USB_ARCH_HAS_EHCI
456 461
457config CPU_SUBTYPE_SHX3 462config CPU_SUBTYPE_SHX3
458 bool "Support SH-X3 processor" 463 bool "Support SH-X3 processor"
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig
index 22a917302e3..703a33b46e7 100644
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -47,11 +47,6 @@ config USB_ARCH_HAS_OHCI
47 # MIPS: 47 # MIPS:
48 default y if MIPS_ALCHEMY 48 default y if MIPS_ALCHEMY
49 default y if MACH_JZ4740 49 default y if MACH_JZ4740
50 # SH:
51 default y if CPU_SUBTYPE_SH7720
52 default y if CPU_SUBTYPE_SH7721
53 default y if CPU_SUBTYPE_SH7763
54 default y if CPU_SUBTYPE_SH7786
55 # more: 50 # more:
56 default PCI 51 default PCI
57 52
@@ -66,7 +61,6 @@ config USB_ARCH_HAS_EHCI
66 default y if ARCH_AT91SAM9G45 61 default y if ARCH_AT91SAM9G45
67 default y if ARCH_MXC 62 default y if ARCH_MXC
68 default y if ARCH_OMAP3 63 default y if ARCH_OMAP3
69 default y if CPU_SUBTYPE_SH7786
70 default PCI 64 default PCI
71 65
72# ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface. 66# ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.