[U-Boot] [PATCH 4/5] sf: Add status register protect for Winbond
Bin Meng
bmeng.cn at gmail.com
Tue Oct 11 04:05:27 CEST 2016
On Tue, Oct 11, 2016 at 2:58 AM, George McCollister
<george.mccollister at gmail.com> wrote:
> Winbond parts such as W25Q64FV and Spansion parts such as S25FL128S
> support two status register protection bits. Implement sr_protect for
> Winbond and Spansion devices.
>
> -------------------------------------------------------
> | SRP1 | SRP0 | Method | Description |
> -------------------------|-----------------------------
> | 0 | 0 | Software | Blocked until write enable |
> | 0 | 1 | Hardware | Blocked if WP pin is low |
> | 1 | 0 | Power | Blocked until power down |
> | 1 | 1 | OTP | Blocked permanently |
> -------------------------------------------------------
>
> Not all devices support OTP.
>
> Signed-off-by: George McCollister <george.mccollister at gmail.com>
> ---
> drivers/mtd/spi/sf_internal.h | 1 +
> drivers/mtd/spi/spi_flash.c | 57 +++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list