[U-Boot] [PATCH v3 2/2] rockchip: tinker: set ethaddr in late init
Simon Glass
sjg at chromium.org
Sat Apr 29 00:26:41 UTC 2017
On 22 April 2017 at 02:57, Jonas Karlman <jonas at kwiboo.se> wrote:
> 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 at 50.
> Same as /etc/init.d/rockchip.sh on Tinker OS.
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> ---
>
> Changes in v3:
> - Use uclass_first_device_err() to find eeprom
> - Use i2c_eeprom_read() to read eeprom
>
> Changes in v2:
> - Change to use i2c_eeprom device driver
>
> arch/arm/dts/rk3288-tinker.dts | 7 +++++++
> board/rockchip/tinker_rk3288/tinker-rk3288.c | 28 ++++++++++++++++++++++++++++
> configs/tinker-rk3288_defconfig | 3 +++
> 3 files changed, 38 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list