mtd: spi-nor: Add lock/unlock support for f25l32pa
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Feb 12 18:59:10 PST 2017
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fcf690a22b2bd71a74ae25f048ec3f9b221cd12f
Commit: fcf690a22b2bd71a74ae25f048ec3f9b221cd12f
Parent: ba3ae6a1d4c78fce3b352b8bf026ada40b22117c
Author: Victor Shyba <victor1984 at riseup.net>
AuthorDate: Mon Jan 2 22:34:30 2017 -0300
Committer: Cyrille Pitchen <cyrille.pitchen at atmel.com>
CommitDate: Fri Feb 10 13:56:16 2017 +0100
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 at riseup.net>
Acked-by: Marek Vasut <marek.vasut at gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
---
drivers/mtd/spi-nor/spi-nor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index dc19c3f..5f8b475 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) },
More information about the linux-mtd-cvs
mailing list