Fresh pull from upstream
[librecmc/librecmc.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 --- a/drivers/mtd/spi-nor/spi-nor.c
13 +++ b/drivers/mtd/spi-nor/spi-nor.c
14 @@ -689,7 +689,7 @@ static const struct flash_info spi_nor_i
15         { "en25s64",    INFO(0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
16  
17         /* ESMT */
18 -       { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) },
19 +       { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) },
20         { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) },
21         { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) },
22