gpio-nct5104d: fix compilation with kernel 6.6
[openwrt/openwrt.git] / target / linux / generic / pending-6.1 / 484-mtd-spi-nor-add-esmt-f25l16pa.patch
1 From 87363cc0e522de3294ea6ae10fb468d2a8d6fb2f Mon Sep 17 00:00:00 2001
2 From: OpenWrt community <openwrt-devel@lists.openwrt.org>
3 Date: Wed, 13 Jul 2022 12:17:21 +0200
4 Subject: [PATCH] spi-nor/esmt.c: add esmt f25l16pa
5
6 This fixes support for Dongwon T&I DW02-412H which uses F25L16PA(2S)
7 flash.
8
9 ---
10 drivers/mtd/spi-nor/esmt.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13 --- a/drivers/mtd/spi-nor/esmt.c
14 +++ b/drivers/mtd/spi-nor/esmt.c
15 @@ -10,6 +10,9 @@
16
17 static const struct flash_info esmt_nor_parts[] = {
18 /* ESMT */
19 + { "f25l16pa-2s", INFO(0x8c2115, 0, 64 * 1024, 32)
20 + FLAGS(SPI_NOR_HAS_LOCK)
21 + NO_SFDP_FLAGS(SECT_4K) },
22 { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64)
23 FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE)
24 NO_SFDP_FLAGS(SECT_4K) },