]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: tinker: set ethaddr in late init
authorJonas Karlman <jonas@kwiboo.se>
Sat, 22 Apr 2017 08:57:54 +0000 (08:57 +0000)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:22 +0000 (13:37 -0600)
commitecc3bd73b35398d8337096b19493028a29ed038e
tree439f3ba0ddc72f0a4aa1f9c5b77ea059d645f21e
parent8880efbd1ffd54bcddb427229ff925151a054257
rockchip: tinker: set ethaddr in late init

Set ethernet mac address in late init for Tinker Board,
prevents getting a random mac address each boot.

Read mac address from eeprom, first 6 bytes from m24c08@50.
Same as /etc/init.d/rockchip.sh on Tinker OS.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3288-tinker.dts
board/rockchip/tinker_rk3288/tinker-rk3288.c
configs/tinker-rk3288_defconfig