riscv: sifive: fu540: Setup ethaddr env variable using OTP
authorAnup Patel <Anup.Patel@wdc.com>
Tue, 25 Jun 2019 06:31:44 +0000 (06:31 +0000)
committerAndes <uboot@andestech.com>
Fri, 19 Jul 2019 06:24:52 +0000 (14:24 +0800)
commit9f2a0c0f38079bdd2ecf40334a2f6fb5eed5a650
treee4c894114b6053c181c714d3d54fe972686fca49
parent8633edeb2a1de97f03cededf3c7fc8956bcec61e
riscv: sifive: fu540: Setup ethaddr env variable using OTP

This patch extends SiFive FU540 board support to setup ethaddr
env variable based on board serialnum read from OTP.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
board/sifive/fu540/fu540.c
configs/sifive_fu540_defconfig