ar71xx: add support for Winbond W25Q128JVSIM Flash kitchensink-201808
authorKuba Ruks <krux2222@gmail.com>
Tue, 29 May 2018 13:26:31 +0000 (15:26 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Sat, 25 Aug 2018 11:30:20 +0000 (13:30 +0200)
Signed-off-by: Kuba Ruks <krux2222@gmail.com>
target/linux/ar71xx/patches-4.9/462-mtd-add-winbond-flash.patch [new file with mode: 0644]

diff --git a/target/linux/ar71xx/patches-4.9/462-mtd-add-winbond-flash.patch b/target/linux/ar71xx/patches-4.9/462-mtd-add-winbond-flash.patch
new file mode 100644 (file)
index 0000000..4ed9f0e
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -1153,6 +1153,7 @@ static const struct flash_info spi_nor_i
+       { "w25q80bl", INFO(0xef4014, 0, 64 * 1024,  16, SECT_4K) },
+       { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },
+       { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K) },
++      { "W25Q128JVSIM", INFO(0xef7018, 0x0,  64 * 1024,   256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+       /* Catalyst / On Semiconductor -- non-JEDEC */
+       { "cat25c11", CAT25_INFO(  16, 8, 16, 1, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },