of/pci: Add support for parsing PCI host bridge resources from DT
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 29 Sep 2014 14:29:28 +0000 (15:29 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Sep 2014 23:08:57 +0000 (17:08 -0600)
commitcbe4097f8ae699ebbdaf8c95ecab38d47e0bd5da
tree3abf75a2058642b3296f997e95a2f32a96e99c20
parent41e5c0f81d3e676d671d96a0a1fafb27abfbd9d7
of/pci: Add support for parsing PCI host bridge resources from DT

Provide a function to parse the PCI DT ranges that can be used to create a
pci_host_bridge structure together with its associated bus.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
[make io_base parameter optional]
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Grant Likely <grant.likely@linaro.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Catalin Marinas <catalin.marinas@arm.com>
drivers/of/of_pci.c
include/linux/of_pci.h