kernel: update 3.14 to 3.14.18
[openwrt.git] / target / linux / sunxi / patches-3.14 / 126-dt-sun7i-add-eth-alias-for-gmac.patch
1 From 614b4b996be81daca9d8333e1ac163d23e1701c4 Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Mon, 10 Feb 2014 18:35:54 +0800
4 Subject: [PATCH] ARM: dts: sun7i: Add ethernet alias for GMAC
5
6 All Allwinner A20 boards we support can only use either EMAC or GMAC,
7 as they share the same pins. As we have switched all supported to
8 GMAC, we should alias GMAC (the active controller) as ethernet0,
9 so u-boot will insert the MAC address for the correct controller.
10
11 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
12 ---
13  arch/arm/boot/dts/sun7i-a20.dtsi | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -17,7 +17,7 @@
19         interrupt-parent = <&gic>;
20  
21         aliases {
22 -               ethernet0 = &emac;
23 +               ethernet0 = &gmac;
24                 serial0 = &uart0;
25                 serial1 = &uart1;
26                 serial2 = &uart2;