]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: iproc: Make outbound mapping code more generic
authorRay Jui <ray.jui@broadcom.com>
Tue, 1 Nov 2016 00:38:37 +0000 (17:38 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 17 Nov 2016 20:40:37 +0000 (14:40 -0600)
commit4213e15c364e74fa0593a6b3e1e24e52f932eb85
tree9758b0f98b69e43ba011a8d71c97b894a648286f
parent8bfdccdb4bcc9fabc968846296206c85f65e91ce
PCI: iproc: Make outbound mapping code more generic

Improve the iProc PCIe outbound mapping code by making it more generic and
removing redundant device tree properties 'brcm,pcie-ob-window-size' and
'brcm,pcie-ob-oarr-size'.  The driver is still backward compatible to
device tree binaries with the two properties specified.

The driver now automatically configures the correct mapping window size and
number of mapping windows based on the value of device tree property
'ranges' and the capability of of the iProc PCIe controller.

Signed-off-by: Oza Oza <oza.oza@broadcom.com>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
drivers/pci/host/pcie-iproc-platform.c
drivers/pci/host/pcie-iproc.c
drivers/pci/host/pcie-iproc.h