[U-Boot] [PATCH v2 05/10] net: pch_gbe: Use dm_pci_map_bar to discover MMIO base

Joe Hershberger joe.hershberger at gmail.com
Fri Jul 29 16:08:12 CEST 2016


On Wed, Jul 27, 2016 at 9:26 AM, Paul Burton <paul.burton at 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 at imgtec.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list