diff options
author | Jonas Karlman <jonas@kwiboo.se> | 2017-04-22 08:57:54 +0000 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-05-10 13:37:22 -0600 |
commit | ecc3bd73b35398d8337096b19493028a29ed038e (patch) | |
tree | 439f3ba0ddc72f0a4aa1f9c5b77ea059d645f21e /arch/arm/dts/rk3288-tinker.dts | |
parent | 8880efbd1ffd54bcddb427229ff925151a054257 (diff) | |
download | u-boot-ecc3bd73b35398d8337096b19493028a29ed038e.tar.gz |
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>
Diffstat (limited to 'arch/arm/dts/rk3288-tinker.dts')
-rw-r--r-- | arch/arm/dts/rk3288-tinker.dts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/dts/rk3288-tinker.dts b/arch/arm/dts/rk3288-tinker.dts index 22881cb785..ea2f715922 100644 --- a/arch/arm/dts/rk3288-tinker.dts +++ b/arch/arm/dts/rk3288-tinker.dts @@ -67,3 +67,10 @@ &gpio8 { u-boot,dm-pre-reloc; }; + +&i2c2 { + m24c08@50 { + compatible = "at,24c08", "i2c-eeprom"; + reg = <0x50>; + }; +}; |