sync ssb with upstream
[openwrt/openwrt.git] / target / linux / generic-2.6 / files / drivers / ssb / Kconfig
index 03c4945868b7bf6bed3aed502da9360dcac07040..b4a5e5e9d9fc4bd15ae52a9d78a9700ff3ee2cf8 100644 (file)
@@ -1,18 +1,33 @@
 menu "Sonics Silicon Backplane"
 
+config SSB_POSSIBLE
+       bool
+       depends on HAS_IOMEM
+       default y
+
 config SSB
        tristate "Sonics Silicon Backplane support"
-       depends on EXPERIMENTAL
+       depends on SSB_POSSIBLE
        help
-         Support for the Sonics Silicon Backplane bus
+         Support for the Sonics Silicon Backplane bus.
+         You only need to enable this option, if you are
+         configuring a kernel for an embedded system with
+         this bus.
+         It will be auto-selected if needed in other
+         environments.
+
+         The module will be called ssb.
 
-         The module will be called ssb
+         If unsure, say N.
 
-         If unsure, say M
+config SSB_PCIHOST_POSSIBLE
+       bool
+       depends on SSB && PCI
+       default y
 
 config SSB_PCIHOST
        bool "Support for SSB on PCI-bus host"
-       depends on SSB && PCI
+       depends on SSB_PCIHOST_POSSIBLE
        default y
        help
          Support for a Sonics Silicon Backplane on top
@@ -20,9 +35,14 @@ config SSB_PCIHOST
 
          If unsure, say Y
 
+config SSB_PCMCIAHOST_POSSIBLE
+       bool
+       depends on SSB && PCMCIA && EXPERIMENTAL
+       default y
+
 config SSB_PCMCIAHOST
-       bool "Support for SSB on PCMCIA-bus host"
-       depends on SSB && PCMCIA
+       bool "Support for SSB on PCMCIA-bus host (EXPERIMENTAL)"
+       depends on SSB_PCMCIAHOST_POSSIBLE
        help
          Support for a Sonics Silicon Backplane on top
          of a PCMCIA device.
@@ -31,7 +51,7 @@ config SSB_PCMCIAHOST
 
 config SSB_SILENT
        bool "No SSB kernel messages"
-       depends on SSB
+       depends on SSB && EMBEDDED
        help
          This option turns off all Sonics Silicon Backplane printks.
          Note that you won't be able to identify problems, once
@@ -55,10 +75,14 @@ config SSB_SERIAL
        depends on SSB
        # ChipCommon and ExtIf serial support routines.
 
+config SSB_DRIVER_PCICORE_POSSIBLE
+       bool
+       depends on SSB_PCIHOST
+       default y
+
 config SSB_DRIVER_PCICORE
        bool "SSB PCI core driver"
-       depends on SSB && SSB_PCIHOST
-       default y
+       depends on SSB_DRIVER_PCICORE_POSSIBLE
        help
          Driver for the Sonics Silicon Backplane attached
          Broadcom PCI core.
@@ -66,14 +90,14 @@ config SSB_DRIVER_PCICORE
          If unsure, say Y
 
 config SSB_PCICORE_HOSTMODE
-       bool "Hostmode support for SSB PCI core"
-       depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS
+       bool "Hostmode support for SSB PCI core (EXPERIMENTAL)"
+       depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS && EXPERIMENTAL
        help
          PCIcore hostmode operation (external PCI bus).
 
 config SSB_DRIVER_MIPS
-       bool "SSB Broadcom MIPS core driver"
-       depends on SSB && MIPS
+       bool "SSB Broadcom MIPS core driver (EXPERIMENTAL)"
+       depends on SSB && MIPS && EXPERIMENTAL
        select SSB_SERIAL
        help
          Driver for the Sonics Silicon Backplane attached
@@ -82,8 +106,8 @@ config SSB_DRIVER_MIPS
          If unsure, say N
 
 config SSB_DRIVER_EXTIF
-       bool "SSB Broadcom EXTIF core driver"
-       depends on SSB_DRIVER_MIPS
+       bool "SSB Broadcom EXTIF core driver (EXPERIMENTAL)"
+       depends on SSB_DRIVER_MIPS && EXPERIMENTAL
        help
          Driver for the Sonics Silicon Backplane attached
          Broadcom EXTIF core.