diff options
author | Marian Balakowicz <m8@semihalf.com> | 2006-07-04 00:55:47 +0200 |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2006-07-04 00:55:47 +0200 |
commit | fbb0b559ae564d80b5ea3199ad530aa0e419a668 (patch) | |
tree | e2ce9cb41309e974e9b4e2506c73fd9648fb1d0b /cpu/ppc4xx | |
parent | fe84b48a94beb88a977a88e3d14b6ea882cdc91a (diff) | |
download | u-boot-imx-fbb0b559ae564d80b5ea3199ad530aa0e419a668.zip u-boot-imx-fbb0b559ae564d80b5ea3199ad530aa0e419a668.tar.gz u-boot-imx-fbb0b559ae564d80b5ea3199ad530aa0e419a668.tar.bz2 |
Add system memory to the PCI region list for AMCC PPC44x CPUs.
Enabled it for Yucca board.
Diffstat (limited to 'cpu/ppc4xx')
-rw-r--r-- | cpu/ppc4xx/405gp_pci.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpu/ppc4xx/405gp_pci.c b/cpu/ppc4xx/405gp_pci.c index 0ccb3d8..cf5eccb 100644 --- a/cpu/ppc4xx/405gp_pci.c +++ b/cpu/ppc4xx/405gp_pci.c @@ -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); |