From 54f59924b2a76b2ca01e106337f52d5bd04febde Mon Sep 17 00:00:00 2001 From: mlelstv Date: Wed, 10 Mar 2021 11:03:48 +0000 Subject: [PATCH] Add PCIe driver to build. You still need: bcm2838pcie* at fdt? # STB PCIe host controller in kernel config, and DTB entries like: pci@7d500000 { compatible = "brcm,bcm2711-pcie\0brcm,pci-plat-dev"; device_type = "pci"; #address-cells = <0x03>; #size-cells = <0x02>; bus-range = <0x00 0x01>; reg = <0x00 0x7d500000 0x80000>; ranges = <0x2000000 0x00 0xf8000000 0x06 0x00 0x00 0x4000000>; #interrupt-cells = <0x01>; interrupt-map = <0x00 0x00 0x00 0x01 0x01 0x00 0x8f 0x04>; interrupt-map-mask = <0x00 0x00 0x00 0x07>; linux,pci-domain = <0x00>; phandle = <0x90>; }; and pcie0 = "/scb/pci@7d500000"; in __symbols__ --- sys/arch/arm/broadcom/files.bcm2835 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm/broadcom/files.bcm2835 b/sys/arch/arm/broadcom/files.bcm2835 index ebb28abea4ee..ee3822d75ea8 100644 --- a/sys/arch/arm/broadcom/files.bcm2835 +++ b/sys/arch/arm/broadcom/files.bcm2835 @@ -1,4 +1,4 @@ -# $NetBSD: files.bcm2835,v 1.39 2020/03/31 12:23:17 jmcneill Exp $ +# $NetBSD: files.bcm2835,v 1.40 2021/03/10 11:03:48 mlelstv Exp $ # # Configuration info for Broadcom BCM2835 ARM Peripherals # @@ -46,6 +46,11 @@ attach bcm2838rng at fdt with bcm2838rng_fdt file arch/arm/broadcom/bcm2838_rng.c bcm2838rng file dev/ic/rng200.c bcm2838rng +# Broadcom STB PCIE host +device bcm2838pcie: pcibus +attach bcm2838pcie at fdt with bcm2838pcie_fdt +file arch/arm/broadcom/bcm2838_pcie.c bcm2838pcie + # AUX device bcmaux attach bcmaux at fdt with bcmaux_fdt