summaryrefslogtreecommitdiff
path: root/drivers/pci/pci_sh4.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>2009-02-25 14:26:52 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2009-03-12 23:58:30 +0900
commit06e2735eb85cbea7cecb3c308d6d078b3651b22c (patch)
tree8e08ff875d80d7297d9fbbb1ac99f9da486ed7ae /drivers/pci/pci_sh4.c
parentb3061b40db691245a7bb9a55354b4edacbf3902d (diff)
downloadu-boot-imx-06e2735eb85cbea7cecb3c308d6d078b3651b22c.zip
u-boot-imx-06e2735eb85cbea7cecb3c308d6d078b3651b22c.tar.gz
u-boot-imx-06e2735eb85cbea7cecb3c308d6d078b3651b22c.tar.bz2
sh: Add system memory registration to PCI for SH4
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>
Diffstat (limited to 'drivers/pci/pci_sh4.c')
-rw-r--r--drivers/pci/pci_sh4.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/pci_sh4.c b/drivers/pci/pci_sh4.c
index 057b6dd..c7963ed 100644
--- a/drivers/pci/pci_sh4.c
+++ b/drivers/pci/pci_sh4.c
@@ -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,