PCI: iproc: Add outbound mapping support
authorRay Jui <rjui@broadcom.com>
Fri, 16 Oct 2015 13:18:24 +0000 (08:18 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Oct 2015 13:18:24 +0000 (08:18 -0500)
commite99a187b5c5f60fe55ca586f82ac1a3557fb166a
tree2da61f1c9e854b6f1eebadb3a74dc1a1429ce333
parent8d0afa1a93be2da954c85392bbc7b2264c9d241c
PCI: iproc: Add outbound mapping support

Certain SoCs require the PCIe outbound mapping to be configured in
software.  Add support for those chips.

[jonmason: Use %pap format when printing size_t to avoid warnings in 32-bit
build.]
[arnd: Use div64_u64() instead of "%" to avoid __aeabi_uldivmod link error
in 32-bit build.]
Signed-off-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Jon Mason <jonmason@broadcom.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-iproc-platform.c
drivers/pci/host/pcie-iproc.c
drivers/pci/host/pcie-iproc.h