kirkwood: update patches and configuration (3.10)
[openwrt/svn-archive/archive.git] / target / linux / kirkwood / patches-3.10 / 0013-arm-kirkwood-convert-MPL-CEC4-to-use-DT-for-the-PCIe.patch
1 From b12363b0a393e2751395af002bf9ab192c1140c1 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 15 May 2013 15:36:58 +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 Signed-off-by: Jason Cooper <jason@lakedaemon.net>
13 ---
14 arch/arm/boot/dts/kirkwood-mplcec4.dts | 8 ++++++++
15 arch/arm/mach-kirkwood/board-mplcec4.c | 1 -
16 2 files changed, 8 insertions(+), 1 deletion(-)
17
18 --- a/arch/arm/boot/dts/kirkwood-mplcec4.dts
19 +++ b/arch/arm/boot/dts/kirkwood-mplcec4.dts
20 @@ -139,6 +139,14 @@
21 cd-gpios = <&gpio1 15 0>;
22 /* No WP GPIO */
23 };
24 +
25 + pcie-controller {
26 + status = "okay";
27 +
28 + pcie@1,0 {
29 + status = "okay";
30 + };
31 + };
32 };
33
34 gpio-leds {
35 --- a/arch/arm/mach-kirkwood/board-mplcec4.c
36 +++ b/arch/arm/mach-kirkwood/board-mplcec4.c
37 @@ -29,7 +29,6 @@ void __init mplcec4_init(void)
38 */
39 kirkwood_ge00_init(&mplcec4_ge00_data);
40 kirkwood_ge01_init(&mplcec4_ge01_data);
41 - kirkwood_pcie_init(KW_PCIE0);
42 }
43
44