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