summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-01-02 22:34:30 -0300
committerCyrille Pitchen <cyrille.pitchen@atmel.com>2017-02-10 13:56:16 +0100
commitfcf690a22b2bd71a74ae25f048ec3f9b221cd12f (patch)
tree19995d4370e5c23943a968e4385021ad500314b4 /drivers/mtd
parentba3ae6a1d4c78fce3b352b8bf026ada40b22117c (diff)
downloadlinux-rpi-fcf690a22b2bd71a74ae25f048ec3f9b221cd12f.tar.gz
linux-rpi-fcf690a22b2bd71a74ae25f048ec3f9b221cd12f.tar.bz2
linux-rpi-fcf690a22b2bd71a74ae25f048ec3f9b221cd12f.zip
mtd: spi-nor: Add lock/unlock support for f25l32pa
This chip has write protection enabled on power-up, so this flag is necessary to support write operations. Signed-off-by: Victor Shyba <victor1984@riseup.net> Acked-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index dc19c3f82cf6..5f8b475255cd 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -956,7 +956,7 @@ static const struct flash_info spi_nor_ids[] = {
{ "en25s64", INFO(0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
/* ESMT */
- { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
+ { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
/* Everspin */
{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },