提交 e751cce9 编写于 作者: E Emilio López 提交者: Maxime Ripard

ARM: sunxi: dt: add EMAC aliases

U-Boot uses the ethernet0 alias to locate the right node to fill in
the MAC address of the first ethernet interface. This patch adds the
alias on all the sunxi SoCs with EMAC. In this way, people using
ethernet in U-Boot (eg, for tftp) can keep a consistent address on both
U-Boot and Linux with no additional effort.
Signed-off-by: NEmilio López <emilio@elopez.com.ar>
Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
上级 b5d905c7
......@@ -15,6 +15,10 @@
/ {
interrupt-parent = <&intc>;
aliases {
ethernet0 = &emac;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
......
......@@ -16,6 +16,10 @@
/ {
interrupt-parent = <&intc>;
aliases {
ethernet0 = &emac;
};
cpus {
cpu@0 {
compatible = "arm,cortex-a8";
......
......@@ -16,6 +16,10 @@
/ {
interrupt-parent = <&gic>;
aliases {
ethernet0 = &emac;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册