
4 Aug
2016
4 Aug
'16
6:30 p.m.
On Thu, Aug 4, 2016 at 5:29 AM, Paul Burton paul.burton@imgtec.com wrote:
Reading the PCI BAR & converting the result to a physical address is not safe across all architectures. For example on MIPS the virtual:physical mapping is not 1:1, so we cannot directly make use of the physical address.
Use the more generic BAR-mapping function dm_pci_map_bar to discover the MMIO base address, which should work across architectures.
Signed-off-by: Paul Burton paul.burton@imgtec.com
Acked-by: Joe Hershberger joe.hershberger@ni.com