]> git.sur5r.net Git - u-boot/commitdiff
Add system memory to the PCI region list for AMCC PPC44x CPUs.
authorMarian Balakowicz <m8@semihalf.com>
Mon, 3 Jul 2006 22:55:47 +0000 (00:55 +0200)
committerMarian Balakowicz <m8@semihalf.com>
Mon, 3 Jul 2006 22:55:47 +0000 (00:55 +0200)
Enabled it for Yucca board.

CHANGELOG
cpu/ppc4xx/405gp_pci.c
include/configs/yucca.h

index 8081859c60809f84cde00d7f27cc5e4d57f8ec6a..afd34f17be6bc516f895a4b12e51dec1bbd7c902 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Add system memory to the PCI region list for AMCC PPC44x CPUs.
+  Enabled it for Yucca board.
+
 * Cleanup config file and bootup output for Yucca board.
 
 * Fix CONFIG_440_GX define usage.
index 0ccb3d81c6af15131c81e5be1325366735f4c706..cf5eccb01fdf5532d0ec22c742c29e92aee34712 100644 (file)
@@ -465,17 +465,30 @@ void pci_440_init (struct pci_controller *hose)
        hose->first_busno = 0;
        hose->last_busno = 0xff;
 
+       /* PCI I/O space */
        pci_set_region(hose->regions + reg_num++,
                       0x00000000,
                       PCIX0_IOBASE,
                       0x10000,
                       PCI_REGION_IO);
 
+       /* PCI memory space */
        pci_set_region(hose->regions + reg_num++,
                       CFG_PCI_TARGBASE,
                       CFG_PCI_MEMBASE,
                       0x10000000,
                       PCI_REGION_MEM );
+
+#if defined(CONFIG_PCI_SYS_MEM_BUS) && defined(CONFIG_PCI_SYS_MEM_PHYS) && \
+       defined(CONFIG_PCI_SYS_MEM_SIZE)
+       /* System memory space */
+       pci_set_region(hose->regions + reg_num++,
+                      CONFIG_PCI_SYS_MEM_BUS,
+                      CONFIG_PCI_SYS_MEM_PHYS,
+                      CONFIG_PCI_SYS_MEM_SIZE,
+                      PCI_REGION_MEM | PCI_REGION_MEMORY );
+#endif
+
        hose->region_count = reg_num;
 
        pci_setup_indirect(hose, PCIX0_CFGADR, PCIX0_CFGDATA);
index be2e7db176c65c87f35566280ea07a174e179409..e6d9843567966e942e839302d888fff9369f1f8c 100644 (file)
 /* #define CFG_PCI_BASE_REGS   0xBEC00000 */   /* internal PCI regs    */
 /* #define CFG_PCI_BASE_CYCLE  0xBED00000 */   /* internal PCI regs    */
 
+/* System RAM mapped to PCI space */
+#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_SIZE        (1024 * 1024 * 1024)
+
 #define CFG_FPGA_BASE          0xe2000000      /* epld                 */
 #define CFG_OPER_FLASH         0xe7000000      /* SRAM - OPER Flash    */