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__
This commit is contained in:
mlelstv 2021-03-10 11:03:48 +00:00
parent 279c4abbec
commit 54f59924b2
1 changed files with 6 additions and 1 deletions

View File

@ -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