diff options
author | John Crispin <john@openwrt.org> | 2015-07-07 13:43:47 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-07 13:43:47 +0000 |
commit | ff08b0957026645e436c3388aa3f3f0032765106 (patch) | |
tree | bd023d085ea8774e977bc7200bf396eb7b1dca78 /target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch | |
parent | 2658b33f68403dfc39b7cab6d27b9140284b6b92 (diff) | |
download | upstream-ff08b0957026645e436c3388aa3f3f0032765106.tar.gz upstream-ff08b0957026645e436c3388aa3f3f0032765106.tar.bz2 upstream-ff08b0957026645e436c3388aa3f3f0032765106.zip |
lantiq: Add support for linux 4.1
All (still relevant) patches were refresh.
The following patches were dropped because they are applied upstream:
- 0003-MIPS-lantiq-handle-vmmc-memory-reservation.patch
- 0005-MIPS-lantiq-add-reset-controller-api-support.patch
- 0006-MIPS-lantiq-reboot-gphy-on-restart.patch
- 0009-MIPS-lantiq-command-line-work-around.patch
- 0010-MIPS-lantiq-export-soc-type.patch
- 0011-lantiq-add-support-for-xrx200-firmware-depending-on-.patch
- 0037-MIPS-lantiq-move-eiu-init-after-irq_domain-register.patch
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 46216
Diffstat (limited to 'target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch b/target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch new file mode 100644 index 0000000000..26a3a65142 --- /dev/null +++ b/target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch @@ -0,0 +1,51 @@ +--- a/arch/mips/pci/ifxmips_pcie.c ++++ b/arch/mips/pci/ifxmips_pcie.c +@@ -18,6 +18,8 @@ + #include <linux/pci_regs.h> + #include <linux/module.h> + ++#include <linux/of_platform.h> ++ + #include "ifxmips_pcie.h" + #include "ifxmips_pcie_reg.h" + +@@ -1045,7 +1047,7 @@ pcie_rc_initialize(int pcie_port) + return 0; + } + +-static int __init ifx_pcie_bios_init(void) ++static int __init ifx_pcie_bios_probe(struct platform_device *pdev) + { + void __iomem *io_map_base; + int pcie_port; +@@ -1083,6 +1085,30 @@ static int __init ifx_pcie_bios_init(voi + + return 0; + } ++ ++static const struct of_device_id ifxmips_pcie_match[] = { ++ { .compatible = "lantiq,pcie-xrx200" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, ifxmips_pcie_match); ++ ++static struct platform_driver ltq_pci_driver = { ++ .probe = ifx_pcie_bios_probe, ++ .driver = { ++ .name = "pcie-xrx200", ++ .owner = THIS_MODULE, ++ .of_match_table = ifxmips_pcie_match, ++ }, ++}; ++ ++int __init ifx_pcie_bios_init(void) ++{ ++ int ret = platform_driver_register(<q_pci_driver); ++ if (ret) ++ pr_info("pcie-xrx200: Error registering platform driver!"); ++ return ret; ++} ++ + arch_initcall(ifx_pcie_bios_init); + + MODULE_LICENSE("GPL"); |