mtd: spi-nor: otp: implement erase for Winbond and similar flashes
authorMichael Walle <michael@walle.cc>
Mon, 7 Jun 2021 11:27:44 +0000 (13:27 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 9 Jun 2021 18:04:16 +0000 (23:34 +0530)
commitc6ec3e1e3a853f9469c7d07b0fde0be4da8c3ba1
tree89036d0244d186aa59bd25578ca20befb1084e9c
parent388161ca45c911f566b71716bce5ff0119fb5522
mtd: spi-nor: otp: implement erase for Winbond and similar flashes

Winbond flashes with OTP support provide a command to erase the OTP
data. This might come in handy during development.

This was tested with a Winbond W25Q32JW on a LS1028A SoC with the
NXP FSPI controller.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/otp.c
drivers/mtd/spi-nor/winbond.c