aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-02-26 14:39:51 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-12-19 15:54:24 +0100
commit9d7a9e53ba80bb15d2f530258b9cbdd7dc1fff20 (patch)
tree54eb2a95283de1a76cd497556363ab6f078cfbab
parent0c8d44812239d8c4590b8b4790460251f01ae033 (diff)
-rw-r--r--drivers/pci/pci.c9
-rw-r--r--include/configs/integratorcp.h2
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"