riscv: sifive_u: Instantiate OTP memory with a serial number
commit5461c4fefed627eac9e1cadfb5754fc985d6df89
authorBin Meng <bmeng.cn@gmail.com>
Fri, 6 Sep 2019 16:20:16 +0000 (6 09:20 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:49 +0000 (17 08:42 -0700)
treef0dad175201f75ce33e365024906b2b978caf832
parent9fb45c62ae88726eb472656ae90683098473041a
riscv: sifive_u: Instantiate OTP memory with a serial number

This adds an OTP memory with a given serial number to the sifive_u
machine. With such support, the upstream U-Boot for sifive_fu540
boots out of the box on the sifive_u machine.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/sifive_u.c
include/hw/riscv/sifive_u.h