You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
8 years ago
|
From 252c36bb9c7b98b356f033d16ea83d20fb8b4d3e Mon Sep 17 00:00:00 2001
|
||
|
From: Victor Shyba <victor1984@riseup.net>
|
||
|
Date: Mon, 2 Jan 2017 22:34:30 -0300
|
||
|
Subject: [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa
|
||
8 years ago
|
|
||
|
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>
|
||
8 years ago
|
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
|
||
8 years ago
|
---
|
||
|
drivers/mtd/spi-nor/spi-nor.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/drivers/mtd/spi-nor/spi-nor.c
|
||
|
+++ b/drivers/mtd/spi-nor/spi-nor.c
|
||
8 years ago
|
@@ -956,7 +956,7 @@ static const struct flash_info spi_nor_i
|
||
8 years ago
|
{ "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) },
|
||
|
|
||
8 years ago
|
/* Everspin */
|
||
|
{ "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
|