sunxi: update pcDuino3 profile to the new u-boot
[15.05/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 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
17 index 679dc50..bfc3a95 100644
18 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
19 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
20 @@ -17,7 +17,7 @@
21         interrupt-parent = <&gic>;
22  
23         aliases {
24 -               ethernet0 = &emac;
25 +               ethernet0 = &gmac;
26                 serial0 = &uart0;
27                 serial1 = &uart1;
28                 serial2 = &uart2;
29 -- 
30 2.0.3
31