AnsweredAssumed Answered

Driver access PCIE Device via IO port failed with IMX6

Question asked by Peter Hong on Mar 14, 2016
Latest reply on Oct 31, 2019 by Bevin C



I'm working for driver porting PCIE device driver from x86 to ARM on Yocto kernel 3.14.52.

Our PCIE device will request BAR with MMIO and Port IO address. Our driver will use inb()/outb()

to access the PCIE device on X86. But we cant use the same method inb()/outb() with on IMX6.

when I use inb()/outb() will read all 0.


I had tried with pci_iomap() & ioread8() to do read. It's the same all 0. How should I do to read

the PCIE IO port data ?


The resource map is following:

root@imx6qsabresd:/sys/bus/pci/devices/0000:01:00.0# cat resource

0x0000000000001080 0x000000000000108f 0x0000000000040101

0x0000000001100000 0x000000000110000f 0x0000000000040200

0x0000000000001000 0x000000000000101f 0x0000000000040101 <---

0x0000000000001020 0x000000000000103f 0x0000000000040101

0x0000000000001040 0x000000000000105f 0x0000000000040101

0x0000000000001060 0x000000000000107f 0x0000000000040101

0x0000000000000000 0x0000000000000000 0x0000000000000000