diff options
-rw-r--r-- | drivers/pci/pci.c | 9 | ||||
-rw-r--r-- | include/configs/integratorcp.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3daf73c30a..47b999f2d4 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -265,11 +265,20 @@ int __pci_hose_phys_to_bus(struct pci_controller *hose, continue; bus_addr = phys_addr - res->phys_start + res->bus_start; + printf("region %d, phys_addr = %08x -> bus_addr = %08x\n", + i, phys_addr, bus_addr); if (bus_addr >= res->bus_start && bus_addr < res->bus_start + res->size) { *ba = bus_addr; + printf("OK in region bus %08x -> %08x phys: %08x -> %08x\n", + res->bus_start, res->bus_start + res->size - 1, + res->phys_start, res->phys_start + res->size - 1); return 0; + } else { + printf("NOT in region bus %08x -> %08x phys: %08x -> %08x\n", + res->bus_start, res->bus_start + res->size - 1, + res->phys_start, res->phys_start + res->size - 1); } } diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h index 6f380bf001..5b51fb7446 100644 --- a/include/configs/integratorcp.h +++ b/include/configs/integratorcp.h @@ -48,7 +48,7 @@ #define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyAMA0 console=tty ip=dhcp netdev=27,0,0xfc800000,0xfc800010,eth0 video=clcdfb:0" #define CONFIG_BOOTCOMMAND "" \ "set serverip 192.168.1.32 ; " \ - "set ipaddr 192.168.1.35 ; " \ + "set ipaddr 192.168.1.38 ; " \ "tftpboot 0x00007fc0 192.168.1.32:uImage ; " \ "tftpboot 0x00800000 192.168.1.32:integratorcp.dtb ; " \ "bootm 0x00007fc0 - 0x00800000" |