aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2016-11-26 01:01:10 +0100
committerJohn Crispin <john@phrozen.org>2016-11-26 22:39:26 +0100
commit79741dc379178977a68672f8180f7d07796aae07 (patch)
tree060cd7d748648c28b4669ed73f1c59a5215fc625
parentc723646f22376e8ec3002217b047cb654a26026b (diff)
downloadupstream-79741dc379178977a68672f8180f7d07796aae07.tar.gz
upstream-79741dc379178977a68672f8180f7d07796aae07.tar.bz2
upstream-79741dc379178977a68672f8180f7d07796aae07.zip
lantiq: Register the device tree node with the PCIe controller
This allows specifying PCI devices as children of the PCIe controller node to pass configuration data to them. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
-rw-r--r--target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch10
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch b/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch
index ed7927e046..75f1bfbcf0 100644
--- a/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch
+++ b/target/linux/lantiq/patches-4.4/0151-lantiq-ifxmips_pcie-use-of.patch
@@ -71,7 +71,15 @@
for (pcie_port = startup_port; pcie_port < IFX_PCIE_CORE_NR; pcie_port++){
if (pcie_rc_initialize(pcie_port) == 0) {
IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: ifx_pcie_cfg_base 0x%p\n",
-@@ -1083,6 +1114,30 @@ static int __init ifx_pcie_bios_init(voi
+@@ -1067,6 +1098,7 @@ static int __init ifx_pcie_bios_init(voi
+ return -ENOMEM;
+ }
+ ifx_pcie_controller[pcie_port].pcic.io_map_base = (unsigned long)io_map_base;
++ pci_load_of_ranges(&ifx_pcie_controller[pcie_port].pcic, node);
+
+ register_pci_controller(&ifx_pcie_controller[pcie_port].pcic);
+ /* XXX, clear error status */
+@@ -1083,6 +1115,30 @@ static int __init ifx_pcie_bios_init(voi
return 0;
}