xref: /OK3568_Linux_fs/kernel/drivers/bcma/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyunconfig BCMA_POSSIBLE
3*4882a593Smuzhiyun	bool
4*4882a593Smuzhiyun	depends on HAS_IOMEM && HAS_DMA
5*4882a593Smuzhiyun	default y
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunmenuconfig BCMA
8*4882a593Smuzhiyun	tristate "Broadcom specific AMBA"
9*4882a593Smuzhiyun	depends on BCMA_POSSIBLE
10*4882a593Smuzhiyun	help
11*4882a593Smuzhiyun	  Bus driver for Broadcom specific Advanced Microcontroller Bus
12*4882a593Smuzhiyun	  Architecture.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunif BCMA
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# Support for Block-I/O. SELECT this from the driver that needs it.
17*4882a593Smuzhiyunconfig BCMA_BLOCKIO
18*4882a593Smuzhiyun	bool
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunconfig BCMA_HOST_PCI_POSSIBLE
21*4882a593Smuzhiyun	bool
22*4882a593Smuzhiyun	depends on PCI = y
23*4882a593Smuzhiyun	default y
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunconfig BCMA_HOST_PCI
26*4882a593Smuzhiyun	bool "Support for BCMA on PCI-host bus"
27*4882a593Smuzhiyun	depends on BCMA_HOST_PCI_POSSIBLE
28*4882a593Smuzhiyun	select BCMA_DRIVER_PCI
29*4882a593Smuzhiyun	default y
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunconfig BCMA_HOST_SOC
32*4882a593Smuzhiyun	bool "Support for BCMA in a SoC"
33*4882a593Smuzhiyun	depends on HAS_IOMEM
34*4882a593Smuzhiyun	help
35*4882a593Smuzhiyun	  Host interface for a Broadcom AIX bus directly mapped into
36*4882a593Smuzhiyun	  the memory. This only works with the Broadcom SoCs from the
37*4882a593Smuzhiyun	  BCM47XX line.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	  If unsure, say N
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunconfig BCMA_DRIVER_PCI
42*4882a593Smuzhiyun	bool "BCMA Broadcom PCI core driver"
43*4882a593Smuzhiyun	depends on PCI
44*4882a593Smuzhiyun	default y
45*4882a593Smuzhiyun	help
46*4882a593Smuzhiyun	  BCMA bus may have many versions of PCIe core. This driver
47*4882a593Smuzhiyun	  supports:
48*4882a593Smuzhiyun	  1) PCIe core working in clientmode
49*4882a593Smuzhiyun	  2) PCIe Gen 2 clientmode core
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	  In general PCIe (Gen 2) clientmode core is required on PCIe
52*4882a593Smuzhiyun	  hosted buses. It's responsible for initialization and basic
53*4882a593Smuzhiyun	  hardware management.
54*4882a593Smuzhiyun	  This driver is also prerequisite for a hostmode PCIe core
55*4882a593Smuzhiyun	  support.
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunconfig BCMA_DRIVER_PCI_HOSTMODE
58*4882a593Smuzhiyun	bool "Driver for PCI core working in hostmode"
59*4882a593Smuzhiyun	depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY && BCMA = y
60*4882a593Smuzhiyun	help
61*4882a593Smuzhiyun	  PCI core hostmode operation (external PCI bus).
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunconfig BCMA_DRIVER_MIPS
64*4882a593Smuzhiyun	bool "BCMA Broadcom MIPS core driver"
65*4882a593Smuzhiyun	depends on MIPS || COMPILE_TEST
66*4882a593Smuzhiyun	help
67*4882a593Smuzhiyun	  Driver for the Broadcom MIPS core attached to Broadcom specific
68*4882a593Smuzhiyun	  Advanced Microcontroller Bus.
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun	  If unsure, say N
71*4882a593Smuzhiyun
72*4882a593Smuzhiyunconfig BCMA_PFLASH
73*4882a593Smuzhiyun	bool
74*4882a593Smuzhiyun	depends on BCMA_DRIVER_MIPS
75*4882a593Smuzhiyun	default y
76*4882a593Smuzhiyun
77*4882a593Smuzhiyunconfig BCMA_SFLASH
78*4882a593Smuzhiyun	bool "ChipCommon-attached serial flash support"
79*4882a593Smuzhiyun	depends on BCMA_HOST_SOC
80*4882a593Smuzhiyun	default y
81*4882a593Smuzhiyun	help
82*4882a593Smuzhiyun	  Some cheap devices have serial flash connected to the ChipCommon
83*4882a593Smuzhiyun	  instead of independent SPI controller. It requires using a separated
84*4882a593Smuzhiyun	  driver that implements ChipCommon specific interface communication.
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	  Enabling this symbol will let bcma recognize serial flash and register
87*4882a593Smuzhiyun	  it as platform device.
88*4882a593Smuzhiyun
89*4882a593Smuzhiyunconfig BCMA_NFLASH
90*4882a593Smuzhiyun	bool
91*4882a593Smuzhiyun	depends on BCMA_DRIVER_MIPS
92*4882a593Smuzhiyun	default y
93*4882a593Smuzhiyun
94*4882a593Smuzhiyunconfig BCMA_DRIVER_GMAC_CMN
95*4882a593Smuzhiyun	bool "BCMA Broadcom GBIT MAC COMMON core driver"
96*4882a593Smuzhiyun	help
97*4882a593Smuzhiyun	  Driver for the Broadcom GBIT MAC COMMON core attached to Broadcom
98*4882a593Smuzhiyun	  specific Advanced Microcontroller Bus.
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun	  If unsure, say N
101*4882a593Smuzhiyun
102*4882a593Smuzhiyunconfig BCMA_DRIVER_GPIO
103*4882a593Smuzhiyun	bool "BCMA GPIO driver"
104*4882a593Smuzhiyun	depends on GPIOLIB
105*4882a593Smuzhiyun	select GPIOLIB_IRQCHIP if BCMA_HOST_SOC
106*4882a593Smuzhiyun	help
107*4882a593Smuzhiyun	  Driver to provide access to the GPIO pins of the bcma bus.
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun	  If unsure, say N
110*4882a593Smuzhiyun
111*4882a593Smuzhiyunconfig BCMA_DEBUG
112*4882a593Smuzhiyun	bool "BCMA debugging"
113*4882a593Smuzhiyun	help
114*4882a593Smuzhiyun	  This turns on additional debugging messages.
115*4882a593Smuzhiyun
116*4882a593Smuzhiyun	  If unsure, say N
117*4882a593Smuzhiyun
118*4882a593Smuzhiyunendif # BCMA
119