Hello,
Thankyou for the reply.
The following is the log of Outbound window registers
fe200c00: 00000000 00000000 00000000 00000000 ................
fe200c10: 80044023 00000000 00000000 00000000 ..@#............
fe200c20: 000e0000 00000000 00c00000 00000000 ................
fe200c30: 8004401c 00000000 00000000 00000000 ..@.............
fe200c40: 00000000 00000000 00ff8000 00000000 ................
fe200c50: 8008800f 00000000 00000000 00000000 ................
fe200c60: 00000000 00000000 00000000 00000000 ................
fe200c70: 00000000 00000000 00000000 00000000 ................
wherein
fe200c20 (PEX1_PEXOTAR1) : 000e0000
fe200c28 (PEX1_PEXOWBAR1) : 00c00000
When I try to access address 0xc0000000 from linux user space, as shown below,I get "segmentation fault"
#define PCI_addr 0xC0000000
data = *(unsigned long*)(PCI_addr+0x00);
Please clarify the following points:
1. Does "base address 0 = 0xe0000000" from "pci header" correspond to PEX1_PEXOTAR1?
2. Is the address "0xC0000000" from PEX1_PEXOWBAR1 correct address to access pcie data?
3. How to check if the address "0xC0000000" is mapped to LAW of PCIe1 of P4080DS( commands if any to check the same from u-boot terminal is requested.)
The u-boot log is attached for reference
Thank you in advance.