]> Pileus Git - ~andy/linux/commitdiff
arm: kirkwood: convert MPL CEC4 to use DT for the PCIe interface
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 May 2013 13:36:58 +0000 (15:36 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 27 May 2013 16:02:12 +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-mplcec4.dts
arch/arm/mach-kirkwood/board-mplcec4.c

index 758824118a9a8e22041817183449839f1c9c072e..90501cf129bbee8b648fa9d808c45cfb5a58a93e 100644 (file)
                        cd-gpios = <&gpio1 15 0>;
                        /* No WP GPIO */
                };
+
+               pcie-controller {
+                       status = "okay";
+
+                       pcie@1,0 {
+                               status = "okay";
+                       };
+               };
        };
 
        gpio-leds {
index 7d6dc669e17fb4dfc6338a5c7e1a129868ae5a0a..938712e248f1ffc04f9e2ff6eae5d7633da93e96 100644 (file)
@@ -29,7 +29,6 @@ void __init mplcec4_init(void)
         */
        kirkwood_ge00_init(&mplcec4_ge00_data);
        kirkwood_ge01_init(&mplcec4_ge01_data);
-       kirkwood_pcie_init(KW_PCIE0);
 }