be78682193be3646b3536b91dcd9f9e5e4ab1652
[openwrt/staging/yousong.git] /
1 From 252c36bb9c7b98b356f033d16ea83d20fb8b4d3e Mon Sep 17 00:00:00 2001
2 From: Victor Shyba <victor1984@riseup.net>
3 Date: Mon, 2 Jan 2017 22:34:30 -0300
4 Subject: [PATCH] mtd: spi-nor: Add lock/unlock support for f25l32pa
5
6 This chip has write protection enabled on power-up,
7 so this flag is necessary to support write operations.
8
9 Signed-off-by: Victor Shyba <victor1984@riseup.net>
10 Acked-by: Marek Vasut <marek.vasut@gmail.com>
11 Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
12 ---
13 drivers/mtd/spi-nor/spi-nor.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/mtd/spi-nor/spi-nor.c
17 +++ b/drivers/mtd/spi-nor/spi-nor.c
18 @@ -956,7 +956,7 @@ static const struct flash_info spi_nor_i
19 { "en25s64", INFO(0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
20
21 /* ESMT */
22 - { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
23 + { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
24
25 /* Everspin */
26 { "mr25h256", CAT25_INFO( 32 * 1024, 1, 256, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },