]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 May 2013 13:36:57 +0000 (15:36 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 27 May 2013 16:02:11 +0000 (16:02 +0000)
Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-iconnect.dts
arch/arm/mach-kirkwood/board-iconnect.c

index 12ccf74ac3c417e6de31fa5c33a2ab731f136220..e591d5df769f11af23c0358035ebbd9786628c64 100644 (file)
                                reg = <0x980000 0x1f400000>;
                        };
                };
+
+               pcie-controller {
+                       status = "okay";
+
+                       pcie@1,0 {
+                               status = "okay";
+                       };
+               };
        };
 
        gpio-leds {
index c8ebde4919e26fa4bf1db5eb5e8556e2d63ddda9..98b5ad1bba90cc0f4f985043cfd2bebd56c562b3 100644 (file)
@@ -22,11 +22,3 @@ void __init iconnect_init(void)
 {
        kirkwood_ge00_init(&iconnect_ge00_data);
 }
-
-static int __init iconnect_pci_init(void)
-{
-       if (of_machine_is_compatible("iom,iconnect"))
-               kirkwood_pcie_init(KW_PCIE0);
-       return 0;
-}
-subsys_initcall(iconnect_pci_init);