mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
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>
This commit is contained in:
parent
b3061b40db
commit
06e2735eb8
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue