修訂 | 056c3c94f862cf04ac7c25a4df9e1df9538f9893 (tree) |
---|---|
時間 | 2016-04-17 18:04:10 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
pci: SH address space fix.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -224,6 +224,12 @@ int __pci_hose_phys_to_bus(struct pci_controller *hose, | ||
224 | 224 | if (res->flags & skip_mask) |
225 | 225 | continue; |
226 | 226 | |
227 | +#if defined(CONFIG_SH4_PCI) | |
228 | + /* from Logic address to Physical address */ | |
229 | + if( (phys_addr & 0xF0000000) == 0x80000000) | |
230 | + phys_addr &= ~0x80000000; | |
231 | +#endif | |
232 | + | |
227 | 233 | bus_addr = phys_addr - res->phys_start + res->bus_start; |
228 | 234 | |
229 | 235 | if (bus_addr >= res->bus_start && |