summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2021-10-14 18:27:22 +0200
committerNico Huber <nico.h@gmx.de>2021-11-09 11:04:10 +0000
commitafe18986070ca6a755eda104624f0dd4756ae96a (patch)
tree874ce852c6e48289be57e857a5ac988ae42f6540 /src/arch/x86
parent91c077f6e244a05a32630024f068536209c26a02 (diff)
pci_mmio_cfg: Move guard around pci_s_* functions to x86
There is no platform in our tree that requires the PCI MMIO ops but doesn't want the pci_s_* definitions. The only case where we include the `pci_mmio_cfg.h` header but don't want the pci_s_* functions to use MMIO is on older x86 platforms, so move the guard there. Change-Id: Iaeed6ab43ad61b7c0e14572b12bf4ec06b6a26af Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58331 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/include/arch/pci_ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/pci_ops.h b/src/arch/x86/include/arch/pci_ops.h
index 317e597cff..abbd35c07d 100644
--- a/src/arch/x86/include/arch/pci_ops.h
+++ b/src/arch/x86/include/arch/pci_ops.h
@@ -4,6 +4,8 @@
#define ARCH_I386_PCI_OPS_H
#include <arch/pci_io_cfg.h>
+#if CONFIG(MMCONF_SUPPORT)
#include <device/pci_mmio_cfg.h>
+#endif
#endif /* ARCH_I386_PCI_OPS_H */