diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-02-03 16:08:09 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-08 10:10:49 -0500 |
commit | 859f1437156b60dc0655917d067fec566885ac96 (patch) | |
tree | 40b56f028ec9b06dbdb5ec39089e6bdc39e32541 | |
parent | 8e7cba048baae68ee0916a8f52b4304277328d5e (diff) | |
download | u-boot-imx-859f1437156b60dc0655917d067fec566885ac96.zip u-boot-imx-859f1437156b60dc0655917d067fec566885ac96.tar.gz u-boot-imx-859f1437156b60dc0655917d067fec566885ac96.tar.bz2 |
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>
-rw-r--r-- | board/raspberrypi/rpi/rpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 89d78cc..7f4fe64 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; } |