Skip to content
Snippets Groups Projects
Commit 06e2735e authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Nobuhiro Iwamatsu
Browse files

sh: Add system memory registration to PCI for SH4


It is necessary for some pci device driver.

Signed-off-by: default avatarYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent b3061b40
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,16 @@ int pci_sh4_init(struct pci_controller *hose) ...@@ -54,6 +54,16 @@ int pci_sh4_init(struct pci_controller *hose)
PCI_REGION_IO); PCI_REGION_IO);
hose->region_count++; 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); udelay(1000);
pci_set_ops(hose, pci_set_ops(hose,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment