Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Rafał Miłecki and committed by
Kalle Valo
1ca2760f 0a4e699a

+19 -2
+17
drivers/bcma/Kconfig
··· 26 26 config BCMA_HOST_PCI 27 27 bool "Support for BCMA on PCI-host bus" 28 28 depends on BCMA_HOST_PCI_POSSIBLE 29 + select BCMA_DRIVER_PCI 29 30 default y 30 31 31 32 config BCMA_DRIVER_PCI_HOSTMODE ··· 44 43 BCM47XX line. 45 44 46 45 If unsure, say N 46 + 47 + # TODO: make it depend on PCI when ready 48 + config BCMA_DRIVER_PCI 49 + bool 50 + default y 51 + help 52 + BCMA bus may have many versions of PCIe core. This driver 53 + supports: 54 + 1) PCIe core working in clientmode 55 + 2) PCIe Gen 2 clientmode core 56 + 57 + In general PCIe (Gen 2) clientmode core is required on PCIe 58 + hosted buses. It's responsible for initialization and basic 59 + hardware management. 60 + This driver is also prerequisite for a hostmode PCIe core 61 + support. 47 62 48 63 config BCMA_DRIVER_MIPS 49 64 bool "BCMA Broadcom MIPS core driver"
+2 -2
drivers/bcma/Makefile
··· 3 3 bcma-y += driver_chipcommon_b.o 4 4 bcma-$(CONFIG_BCMA_SFLASH) += driver_chipcommon_sflash.o 5 5 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 8 8 bcma-$(CONFIG_BCMA_DRIVER_PCI_HOSTMODE) += driver_pci_host.o 9 9 bcma-$(CONFIG_BCMA_DRIVER_MIPS) += driver_mips.o 10 10 bcma-$(CONFIG_BCMA_DRIVER_GMAC_CMN) += driver_gmac_cmn.o