xref: /linux/drivers/ssb/Kconfig (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
261e115a5SMichael Bueschconfig SSB_POSSIBLE
361e115a5SMichael Buesch	bool
4f225763aSMichael Buesch	depends on HAS_IOMEM && HAS_DMA
561e115a5SMichael Buesch	default y
661e115a5SMichael Buesch
78c9fdd76SVincent Legollmenuconfig SSB
861e115a5SMichael Buesch	tristate "Sonics Silicon Backplane support"
961e115a5SMichael Buesch	depends on SSB_POSSIBLE
1061e115a5SMichael Buesch	help
1161e115a5SMichael Buesch	  Support for the Sonics Silicon Backplane bus.
1261e115a5SMichael Buesch	  You only need to enable this option, if you are
1361e115a5SMichael Buesch	  configuring a kernel for an embedded system with
1461e115a5SMichael Buesch	  this bus.
1561e115a5SMichael Buesch	  It will be auto-selected if needed in other
1661e115a5SMichael Buesch	  environments.
1761e115a5SMichael Buesch
1861e115a5SMichael Buesch	  The module will be called ssb.
1961e115a5SMichael Buesch
2061e115a5SMichael Buesch	  If unsure, say N.
2161e115a5SMichael Buesch
228c9fdd76SVincent Legollif SSB
238c9fdd76SVincent Legoll
24e7ec2e32SMichael Buesch# Common SPROM support routines
25e7ec2e32SMichael Bueschconfig SSB_SPROM
26e7ec2e32SMichael Buesch	bool
27e7ec2e32SMichael Buesch
28d625a29bSMichael Buesch# Support for Block-I/O. SELECT this from the driver that needs it.
29d625a29bSMichael Bueschconfig SSB_BLOCKIO
30d625a29bSMichael Buesch	bool
31d625a29bSMichael Buesch	depends on SSB
32d625a29bSMichael Buesch
3361e115a5SMichael Bueschconfig SSB_PCIHOST_POSSIBLE
3461e115a5SMichael Buesch	bool
35a9e6d44dSSven Joachim	depends on SSB && (PCI = y || PCI = SSB) && (PCI_DRIVERS_LEGACY || !MIPS)
3661e115a5SMichael Buesch	default y
3761e115a5SMichael Buesch
3861e115a5SMichael Bueschconfig SSB_PCIHOST
3961e115a5SMichael Buesch	bool "Support for SSB on PCI-bus host"
4061e115a5SMichael Buesch	depends on SSB_PCIHOST_POSSIBLE
41e7ec2e32SMichael Buesch	select SSB_SPROM
4261e115a5SMichael Buesch	default y
4361e115a5SMichael Buesch	help
4461e115a5SMichael Buesch	  Support for a Sonics Silicon Backplane on top
4561e115a5SMichael Buesch	  of a PCI device.
4661e115a5SMichael Buesch
4761e115a5SMichael Buesch	  If unsure, say Y
4861e115a5SMichael Buesch
49c7084535SAlexey Zaytsevconfig SSB_B43_PCI_BRIDGE
50c7084535SAlexey Zaytsev	bool
51c7084535SAlexey Zaytsev	depends on SSB_PCIHOST
52c7084535SAlexey Zaytsev	default n
53c7084535SAlexey Zaytsev
5461e115a5SMichael Bueschconfig SSB_PCMCIAHOST_POSSIBLE
5561e115a5SMichael Buesch	bool
56feeb4445SMichael Buesch	depends on SSB && (PCMCIA = y || PCMCIA = SSB)
5761e115a5SMichael Buesch	default y
5861e115a5SMichael Buesch
5961e115a5SMichael Bueschconfig SSB_PCMCIAHOST
60feeb4445SMichael Buesch	bool "Support for SSB on PCMCIA-bus host"
6161e115a5SMichael Buesch	depends on SSB_PCMCIAHOST_POSSIBLE
62e7ec2e32SMichael Buesch	select SSB_SPROM
6361e115a5SMichael Buesch	help
6461e115a5SMichael Buesch	  Support for a Sonics Silicon Backplane on top
6561e115a5SMichael Buesch	  of a PCMCIA device.
6661e115a5SMichael Buesch
6761e115a5SMichael Buesch	  If unsure, say N
6861e115a5SMichael Buesch
6924ea602eSAlbert Herranzconfig SSB_SDIOHOST_POSSIBLE
7024ea602eSAlbert Herranz	bool
7124ea602eSAlbert Herranz	depends on SSB && (MMC = y || MMC = SSB)
7224ea602eSAlbert Herranz	default y
7324ea602eSAlbert Herranz
7424ea602eSAlbert Herranzconfig SSB_SDIOHOST
7524ea602eSAlbert Herranz	bool "Support for SSB on SDIO-bus host"
7624ea602eSAlbert Herranz	depends on SSB_SDIOHOST_POSSIBLE
7724ea602eSAlbert Herranz	help
7824ea602eSAlbert Herranz	  Support for a Sonics Silicon Backplane on top
7924ea602eSAlbert Herranz	  of a SDIO device.
8024ea602eSAlbert Herranz
8124ea602eSAlbert Herranz	  If unsure, say N
8224ea602eSAlbert Herranz
83845da6e5SRafał Miłeckiconfig SSB_HOST_SOC
84845da6e5SRafał Miłecki	bool "Support for SSB bus on SoC"
85541c9a84SRafał Miłecki	depends on SSB && BCM47XX_NVRAM
8610da848fSArnd Bergmann	select SSB_SPROM
87845da6e5SRafał Miłecki	help
88845da6e5SRafał Miłecki	  Host interface for a SSB directly mapped into memory. This is
89845da6e5SRafał Miłecki	  for some Broadcom SoCs from the BCM47xx and BCM53xx lines.
90845da6e5SRafał Miłecki
91845da6e5SRafał Miłecki	  If unsure, say N
92845da6e5SRafał Miłecki
9361e115a5SMichael Bueschconfig SSB_SERIAL
9461e115a5SMichael Buesch	bool
9561e115a5SMichael Buesch	depends on SSB
9661e115a5SMichael Buesch	# ChipCommon and ExtIf serial support routines.
9761e115a5SMichael Buesch
9861e115a5SMichael Bueschconfig SSB_DRIVER_PCICORE_POSSIBLE
9961e115a5SMichael Buesch	bool
10036910d82SRafał Miłecki	depends on SSB_PCIHOST
10161e115a5SMichael Buesch	default y
10261e115a5SMichael Buesch
10361e115a5SMichael Bueschconfig SSB_DRIVER_PCICORE
10461e115a5SMichael Buesch	bool "SSB PCI core driver"
10561e115a5SMichael Buesch	depends on SSB_DRIVER_PCICORE_POSSIBLE
10661e115a5SMichael Buesch	help
10761e115a5SMichael Buesch	  Driver for the Sonics Silicon Backplane attached
10861e115a5SMichael Buesch	  Broadcom PCI core.
10961e115a5SMichael Buesch
11061e115a5SMichael Buesch	  If unsure, say Y
11161e115a5SMichael Buesch
11261e115a5SMichael Bueschconfig SSB_PCICORE_HOSTMODE
113feeb4445SMichael Buesch	bool "Hostmode support for SSB PCI core"
114ebd27d33SRafał Miłecki	depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS && SSB = y
11561e115a5SMichael Buesch	help
11661e115a5SMichael Buesch	  PCIcore hostmode operation (external PCI bus).
11761e115a5SMichael Buesch
11861e115a5SMichael Bueschconfig SSB_DRIVER_MIPS
119feeb4445SMichael Buesch	bool "SSB Broadcom MIPS core driver"
120feeb4445SMichael Buesch	depends on SSB && MIPS
12161e115a5SMichael Buesch	select SSB_SERIAL
122179fa46fSAdrien Schildknecht	select SSB_SFLASH
12361e115a5SMichael Buesch	help
12461e115a5SMichael Buesch	  Driver for the Sonics Silicon Backplane attached
12561e115a5SMichael Buesch	  Broadcom MIPS core.
12661e115a5SMichael Buesch
12761e115a5SMichael Buesch	  If unsure, say N
12861e115a5SMichael Buesch
12972a525cbSRafał Miłeckiconfig SSB_SFLASH
13072a525cbSRafał Miłecki	bool "SSB serial flash support"
131092c4649SRafał Miłecki	depends on SSB_DRIVER_MIPS
13272a525cbSRafał Miłecki	default y
13372a525cbSRafał Miłecki
13442bfad4fSMichael Buesch# Assumption: We are on embedded, if we compile the MIPS core.
13542bfad4fSMichael Bueschconfig SSB_EMBEDDED
13642bfad4fSMichael Buesch	bool
137*a86a8ca7SRandy Dunlap	depends on SSB_DRIVER_MIPS
138*a86a8ca7SRandy Dunlap	depends on PCI=n || SSB_PCICORE_HOSTMODE
13942bfad4fSMichael Buesch	default y
14042bfad4fSMichael Buesch
14161e115a5SMichael Bueschconfig SSB_DRIVER_EXTIF
142feeb4445SMichael Buesch	bool "SSB Broadcom EXTIF core driver"
143feeb4445SMichael Buesch	depends on SSB_DRIVER_MIPS
14461e115a5SMichael Buesch	help
14561e115a5SMichael Buesch	  Driver for the Sonics Silicon Backplane attached
14661e115a5SMichael Buesch	  Broadcom EXTIF core.
14761e115a5SMichael Buesch
14861e115a5SMichael Buesch	  If unsure, say N
14961e115a5SMichael Buesch
150aab547ceSMichael Bueschconfig SSB_DRIVER_GIGE
151aab547ceSMichael Buesch	bool "SSB Broadcom Gigabit Ethernet driver"
152aab547ceSMichael Buesch	depends on SSB_PCIHOST_POSSIBLE && SSB_EMBEDDED && MIPS
153aab547ceSMichael Buesch	help
154aab547ceSMichael Buesch	  Driver for the Sonics Silicon Backplane attached
155aab547ceSMichael Buesch	  Broadcom Gigabit Ethernet.
156aab547ceSMichael Buesch
157aab547ceSMichael Buesch	  If unsure, say N
158aab547ceSMichael Buesch
159ec43b08bSHauke Mehrtensconfig SSB_DRIVER_GPIO
160ec43b08bSHauke Mehrtens	bool "SSB GPIO driver"
1613194f2f0SGeert Uytterhoeven	depends on SSB && GPIOLIB
1627c1bc0daSRafał Miłecki	select IRQ_DOMAIN if SSB_EMBEDDED
163ec43b08bSHauke Mehrtens	help
164ec43b08bSHauke Mehrtens	  Driver to provide access to the GPIO pins on the bus.
165ec43b08bSHauke Mehrtens
166ec43b08bSHauke Mehrtens	  If unsure, say N
167ec43b08bSHauke Mehrtens
1688c9fdd76SVincent Legollendif # SSB
169