Felix Held has uploaded this change for review.
include/device/pci_mmio_cfg: assert CONFIG_ECAM_MMCONF_BUS_NUMBER != 0
Make sure that CONFIG_ECAM_MMCONF_BUS_NUMBER is non-zero when the
ECAM_MMCONF_SUPPORT Kconfig option is selected.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ic102b7dca9ffebb2d384a068a1fb1f4b6fb6c5f8
---
M src/include/device/pci_mmio_cfg.h
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/79933/1
diff --git a/src/include/device/pci_mmio_cfg.h b/src/include/device/pci_mmio_cfg.h
index 89c9906..4164441 100644
--- a/src/include/device/pci_mmio_cfg.h
+++ b/src/include/device/pci_mmio_cfg.h
@@ -31,6 +31,10 @@
#error "CONFIG_ECAM_MMCONF_BASE_ADDRESS undefined!"
#endif
+#if CONFIG_ECAM_MMCONF_BUS_NUMBER == 0
+#error "CONFIG_ECAM_MMCONF_BUS_NUMBER is undefined!"
+#endif
+
#if CONFIG_ECAM_MMCONF_BUS_NUMBER * MiB != CONFIG_ECAM_MMCONF_LENGTH
#error "CONFIG_ECAM_MMCONF_LENGTH does not correspond with CONFIG_ECAM_MMCONF_BUS_NUMBER!"
#endif
To view, visit change 79933. To unsubscribe, or for help writing mail filters, visit settings.