[U-Boot] [PATCH v2 1/2] x86: qemu: Make host bridge (b.d.f=0.0.0) visible
Bin Meng
bmeng.cn at gmail.com
Sat May 23 18:12:32 CEST 2015
The default weak version of pci_skip_dev() in drivers/pci/pci_common.c
skips the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35
chipset for QEMU targets. Define CONFIG_PCI_CONFIG_HOST_BRIDGE to make
it visible in the PCI configuration space.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
Changes in v2:
- Change to use CONFIG_PCI_CONFIG_HOST_BRIDGE
include/configs/qemu-x86.h | 1 +
include/configs/x86-common.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h
index 77f88d2..d01936b 100644
--- a/include/configs/qemu-x86.h
+++ b/include/configs/qemu-x86.h
@@ -29,6 +29,7 @@
#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
#define CONFIG_PCI_IO_SIZE 0xe000
+#define CONFIG_PCI_CONFIG_HOST_BRIDGE
#define CONFIG_PCI_PNP
#define CONFIG_E1000
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index 3912b39..21e150b 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -245,6 +245,7 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_STD_DEVICES_SETTINGS \
+ "pciconfighost=1\0" \
"netdev=eth0\0" \
"consoledev=ttyS0\0" \
"othbootargs=acpi=off\0" \
--
1.8.2.1
More information about the U-Boot
mailing list