[PATCH] ARM: dts: cygnus: add ethernet0 alias
Clément Péron
peron.clem at gmail.com
Thu May 3 02:56:18 PDT 2018
In order to avoid Linux generating a random mac address on every boot,
add an ethernet0 alias that will allow u-boot to patch the dtb with
the MAC address.
Signed-off-by: Clément Péron <peron.clem at gmail.com>
---
arch/arm/boot/dts/bcm-cygnus.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
index 9fe4f5a6379e..1a05b8f48b54 100644
--- a/arch/arm/boot/dts/bcm-cygnus.dtsi
+++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
@@ -41,6 +41,10 @@
model = "Broadcom Cygnus SoC";
interrupt-parent = <&gic>;
+ aliases {
+ ethernet0 = ð0;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
--
2.17.0
More information about the linux-arm-kernel
mailing list