summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-11-17 14:00:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-22 09:54:31 +0100
commite927d85dceb56357db4a0d46b59d8430a7e0d349 (patch)
tree30cd93e073fb5d1197302356bfdeebbad6070d0c
parent043e4e34dd03ef0de415bdde12831470baf6ab7a (diff)
downloadbarebox-e927d85dceb56357db4a0d46b59d8430a7e0d349.tar.gz
barebox-e927d85dceb56357db4a0d46b59d8430a7e0d349.tar.xz
ARM64: qemu-virt: enable PCI support
We now have a driver for the PCI controller on QEMU, so define HW_HAS_PCI. The barebox PCI implementation doesn't yet deal with 64-bit addresses, so use -M virt,highmem=off by default. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211117130044.2437471-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--test/arm/qemu_virt64_defconfig.yaml2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a8b7bdeaa6..14aa7e26af 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -276,6 +276,7 @@ config ARCH_ARM64_VIRT
select SYS_SUPPORTS_64BIT_KERNEL
select ARM_AMBA
select BOARD_ARM_VIRT
+ select HW_HAS_PCI
endchoice
diff --git a/test/arm/qemu_virt64_defconfig.yaml b/test/arm/qemu_virt64_defconfig.yaml
index ed308591da..5da5dfeb7e 100644
--- a/test/arm/qemu_virt64_defconfig.yaml
+++ b/test/arm/qemu_virt64_defconfig.yaml
@@ -3,7 +3,7 @@ targets:
drivers:
QEMUDriver:
qemu_bin: qemu
- machine: virt
+ machine: virt,highmem=off
cpu: cortex-a57
memory: 1024M
kernel: barebox-dt-2nd.img