aboutsummaryrefslogtreecommitdiff
path: root/board/qemu
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@gmail.com>2020-07-07 01:41:46 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-07-11 15:52:03 +0200
commit6fb7513a9c404d8605f39ac276eca548ad3ba46f (patch)
tree7b0b1703e7f8d5eae6dd6805f593b4b390f82c5b /board/qemu
parenta3bf3399079e4a69b4ef1f22b044ce7358ff0de2 (diff)
downloadbuildroot-6fb7513a9c404d8605f39ac276eca548ad3ba46f.tar.gz
buildroot-6fb7513a9c404d8605f39ac276eca548ad3ba46f.tar.bz2
board/qemu/aarch64-virt/linux.config: enable PCIe and PCI host generic driver
Add the CONFIG_PCI symbol due a change in kernel 5.0 [1]. The option was previously enabled by default (default y). "PCI: consolidate PCI config entry in drivers/pci There is no good reason to duplicate the PCI menu in every architecture. Instead provide a selectable HAVE_PCI symbol that indicates availability of PCI support, and a FORCE_PCI symbol to for PCI on and the handle the rest in drivers/pci." Qemu aarch64 provide a PCIe Host bridge but it require CONFIG_PCI_HOST_GENERIC enabled in the kernel. With CONFIG_PCI_HOST_GENERIC enabled PCIe host bridge is detected: $ dmesg pci-host-generic 4010000000.pcie: host bridge /pcie@10000000 ranges: pci-host-generic 4010000000.pcie: IO 0x3eff0000..0x3effffff -> 0x00000000 pci-host-generic 4010000000.pcie: MEM 0x10000000..0x3efeffff -> 0x10000000 pci-host-generic 4010000000.pcie: MEM 0x8000000000..0xffffffffff -> 0x8000000000 pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00 pci_bus 0000:00: root bus resource [bus 00-ff] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 $ lspci 00:00.0 Host bridge: Red Hat, Inc. QEMU PCIe Host bridge [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb01d42a77785ff96b6e66a2a2e7027fc6d78e4a Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'board/qemu')
-rw-r--r--board/qemu/aarch64-virt/linux.config2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/qemu/aarch64-virt/linux.config b/board/qemu/aarch64-virt/linux.config
index 49018efe95..295bf19a7c 100644
--- a/board/qemu/aarch64-virt/linux.config
+++ b/board/qemu/aarch64-virt/linux.config
@@ -23,6 +23,8 @@ CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_BRIDGE=m
CONFIG_NET_SCHED=y
CONFIG_VSOCKETS=y
+CONFIG_PCI=y
+CONFIG_PCI_HOST_GENERIC=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_VIRTIO_BLK=y