kirkwood: add linux 3.10 support
[openwrt.git] / target / linux / kirkwood / patches-3.10 / 0013-arm-kirkwood-convert-MPL-CEC4-to-use-DT-for-the-PCIe.patch
1 From b3e3851d461779cd94a2efe4484f01175fcb460e Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 10 Apr 2013 23:05:32 +0200
4 Subject: [PATCH 13/29] arm: kirkwood: convert MPL CEC4 to use DT for the PCIe
5  interface
6
7 Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
8 of the legacy PCIe code, since it allows to describe the PCIe
9 interfaces in the Device Tree.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13  arch/arm/boot/dts/kirkwood-mplcec4.dts | 8 ++++++++
14  arch/arm/mach-kirkwood/board-mplcec4.c | 1 -
15  2 files changed, 8 insertions(+), 1 deletion(-)
16
17 diff --git a/arch/arm/boot/dts/kirkwood-mplcec4.dts b/arch/arm/boot/dts/kirkwood-mplcec4.dts
18 index 7588241..90501cf 100644
19 --- a/arch/arm/boot/dts/kirkwood-mplcec4.dts
20 +++ b/arch/arm/boot/dts/kirkwood-mplcec4.dts
21 @@ -139,6 +139,14 @@
22                         cd-gpios = <&gpio1 15 0>;
23                         /* No WP GPIO */
24                 };
25 +
26 +               pcie-controller {
27 +                       status = "okay";
28 +
29 +                       pcie@1,0 {
30 +                               status = "okay";
31 +                       };
32 +               };
33         };
34  
35         gpio-leds {
36 diff --git a/arch/arm/mach-kirkwood/board-mplcec4.c b/arch/arm/mach-kirkwood/board-mplcec4.c
37 index 7d6dc66..938712e 100644
38 --- a/arch/arm/mach-kirkwood/board-mplcec4.c
39 +++ b/arch/arm/mach-kirkwood/board-mplcec4.c
40 @@ -29,7 +29,6 @@ void __init mplcec4_init(void)
41          */
42         kirkwood_ge00_init(&mplcec4_ge00_data);
43         kirkwood_ge01_init(&mplcec4_ge01_data);
44 -       kirkwood_pcie_init(KW_PCIE0);
45  }
46  
47  
48 -- 
49 1.8.4.rc1
50