修訂 | 1920fb5ef5a16cca4f4eaa4fb925a86dacdbf34c (tree) |
---|---|
時間 | 2016-04-17 18:04:09 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
pci: SH4 28bit address support
@@ -14,7 +14,6 @@ | ||
14 | 14 | * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI |
15 | 15 | * and change pci-uclass.c. |
16 | 16 | */ |
17 | - | |
18 | 17 | #include <common.h> |
19 | 18 | |
20 | 19 | #include <command.h> |
@@ -189,6 +188,12 @@ pci_dev_t pci_find_devices(struct pci_device_id *ids, int index) | ||
189 | 188 | return -1; |
190 | 189 | } |
191 | 190 | |
191 | + | |
192 | +#if defined(CONFIG_SH4_PCI) | |
193 | + /* from Logic address to Physical address */ | |
194 | + if( (phys_addr & 0xF0000000) == 0x80000000) | |
195 | + phys_addr &= ~0x80000000; | |
196 | +#endif | |
192 | 197 | int pci_hose_config_device(struct pci_controller *hose, |
193 | 198 | pci_dev_t dev, |
194 | 199 | unsigned long io, |