kernel: add missing config symbols to 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 131-dt-sunxi-add-emac-aliases.patch
1 From 2af807481169af627dc63f98b773c33d85020658 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <emilio@elopez.com.ar>
3 Date: Fri, 15 Nov 2013 15:26:44 -0300
4 Subject: [PATCH] ARM: sunxi: dt: add EMAC aliases
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 U-Boot uses the ethernet0 alias to locate the right node to fill in
10 the MAC address of the first ethernet interface. This patch adds the
11 alias on all the sunxi SoCs with EMAC. In this way, people using
12 ethernet in U-Boot (eg, for tftp) can keep a consistent address on both
13 U-Boot and Linux with no additional effort.
14
15 Signed-off-by: Emilio López <emilio@elopez.com.ar>
16 ---
17  arch/arm/boot/dts/sun4i-a10.dtsi  | 4 ++++
18  arch/arm/boot/dts/sun5i-a10s.dtsi | 4 ++++
19  arch/arm/boot/dts/sun7i-a20.dtsi  | 4 ++++
20  3 files changed, 12 insertions(+)
21
22 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
23 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
24 @@ -15,6 +15,10 @@
25  / {
26         interrupt-parent = <&intc>;
27  
28 +       aliases {
29 +               ethernet0 = &emac;
30 +       };
31 +
32         cpus {
33                 #address-cells = <1>;
34                 #size-cells = <0>;
35 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi
36 +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
37 @@ -16,6 +16,10 @@
38  / {
39         interrupt-parent = <&intc>;
40  
41 +       aliases {
42 +               ethernet0 = &emac;
43 +       };
44 +
45         cpus {
46                 cpu@0 {
47                         compatible = "arm,cortex-a8";
48 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
49 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
50 @@ -16,6 +16,10 @@
51  / {
52         interrupt-parent = <&gic>;
53  
54 +       aliases {
55 +               ethernet0 = &emac;
56 +       };
57 +
58         cpus {
59                 #address-cells = <1>;
60                 #size-cells = <0>;