generic: mtd: add lock/unlock support for f25l32pa
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-4.4 / 479-enable_mtd_has_lock_for_f25l32pa.patch
1 mtd: spi-nor: Add lock/unlock support for f25l32pa
2
3 This chip has write protection enabled on power-up,
4 so this flag is necessary to support write operations.
5
6 Signed-off-by: Victor Shyba <victor1984@riseup.net>
7 Acked-by: Marek Vasut <marek.vasut@gmail.com>
8 ---
9 drivers/mtd/spi-nor/spi-nor.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
13 index da7cd69..f325925 100644
14 --- a/drivers/mtd/spi-nor/spi-nor.c
15 +++ b/drivers/mtd/spi-nor/spi-nor.c
16 @@ -689,7 +689,7 @@ static const struct flash_info spi_nor_i
17 { "en25s64", INFO(0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
18
19 /* ESMT */
20 - { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
21 + { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
22 { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) },
23 { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) },
24