Skip to contentSkip to conversation

Enable PCIE_BRCMSTB on MIPS

PATCH In review Florian Fainelli 2 participants 4 messages Nov 8, 2021 – Nov 10, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Enable PCIE_BRCMSTB on MIPS

This patch series allows building the PCIE_BRCMSTB driver for BMIPS_GENERIC. This is preliminary work to actually adding support for PCIe host bridge changes to the 7425/29/35 MIPS-based SoCs.

The two patches are largely independent, though it might make more sense to merge them via the PCI drivers tree?

Florian Fainelli (2):
MIPS: BMIPS: Enable PCI Kconfig
PCI: brcmstb: Allow building for BMIPS_GENERIC

 arch/mips/Kconfig              | 2 ++
 drivers/pci/controller/Kconfig | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 MIPS: BMIPS: Enable PCI Kconfig

Enable HAVE_PCI and PCI_DRIVERS_GENERIC so we can build PCIE_BRCMSTB which is the PCIe host bridge driver for this platform.

---
 arch/mips/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/Kconfig +2 -0
index 86510741d49d..daf2ab671b62 100644
@@ -292,6 +292,8 @@ config BMIPS_GENERIC
 	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
 	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
 	select HARDIRQS_SW_RESEND
+	select HAVE_PCI
+	select PCI_DRIVERS_GENERIC
 	help
 	  Build a generic DT-based kernel image that boots on select
 	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 PCI: brcmstb: Allow building for BMIPS_GENERIC

In reply to Florian Fainelli

BMIPS_GENERIC denotes support for the MIPS-based Broadcom STB platforms which this driver can support.

---
 drivers/pci/controller/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pci/controller/Kconfig +2 -1
index e917bb3652bb..93b141110537 100644
@@ -270,7 +270,8 @@ config VMD
 
 config PCIE_BRCMSTB
 	tristate "Broadcom Brcmstb PCIe host controller"
-	depends on ARCH_BRCMSTB || ARCH_BCM2835 || ARCH_BCM4908 || COMPILE_TEST
+	depends on ARCH_BRCMSTB || ARCH_BCM2835 || ARCH_BCM4908 || \
+		   BMIPS_GENERIC || COMPILE_TEST
 	depends on OF
 	depends on PCI_MSI_IRQ_DOMAIN
 	default ARCH_BRCMSTB
Signature · 1 line
2.25.1
#3 lore raw
In reply to Florian Fainelli
Quoted 7 lines · Florian Fainelli

This patch series allows building the PCIE_BRCMSTB driver for BMIPS_GENERIC. This is preliminary work to actually adding support for PCIe host bridge changes to the 7425/29/35 MIPS-based SoCs.

The two patches are largely independent, though it might make more sense to merge them via the PCI drivers tree?

Quoted 7 lines

Florian Fainelli (2):
MIPS: BMIPS: Enable PCI Kconfig
PCI: brcmstb: Allow building for BMIPS_GENERIC

 arch/mips/Kconfig              | 2 ++
 drivers/pci/controller/Kconfig | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

series applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]