7a42c78a4ce41d85a0cefee90115541fe295e898
[openwrt/openwrt.git] / target / linux / ramips / patches-4.14 / 302-spi-nor-add-gd25q512.patch
1 --- a/drivers/mtd/spi-nor/spi-nor.c
2 +++ b/drivers/mtd/spi-nor/spi-nor.c
3 @@ -1060,6 +1060,11 @@ static const struct flash_info spi_nor_i
4 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
5 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
6 },
7 + {
8 + "gd25q512", INFO(0xc84020, 0, 64 * 1024, 1024,
9 + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
10 + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4B_OPCODES)
11 + },
12
13 /* Intel/Numonyx -- xxxs33b */
14 { "160s33b", INFO(0x898911, 0, 64 * 1024, 32, 0) },