Merge with /home/stefan/git/u-boot/denx
[oweals/u-boot.git] / cpu / ppc4xx / 405gp_pci.c
index 03128d3f6d16fea966d28e84474bf3870242806e..9b711e2ebf14910a5ec39d05916319e7369f3504 100644 (file)
@@ -475,7 +475,11 @@ void pci_440_init (struct pci_controller *hose)
        pci_set_region(hose->regions + reg_num++,
                       CFG_PCI_TARGBASE,
                       CFG_PCI_MEMBASE,
+#ifdef CFG_PCI_MEMSIZE
+                      CFG_PCI_MEMSIZE,
+#else
                       0x10000000,
+#endif
                       PCI_REGION_MEM );
 
 #if defined(CONFIG_PCI_SYS_MEM_BUS) && defined(CONFIG_PCI_SYS_MEM_PHYS) && \