From: Yoshihiro Shimoda Date: Wed, 25 Feb 2009 05:26:52 +0000 (+0900) Subject: sh: Add system memory registration to PCI for SH4 X-Git-Tag: v2009.03-rc2~1^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06e2735eb85cbea7cecb3c308d6d078b3651b22c;p=oweals%2Fu-boot.git sh: Add system memory registration to PCI for SH4 It is necessary for some pci device driver. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/drivers/pci/pci_sh4.c b/drivers/pci/pci_sh4.c index 057b6ddc99..c7963ed8a8 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,