]> git.sur5r.net Git - u-boot/commitdiff
arm: socfpga: socrates: Add eth0 alias to enable ethernet
authorStefan Roese <sr@denx.de>
Mon, 18 Apr 2016 12:22:05 +0000 (14:22 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 20 Apr 2016 09:28:45 +0000 (11:28 +0200)
This enables full ethernet usage, including U-Boot to write the board
specific MAC address (ethaddr) into the DT blob before passing it to
Linux.

Without this, the ethaddr is not detected in U-Boot at all, resulting
in this error upon bootup:

...
Model: EBV SOCrates
Net:
Error: ethernet@ff702000 address not set.
No ethernet found.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
arch/arm/dts/socfpga_cyclone5_socrates.dts

index 591d96c4120219ee7dbcfa4d4beeb08f0e36ab5f..d2ab3b3669af625b66b12e53aa2b6764eec016df 100644 (file)
        };
 
        aliases {
+               /*
+                * This allows the ethaddr uboot environment variable
+                * contents to be added to the gmac1 device tree blob.
+                */
+               ethernet0 = &gmac1;
                udc0 = &usb1;
        };