fixup! ramips: add support for Tenbay WR1800K
authorDavid Bauer <[email protected]>
Wed, 19 May 2021 18:39:52 +0000 (20:39 +0200)
committerDavid Bauer <[email protected]>
Wed, 26 May 2021 09:39:36 +0000 (11:39 +0200)
target/linux/ramips/patches-5.4/405-mtd-spi-nor-Add-support-for-BoHong-bh25q128as.patch

index 3aab5b7df68891b18d80708dd8cc9f31529fa162..728876322ca0365917183eba0c895415f170632d 100644 (file)
@@ -19,27 +19,16 @@ Signed-off-by: David Bauer <[email protected]>
  4 files changed, 24 insertions(+)
  create mode 100644 drivers/mtd/spi-nor/bohong.c
 
---- /dev/null
-+++ b/drivers/mtd/spi-nor/bohong.c
-@@ -0,0 +1,21 @@
-+// SPDX-License-Identifier: GPL-2.0
-+/*
-+ * Copyright (C) 2005, Intec Automation Inc.
-+ * Copyright (C) 2014, Freescale Semiconductor, Inc.
-+ */
-+
-+#include <linux/mtd/spi-nor.h>
-+
-+#include "core.h"
-+
-+static const struct flash_info bohong_parts[] = {
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -2233,6 +2233,10 @@ static const struct flash_info spi_nor_i
+       { "at45db081d", INFO(0x1f2500, 0, 64 * 1024, 16, SECT_4K) },
 +      /* BoHong Microelectronics */
 +      { "bh25q128as", INFO(0x684018, 0, 64 * 1024, 256,
-+                          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
-+};
++                      SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 +
-+const struct spi_nor_manufacturer spi_nor_bohong = {
-+      .name = "bohong",
-+      .parts = bohong_parts,
-+      .nparts = ARRAY_SIZE(bohong_parts),
-+};
+       /* EON -- en25xxx */
+       { "en25f32",    INFO(0x1c3116, 0, 64 * 1024,   64, SECT_4K) },
+       { "en25p32",    INFO(0x1c2016, 0, 64 * 1024,   64, 0) },