Skip to content

Commit 1ca2760

Browse files
rmileckiKalle Valo
authored andcommitted
bcma: prepare Kconfig symbol for PCI driver
Driver for PCIe core requires PCI to be enabled, however we shouldn't require it for the whole bus. Someone may be not interested in extra PCI devices and what's more there are SoCs without any PCI at all (like BCM5356C0, BCM5357*, BCM47186B0). For more details see Kconfig "help". Please note this patch doesn't allow disabling PCI drivers yet, as it requires more work on calls to bcma_core_pci_* functions. Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 0a4e699 commit 1ca2760

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

drivers/bcma/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ config BCMA_HOST_PCI_POSSIBLE
2626
config BCMA_HOST_PCI
2727
bool "Support for BCMA on PCI-host bus"
2828
depends on BCMA_HOST_PCI_POSSIBLE
29+
select BCMA_DRIVER_PCI
2930
default y
3031

3132
config BCMA_DRIVER_PCI_HOSTMODE
@@ -44,6 +45,22 @@ config BCMA_HOST_SOC
4445

4546
If unsure, say N
4647

48+
# TODO: make it depend on PCI when ready
49+
config BCMA_DRIVER_PCI
50+
bool
51+
default y
52+
help
53+
BCMA bus may have many versions of PCIe core. This driver
54+
supports:
55+
1) PCIe core working in clientmode
56+
2) PCIe Gen 2 clientmode core
57+
58+
In general PCIe (Gen 2) clientmode core is required on PCIe
59+
hosted buses. It's responsible for initialization and basic
60+
hardware management.
61+
This driver is also prerequisite for a hostmode PCIe core
62+
support.
63+
4764
config BCMA_DRIVER_MIPS
4865
bool "BCMA Broadcom MIPS core driver"
4966
depends on BCMA && MIPS

drivers/bcma/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ bcma-y += driver_chipcommon.o driver_chipcommon_pmu.o
33
bcma-y += driver_chipcommon_b.o
44
bcma-$(CONFIG_BCMA_SFLASH) += driver_chipcommon_sflash.o
55
bcma-$(CONFIG_BCMA_NFLASH) += driver_chipcommon_nflash.o
6-
bcma-y += driver_pci.o
7-
bcma-y += driver_pcie2.o
6+
bcma-$(CONFIG_BCMA_DRIVER_PCI) += driver_pci.o
7+
bcma-$(CONFIG_BCMA_DRIVER_PCI) += driver_pcie2.o
88
bcma-$(CONFIG_BCMA_DRIVER_PCI_HOSTMODE) += driver_pci_host.o
99
bcma-$(CONFIG_BCMA_DRIVER_MIPS) += driver_mips.o
1010
bcma-$(CONFIG_BCMA_DRIVER_GMAC_CMN) += driver_gmac_cmn.o

0 commit comments

Comments
 (0)