apm821xx: switch to pending xhci-pci-renesas solution
[openwrt/staging/chunkeey.git] / target / linux / generic / pending-4.19 / 475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch
1 From: Robert Marko <robimarko@gmail.com>
2 To: linux-mtd@lists.infradead.org
3 Subject: mtd: spi-nor: Add Winbond w25q128jv support
4 Date: Mon, 25 Jun 2018 13:17:48 +0200
5
6 Datasheet:
7 http://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
8
9 Testing done on Mikrotik Routerboard wAP R board.
10 It does not support Dual or Quad modes.
11
12 Signed-off-by: Robert Marko <robimarko@gmail.com>
13 ---
14
15 Changes in v2:
16 - Correct the title
17 ---
18 drivers/mtd/spi-nor/spi-nor.c | 5 +++++
19 1 file changed, 5 insertions(+)
20
21 --- a/drivers/mtd/spi-nor/spi-nor.c
22 +++ b/drivers/mtd/spi-nor/spi-nor.c
23 @@ -1241,6 +1241,11 @@ static const struct flash_info spi_nor_i
24 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
25 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
26 },
27 + {
28 + "w25q128jv", INFO(0xef7018, 0, 64 * 1024, 256,
29 + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
30 + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
31 + },
32 { "w25q80", INFO(0xef5014, 0, 64 * 1024, 16, SECT_4K) },
33 { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) },
34 { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },