blob: b9558ff20830eec89a3d219172fb179b9b3bced8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Rafał Miłecki8369ae32011-05-09 18:56:46 +02002config BCMA_POSSIBLE
3 bool
Rafał Miłecki6029e0c2015-03-05 18:25:12 +01004 depends on HAS_IOMEM && HAS_DMA
Rafał Miłecki8369ae32011-05-09 18:56:46 +02005 default y
6
Vincent Legoll9ca766b2017-04-17 12:07:30 +02007menuconfig BCMA
8 tristate "Broadcom specific AMBA"
Rafał Miłecki8369ae32011-05-09 18:56:46 +02009 depends on BCMA_POSSIBLE
10 help
11 Bus driver for Broadcom specific Advanced Microcontroller Bus
12 Architecture.
13
Randy Dunlap0f0a0af2017-09-27 13:01:49 -070014if BCMA
15
Rafał Miłecki9d75ef02011-05-20 03:27:06 +020016# Support for Block-I/O. SELECT this from the driver that needs it.
17config BCMA_BLOCKIO
18 bool
Rafał Miłecki9d75ef02011-05-20 03:27:06 +020019
Rafał Miłecki8369ae32011-05-09 18:56:46 +020020config BCMA_HOST_PCI_POSSIBLE
21 bool
Randy Dunlap0f0a0af2017-09-27 13:01:49 -070022 depends on PCI = y
Rafał Miłecki8369ae32011-05-09 18:56:46 +020023 default y
24
25config BCMA_HOST_PCI
26 bool "Support for BCMA on PCI-host bus"
27 depends on BCMA_HOST_PCI_POSSIBLE
Rafał Miłecki1ca27602015-03-04 23:07:05 +010028 select BCMA_DRIVER_PCI
Hauke Mehrtensd1868992013-06-09 18:59:42 +020029 default y
Rafał Miłecki8369ae32011-05-09 18:56:46 +020030
Hauke Mehrtensecd177c2011-07-23 01:20:08 +020031config BCMA_HOST_SOC
Hauke Mehrtens6ffdead2013-07-15 13:15:05 +020032 bool "Support for BCMA in a SoC"
Boris Brezillona58d0b42018-07-05 11:45:16 +020033 depends on HAS_IOMEM
Hauke Mehrtens6ffdead2013-07-15 13:15:05 +020034 help
35 Host interface for a Broadcom AIX bus directly mapped into
36 the memory. This only works with the Broadcom SoCs from the
37 BCM47XX line.
38
39 If unsure, say N
Hauke Mehrtens21e05342011-07-23 01:20:09 +020040
Rafał Miłecki1ca27602015-03-04 23:07:05 +010041config BCMA_DRIVER_PCI
Rafał Miłecki982a40f2015-03-05 18:25:11 +010042 bool "BCMA Broadcom PCI core driver"
Randy Dunlap0f0a0af2017-09-27 13:01:49 -070043 depends on PCI
Rafał Miłecki1ca27602015-03-04 23:07:05 +010044 default y
45 help
46 BCMA bus may have many versions of PCIe core. This driver
47 supports:
48 1) PCIe core working in clientmode
49 2) PCIe Gen 2 clientmode core
50
51 In general PCIe (Gen 2) clientmode core is required on PCIe
52 hosted buses. It's responsible for initialization and basic
53 hardware management.
54 This driver is also prerequisite for a hostmode PCIe core
55 support.
56
Rafał Miłecki49280622015-06-07 13:15:31 +020057config BCMA_DRIVER_PCI_HOSTMODE
58 bool "Driver for PCI core working in hostmode"
Matt Redfearn79ca2392018-03-01 09:58:12 +000059 depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY && BCMA = y
Rafał Miłecki49280622015-06-07 13:15:31 +020060 help
61 PCI core hostmode operation (external PCI bus).
62
Hauke Mehrtens21e05342011-07-23 01:20:09 +020063config BCMA_DRIVER_MIPS
64 bool "BCMA Broadcom MIPS core driver"
Boris Brezillona58d0b42018-07-05 11:45:16 +020065 depends on MIPS || COMPILE_TEST
Hauke Mehrtens21e05342011-07-23 01:20:09 +020066 help
67 Driver for the Broadcom MIPS core attached to Broadcom specific
68 Advanced Microcontroller Bus.
69
70 If unsure, say N
Hauke Mehrtensecd177c2011-07-23 01:20:08 +020071
Rafał Miłeckid6a3b512016-02-12 10:15:44 +010072config BCMA_PFLASH
73 bool
74 depends on BCMA_DRIVER_MIPS
75 default y
76
Rafał Miłecki23cb3b22012-07-17 16:26:41 +020077config BCMA_SFLASH
Rafał Miłecki57d8f7d2016-07-18 12:34:14 +020078 bool "ChipCommon-attached serial flash support"
79 depends on BCMA_HOST_SOC
Rafał Miłecki23cb3b22012-07-17 16:26:41 +020080 default y
Rafał Miłecki57d8f7d2016-07-18 12:34:14 +020081 help
82 Some cheap devices have serial flash connected to the ChipCommon
83 instead of independent SPI controller. It requires using a separated
84 driver that implements ChipCommon specific interface communication.
85
86 Enabling this symbol will let bcma recognize serial flash and register
87 it as platform device.
Rafał Miłecki23cb3b22012-07-17 16:26:41 +020088
89config BCMA_NFLASH
90 bool
Rafał Miłecki371a0042012-08-12 13:08:05 +020091 depends on BCMA_DRIVER_MIPS
Rafał Miłecki23cb3b22012-07-17 16:26:41 +020092 default y
93
Rafał Miłeckie1ac4b42012-07-11 09:23:43 +020094config BCMA_DRIVER_GMAC_CMN
95 bool "BCMA Broadcom GBIT MAC COMMON core driver"
Rafał Miłeckie1ac4b42012-07-11 09:23:43 +020096 help
97 Driver for the Broadcom GBIT MAC COMMON core attached to Broadcom
98 specific Advanced Microcontroller Bus.
99
100 If unsure, say N
101
Hauke Mehrtenscf0936b2012-11-20 22:24:30 +0000102config BCMA_DRIVER_GPIO
103 bool "BCMA GPIO driver"
Randy Dunlap0f0a0af2017-09-27 13:01:49 -0700104 depends on GPIOLIB
Linus Walleij74f4e0c2015-08-14 00:21:45 +0200105 select GPIOLIB_IRQCHIP if BCMA_HOST_SOC
Hauke Mehrtenscf0936b2012-11-20 22:24:30 +0000106 help
107 Driver to provide access to the GPIO pins of the bcma bus.
108
109 If unsure, say N
110
Rafał Miłecki8369ae32011-05-09 18:56:46 +0200111config BCMA_DEBUG
112 bool "BCMA debugging"
Rafał Miłecki8369ae32011-05-09 18:56:46 +0200113 help
114 This turns on additional debugging messages.
115
116 If unsure, say N
Randy Dunlap0f0a0af2017-09-27 13:01:49 -0700117
118endif # BCMA