[U-Boot] [PATCH v3 0/2] rockchip: tinker: set ethaddr in late init
Jonas Karlman
jonas at kwiboo.se
Sat Apr 22 08:57:27 UTC 2017
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.
Changes in v3:
- Add i2c_eeprom_{read,write} functions
- 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
Jonas Karlman (2):
i2c_eeprom: add read and write functions
rockchip: tinker: set ethaddr in late init
arch/arm/dts/rk3288-tinker.dts | 7 ++++++
board/rockchip/tinker_rk3288/tinker-rk3288.c | 28 ++++++++++++++++++++++++
configs/tinker-rk3288_defconfig | 3 +++
drivers/misc/i2c_eeprom.c | 32 ++++++++++++++++++++++------
include/i2c_eeprom.h | 24 +++++++++++++++++++++
5 files changed, 88 insertions(+), 6 deletions(-)
--
2.11.0
More information about the U-Boot
mailing list