OSDN Git Service

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 7588241..90501cf 100644 (file)
                        cd-gpios = <&gpio1 15 0>;
                        /* No WP GPIO */
                };
+
+               pcie-controller {
+                       status = "okay";
+
+                       pcie@1,0 {
+                               status = "okay";
+                       };
+               };
        };
 
        gpio-leds {
index 7d6dc66..938712e 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);
 }