Re: [RFC PATCH v3 2/2] hw/riscv: sifive_u: Add write-once protection.

2020-08-26 Thread Bin Meng
On Wed, Aug 19, 2020 at 1:09 AM Green Wan wrote: > > Add array to store the 'written' status for all bit of OTP to block > the write operation to the same bit. Ignore the control register > offset from 0x0 to 0x38 of OTP memory mapping. nits: please remove the ending period in the commit title

[RFC PATCH v3 2/2] hw/riscv: sifive_u: Add write-once protection.

2020-08-18 Thread Green Wan
Add array to store the 'written' status for all bit of OTP to block the write operation to the same bit. Ignore the control register offset from 0x0 to 0x38 of OTP memory mapping. Signed-off-by: Green Wan --- hw/riscv/sifive_u_otp.c | 21 +