Merge tag 'pull-24apr19' of git://git.denx.de/u-boot-dm
[project/bcm63xx/u-boot.git] / include / pci.h
index 508f7bca81c00f8625e91c9c4fe02cb1c7754cd3..066238a9c3c686bfd7d8f7b984ea17a47cb7b0b2 100644 (file)
@@ -546,7 +546,11 @@ extern void pci_cfgfunc_do_nothing(struct pci_controller* hose, pci_dev_t dev,
 extern void pci_cfgfunc_config_device(struct pci_controller* hose, pci_dev_t dev,
                                      struct pci_config_table *);
 
-#define MAX_PCI_REGIONS                7
+#ifdef CONFIG_NR_DRAM_BANKS
+#define MAX_PCI_REGIONS (CONFIG_NR_DRAM_BANKS + 7)
+#else
+#define MAX_PCI_REGIONS 7
+#endif
 
 #define INDIRECT_TYPE_NO_PCIE_LINK     1