summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-02-03 16:08:09 +0100
committerTom Rini <trini@konsulko.com>2016-02-08 10:10:49 -0500
commit859f1437156b60dc0655917d067fec566885ac96 (patch)
tree40b56f028ec9b06dbdb5ec39089e6bdc39e32541 /board
parent8e7cba048baae68ee0916a8f52b4304277328d5e (diff)
rpi: set ethaddr as well
Let's set "ethaddr" when we get the ethernet address too, so that fdt_fixup_ethernet() sets the address in the device tree and the Linux driver can pick it up. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'board')
-rw-r--r--board/raspberrypi/rpi/rpi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 89d78cc6c4..7f4fe64385 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -259,6 +259,9 @@ static void set_usbethaddr(void)
eth_setenv_enetaddr("usbethaddr", msg->get_mac_address.body.resp.mac);
+ if (!getenv("ethaddr"))
+ setenv("ethaddr", getenv("usbethaddr"));
+
return;
}