summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/sst.c
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2020-12-03 17:29:53 +0100
committerVignesh Raghavendra <vigneshr@ti.com>2020-12-07 22:57:29 +0530
commit989d4b72bae3b05c1564d38e71e18f65b12734fb (patch)
treea54f4d950927fed3560791bb911f5cfabddece6c /drivers/mtd/spi-nor/sst.c
parent294cca6ce5cf5b15ce4ebda4c266b4a849735c65 (diff)
downloadlinux-989d4b72bae3b05c1564d38e71e18f65b12734fb.tar.gz
linux-989d4b72bae3b05c1564d38e71e18f65b12734fb.tar.bz2
linux-989d4b72bae3b05c1564d38e71e18f65b12734fb.zip
mtd: spi-nor: sst: fix BPn bits for the SST25VF064C
This flash part actually has 4 block protection bits. Please note, that this patch is just based on information of the datasheet of the datasheet and wasn't tested. Fixes: 3e0930f109e7 ("mtd: spi-nor: Rework the disabling of block write protection") Reported-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20201203162959.29589-2-michael@walle.cc
Diffstat (limited to 'drivers/mtd/spi-nor/sst.c')
-rw-r--r--drivers/mtd/spi-nor/sst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/sst.c b/drivers/mtd/spi-nor/sst.c
index e0af6d25d573..0ab07624fb73 100644
--- a/drivers/mtd/spi-nor/sst.c
+++ b/drivers/mtd/spi-nor/sst.c
@@ -18,7 +18,8 @@ static const struct flash_info sst_parts[] = {
SECT_4K | SST_WRITE) },
{ "sst25vf032b", INFO(0xbf254a, 0, 64 * 1024, 64,
SECT_4K | SST_WRITE) },
- { "sst25vf064c", INFO(0xbf254b, 0, 64 * 1024, 128, SECT_4K) },
+ { "sst25vf064c", INFO(0xbf254b, 0, 64 * 1024, 128,
+ SECT_4K | SPI_NOR_4BIT_BP) },
{ "sst25wf512", INFO(0xbf2501, 0, 64 * 1024, 1,
SECT_4K | SST_WRITE) },
{ "sst25wf010", INFO(0xbf2502, 0, 64 * 1024, 2,