]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: Add system memory registration to PCI for SH4
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Wed, 25 Feb 2009 05:26:52 +0000 (14:26 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Thu, 12 Mar 2009 14:58:30 +0000 (23:58 +0900)
It is necessary for some pci device driver.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/pci/pci_sh4.c

index 057b6ddc99ffcccfcbab224a1c0e36819e84562e..c7963ed8a8c5e6d1d4b96bd05908cf2f414ff3c8 100644 (file)
@@ -54,6 +54,16 @@ int pci_sh4_init(struct pci_controller *hose)
                PCI_REGION_IO);
        hose->region_count++;
 
+#if defined(CONFIG_PCI_SYS_BUS)
+       /* PCI System Memory space */
+       pci_set_region(hose->regions + 2,
+               CONFIG_PCI_SYS_BUS,
+               CONFIG_PCI_SYS_PHYS,
+               CONFIG_PCI_SYS_SIZE,
+               PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
+       hose->region_count++;
+#endif
+
        udelay(1000);
 
        pci_set_ops(hose,