generic: Convert incorrect generic/5.10 patches
[openwrt/staging/ansuel.git] / target / linux / generic / pending-5.10 / 483-mtd-spi-nor-add-gd25q512.patch
1 From: Roman Yeryomin <roman@advem.lv>
2 Subject: mtd/spi-nor/gigadevice: Add gd25q512 SPI NOR flash
3
4 Submitted-by: Roman Yeryomin <roman@advem.lv>
5 Submitted-by: John Crispin <john@phrozen.org>
6 ---
7 drivers/mtd/spi-nor/gigadevice.c | 3 +++
8 1 files changed, 3 insertions(+)
9
10 --- a/drivers/mtd/spi-nor/gigadevice.c
11 +++ b/drivers/mtd/spi-nor/gigadevice.c
12 @@ -53,6 +53,9 @@ static const struct flash_info gigadevic
13 SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK |
14 SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
15 .fixups = &gd25q256_fixups },
16 + { "gd25q512", INFO(0xc84020, 0, 64 * 1024, 1024,
17 + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
18 + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4B_OPCODES) },
19 };
20
21 const struct spi_nor_manufacturer spi_nor_gigadevice = {