diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-04-09 08:29:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-09 19:57:48 -0400 |
commit | 3ad3ca056eefb75a587434bbcb2460864377f17c (patch) | |
tree | f03849d801e8569d6cae9b3b201f93b10e9ccda4 /drivers/usb/host/Kconfig | |
parent | 42443dc44b0b0e29ea80d320882d4ab85f9340b3 (diff) |
USB: enclose all depends on USB_OHCI_HCD within an if USB_OHCI_HCD block
This patch removes the various depends on USB_OHCI_HCD from the OHCI HCD
drivers and enclose them within an if USB_OHCI_HCD / endif block. The
Octeon OHCI HCD driver has been moved around to remain in this block.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/Kconfig')
-rw-r--r-- | drivers/usb/host/Kconfig | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index bc9123c0c685..76f8bbcd49c3 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig | |||
@@ -358,16 +358,18 @@ config USB_OHCI_HCD | |||
358 | To compile this driver as a module, choose M here: the | 358 | To compile this driver as a module, choose M here: the |
359 | module will be called ohci-hcd. | 359 | module will be called ohci-hcd. |
360 | 360 | ||
361 | if USB_OHCI_HCD | ||
362 | |||
361 | config USB_OHCI_HCD_OMAP1 | 363 | config USB_OHCI_HCD_OMAP1 |
362 | bool "OHCI support for OMAP1/2 chips" | 364 | bool "OHCI support for OMAP1/2 chips" |
363 | depends on USB_OHCI_HCD && ARCH_OMAP1 | 365 | depends on ARCH_OMAP1 |
364 | default y | 366 | default y |
365 | ---help--- | 367 | ---help--- |
366 | Enables support for the OHCI controller on OMAP1/2 chips. | 368 | Enables support for the OHCI controller on OMAP1/2 chips. |
367 | 369 | ||
368 | config USB_OHCI_HCD_OMAP3 | 370 | config USB_OHCI_HCD_OMAP3 |
369 | bool "OHCI support for OMAP3 and later chips" | 371 | bool "OHCI support for OMAP3 and later chips" |
370 | depends on USB_OHCI_HCD && (ARCH_OMAP3 || ARCH_OMAP4) | 372 | depends on (ARCH_OMAP3 || ARCH_OMAP4) |
371 | default y | 373 | default y |
372 | ---help--- | 374 | ---help--- |
373 | Enables support for the on-chip OHCI controller on | 375 | Enables support for the on-chip OHCI controller on |
@@ -375,7 +377,7 @@ config USB_OHCI_HCD_OMAP3 | |||
375 | 377 | ||
376 | config USB_OHCI_ATH79 | 378 | config USB_OHCI_ATH79 |
377 | bool "USB OHCI support for the Atheros AR71XX/AR7240 SoCs (DEPRECATED)" | 379 | bool "USB OHCI support for the Atheros AR71XX/AR7240 SoCs (DEPRECATED)" |
378 | depends on USB_OHCI_HCD && (SOC_AR71XX || SOC_AR724X) | 380 | depends on (SOC_AR71XX || SOC_AR724X) |
379 | select USB_OHCI_HCD_PLATFORM | 381 | select USB_OHCI_HCD_PLATFORM |
380 | default y | 382 | default y |
381 | help | 383 | help |
@@ -387,7 +389,7 @@ config USB_OHCI_ATH79 | |||
387 | 389 | ||
388 | config USB_OHCI_HCD_PPC_OF_BE | 390 | config USB_OHCI_HCD_PPC_OF_BE |
389 | bool "OHCI support for OF platform bus (big endian)" | 391 | bool "OHCI support for OF platform bus (big endian)" |
390 | depends on USB_OHCI_HCD && PPC_OF | 392 | depends on PPC_OF |
391 | select USB_OHCI_BIG_ENDIAN_DESC | 393 | select USB_OHCI_BIG_ENDIAN_DESC |
392 | select USB_OHCI_BIG_ENDIAN_MMIO | 394 | select USB_OHCI_BIG_ENDIAN_MMIO |
393 | ---help--- | 395 | ---help--- |
@@ -396,7 +398,7 @@ config USB_OHCI_HCD_PPC_OF_BE | |||
396 | 398 | ||
397 | config USB_OHCI_HCD_PPC_OF_LE | 399 | config USB_OHCI_HCD_PPC_OF_LE |
398 | bool "OHCI support for OF platform bus (little endian)" | 400 | bool "OHCI support for OF platform bus (little endian)" |
399 | depends on USB_OHCI_HCD && PPC_OF | 401 | depends on PPC_OF |
400 | select USB_OHCI_LITTLE_ENDIAN | 402 | select USB_OHCI_LITTLE_ENDIAN |
401 | ---help--- | 403 | ---help--- |
402 | Enables support for little-endian USB controllers present on the | 404 | Enables support for little-endian USB controllers present on the |
@@ -404,12 +406,12 @@ config USB_OHCI_HCD_PPC_OF_LE | |||
404 | 406 | ||
405 | config USB_OHCI_HCD_PPC_OF | 407 | config USB_OHCI_HCD_PPC_OF |
406 | bool | 408 | bool |
407 | depends on USB_OHCI_HCD && PPC_OF | 409 | depends on PPC_OF |
408 | default USB_OHCI_HCD_PPC_OF_BE || USB_OHCI_HCD_PPC_OF_LE | 410 | default USB_OHCI_HCD_PPC_OF_BE || USB_OHCI_HCD_PPC_OF_LE |
409 | 411 | ||
410 | config USB_OHCI_HCD_PCI | 412 | config USB_OHCI_HCD_PCI |
411 | bool "OHCI support for PCI-bus USB controllers" | 413 | bool "OHCI support for PCI-bus USB controllers" |
412 | depends on USB_OHCI_HCD && PCI && (STB03xxx || PPC_MPC52xx || USB_OHCI_HCD_PPC_OF) | 414 | depends on PCI && (STB03xxx || PPC_MPC52xx || USB_OHCI_HCD_PPC_OF) |
413 | default y | 415 | default y |
414 | select USB_OHCI_LITTLE_ENDIAN | 416 | select USB_OHCI_LITTLE_ENDIAN |
415 | ---help--- | 417 | ---help--- |
@@ -418,7 +420,7 @@ config USB_OHCI_HCD_PCI | |||
418 | 420 | ||
419 | config USB_OHCI_HCD_SSB | 421 | config USB_OHCI_HCD_SSB |
420 | bool "OHCI support for Broadcom SSB OHCI core (DEPRECATED)" | 422 | bool "OHCI support for Broadcom SSB OHCI core (DEPRECATED)" |
421 | depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) | 423 | depends on (SSB = y || SSB = USB_OHCI_HCD) |
422 | select USB_HCD_SSB | 424 | select USB_HCD_SSB |
423 | select USB_OHCI_HCD_PLATFORM | 425 | select USB_OHCI_HCD_PLATFORM |
424 | default n | 426 | default n |
@@ -436,7 +438,7 @@ config USB_OHCI_HCD_SSB | |||
436 | 438 | ||
437 | config USB_OHCI_SH | 439 | config USB_OHCI_SH |
438 | bool "OHCI support for SuperH USB controller (DEPRECATED)" | 440 | bool "OHCI support for SuperH USB controller (DEPRECATED)" |
439 | depends on USB_OHCI_HCD && SUPERH | 441 | depends on SUPERH |
440 | select USB_OHCI_HCD_PLATFORM | 442 | select USB_OHCI_HCD_PLATFORM |
441 | ---help--- | 443 | ---help--- |
442 | This option is deprecated now and the driver was removed, use | 444 | This option is deprecated now and the driver was removed, use |
@@ -447,13 +449,13 @@ config USB_OHCI_SH | |||
447 | 449 | ||
448 | config USB_OHCI_EXYNOS | 450 | config USB_OHCI_EXYNOS |
449 | boolean "OHCI support for Samsung EXYNOS SoC Series" | 451 | boolean "OHCI support for Samsung EXYNOS SoC Series" |
450 | depends on USB_OHCI_HCD && ARCH_EXYNOS | 452 | depends on ARCH_EXYNOS |
451 | help | 453 | help |
452 | Enable support for the Samsung Exynos SOC's on-chip OHCI controller. | 454 | Enable support for the Samsung Exynos SOC's on-chip OHCI controller. |
453 | 455 | ||
454 | config USB_CNS3XXX_OHCI | 456 | config USB_CNS3XXX_OHCI |
455 | bool "Cavium CNS3XXX OHCI Module (DEPRECATED)" | 457 | bool "Cavium CNS3XXX OHCI Module (DEPRECATED)" |
456 | depends on USB_OHCI_HCD && ARCH_CNS3XXX | 458 | depends on ARCH_CNS3XXX |
457 | select USB_OHCI_HCD_PLATFORM | 459 | select USB_OHCI_HCD_PLATFORM |
458 | ---help--- | 460 | ---help--- |
459 | This option is deprecated now and the driver was removed, use | 461 | This option is deprecated now and the driver was removed, use |
@@ -464,7 +466,6 @@ config USB_CNS3XXX_OHCI | |||
464 | 466 | ||
465 | config USB_OHCI_HCD_PLATFORM | 467 | config USB_OHCI_HCD_PLATFORM |
466 | bool "Generic OHCI driver for a platform device" | 468 | bool "Generic OHCI driver for a platform device" |
467 | depends on USB_OHCI_HCD | ||
468 | default n | 469 | default n |
469 | ---help--- | 470 | ---help--- |
470 | Adds an OHCI host driver for a generic platform device, which | 471 | Adds an OHCI host driver for a generic platform device, which |
@@ -472,23 +473,33 @@ config USB_OHCI_HCD_PLATFORM | |||
472 | 473 | ||
473 | If unsure, say N. | 474 | If unsure, say N. |
474 | 475 | ||
476 | config USB_OCTEON_OHCI | ||
477 | bool "Octeon on-chip OHCI support" | ||
478 | depends on CPU_CAVIUM_OCTEON | ||
479 | default USB_OCTEON_EHCI | ||
480 | select USB_OHCI_BIG_ENDIAN_MMIO | ||
481 | select USB_OHCI_LITTLE_ENDIAN | ||
482 | help | ||
483 | Enable support for the Octeon II SOC's on-chip OHCI | ||
484 | controller. It is needed for low-speed USB 1.0 device | ||
485 | support. All CN6XXX based chips with USB are supported. | ||
486 | |||
475 | 487 | ||
476 | config USB_OHCI_BIG_ENDIAN_DESC | 488 | config USB_OHCI_BIG_ENDIAN_DESC |
477 | bool | 489 | bool |
478 | depends on USB_OHCI_HCD | ||
479 | default n | 490 | default n |
480 | 491 | ||
481 | config USB_OHCI_BIG_ENDIAN_MMIO | 492 | config USB_OHCI_BIG_ENDIAN_MMIO |
482 | bool | 493 | bool |
483 | depends on USB_OHCI_HCD | ||
484 | default n | 494 | default n |
485 | 495 | ||
486 | config USB_OHCI_LITTLE_ENDIAN | 496 | config USB_OHCI_LITTLE_ENDIAN |
487 | bool | 497 | bool |
488 | depends on USB_OHCI_HCD | ||
489 | default n if STB03xxx || PPC_MPC52xx | 498 | default n if STB03xxx || PPC_MPC52xx |
490 | default y | 499 | default y |
491 | 500 | ||
501 | endif # USB_OHCI_HCD | ||
502 | |||
492 | config USB_UHCI_HCD | 503 | config USB_UHCI_HCD |
493 | tristate "UHCI HCD (most Intel and VIA) support" | 504 | tristate "UHCI HCD (most Intel and VIA) support" |
494 | depends on PCI || SPARC_LEON || ARCH_VT8500 | 505 | depends on PCI || SPARC_LEON || ARCH_VT8500 |
@@ -665,16 +676,6 @@ config USB_IMX21_HCD | |||
665 | module will be called "imx21-hcd". | 676 | module will be called "imx21-hcd". |
666 | 677 | ||
667 | 678 | ||
668 | config USB_OCTEON_OHCI | ||
669 | bool "Octeon on-chip OHCI support" | ||
670 | depends on USB_OHCI_HCD && CPU_CAVIUM_OCTEON | ||
671 | default USB_OCTEON_EHCI | ||
672 | select USB_OHCI_BIG_ENDIAN_MMIO | ||
673 | select USB_OHCI_LITTLE_ENDIAN | ||
674 | help | ||
675 | Enable support for the Octeon II SOC's on-chip OHCI | ||
676 | controller. It is needed for low-speed USB 1.0 device | ||
677 | support. All CN6XXX based chips with USB are supported. | ||
678 | 679 | ||
679 | config USB_OCTEON2_COMMON | 680 | config USB_OCTEON2_COMMON |
680 | bool | 681 | bool |