• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂1920fb5ef5a16cca4f4eaa4fb925a86dacdbf34c (tree)
時間2016-04-17 18:04:09
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

pci: SH4 28bit address support

Change Summary

差異

--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -14,7 +14,6 @@
1414 * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
1515 * and change pci-uclass.c.
1616 */
17-
1817 #include <common.h>
1918
2019 #include <command.h>
@@ -189,6 +188,12 @@ pci_dev_t pci_find_devices(struct pci_device_id *ids, int index)
189188 return -1;
190189 }
191190
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
192197 int pci_hose_config_device(struct pci_controller *hose,
193198 pci_dev_t dev,
194199 unsigned long io,