[U-Boot] [PATCH v3 2/2] rockchip: tinker: set ethaddr in late init

sjg at google.com sjg at google.com
Tue May 2 11:39:37 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>

Applied to u-boot-rockchip/next, thanks!


More information about the U-Boot mailing list