From f65b0afadb5398d1c1957c9b6a1c3bc735ff7a60 Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy Date: Sun, 7 Mar 2021 19:31:50 -0800 Subject: ramips: move spi-nor-add-gd25q512 patch to generic A SPI NOR flash should not be target-specific, so move it to generic in case another platform needs to use it. Signed-off-by: Ilya Lipnitskiy --- .../generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch (limited to 'target/linux/generic/pending-5.10') diff --git a/target/linux/generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch b/target/linux/generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch new file mode 100644 index 0000000000..6f41546964 --- /dev/null +++ b/target/linux/generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch @@ -0,0 +1,12 @@ +--- a/drivers/mtd/spi-nor/gigadevice.c ++++ b/drivers/mtd/spi-nor/gigadevice.c +@@ -53,6 +53,9 @@ static const struct flash_info gigadevic + SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | + SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6) + .fixups = &gd25q256_fixups }, ++ { "gd25q512", INFO(0xc84020, 0, 64 * 1024, 1024, ++ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | ++ SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4B_OPCODES) }, + }; + + const struct spi_nor_manufacturer spi_nor_gigadevice = { -- cgit v1.2.3