]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: sifive: fu540: set serial environment variable from otp
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Mon, 12 Aug 2019 14:57:40 +0000 (07:57 -0700)
committerAndes <uboot@andestech.com>
Tue, 3 Sep 2019 01:29:54 +0000 (09:29 +0800)
commitcba0635386df71f7f39d940938811fdf279f83d2
tree922a6f163282a1e409c828b43474aa82dea4c05e
parent4dfea4b5cd68b86dd47d1333f1871a402087deaa
riscv: sifive: fu540: set serial environment variable from otp

This patch sets the serial# environment variable by reading the
board serial number from the OTP memory region.

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
board/sifive/fu540/fu540.c