[openwrt/openwrt] kernel: Add support for XM25QH64A and XM25QH128A SPI NOR flash

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 3 14:27:19 PDT 2018


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/ece815508a06ee114f549a7f0970740634fe2e62

commit ece815508a06ee114f549a7f0970740634fe2e62
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sat Mar 31 20:34:34 2018 +0200

    kernel: Add support for XM25QH64A and XM25QH128A SPI NOR flash
    
    These devices are produced by Wuhan Xinxin Semiconductor Manufacturing
    Corp. (XMC) and found on some routers from Chinese manufactures.
    
    The data sheets can be found here:
    http://www.xmcwh.com/Uploads/2018-03-01/5a9799e4cb355.pdf
    http://www.xmcwh.com/Uploads/2018-02-05/5a77e6dbe968b.pdf
    
    Closes: FS#1460
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 ...-Add-support-for-XM25QH64A-and-XM25QH128A.patch | 30 ++++++++++++++++++++++
 ...-Add-support-for-XM25QH64A-and-XM25QH128A.patch | 30 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/target/linux/generic/pending-4.14/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch b/target/linux/generic/pending-4.14/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch
new file mode 100644
index 0000000..b7361d2
--- /dev/null
+++ b/target/linux/generic/pending-4.14/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch
@@ -0,0 +1,30 @@
+From b02f3405c935a28200db26b63e42086057565cf4 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke at hauke-m.de>
+Date: Sat, 31 Mar 2018 20:09:54 +0200
+Subject: [PATCH] mtd: spi-nor: Add support for XM25QH64A and XM25QH128A
+
+These devices are produced by Wuhan Xinxin Semiconductor Manufacturing
+Corp. (XMC) and found on some routers from Chinese manufactures.
+
+The data sheets can be found here:
+http://www.xmcwh.com/Uploads/2018-03-01/5a9799e4cb355.pdf
+http://www.xmcwh.com/Uploads/2018-02-05/5a77e6dbe968b.pdf
+
+Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
+---
+ drivers/mtd/spi-nor/spi-nor.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -1181,6 +1181,10 @@ static const struct flash_info spi_nor_i
+ 	{ "3S400AN", S3AN_INFO(0x1f2400, 256, 264) },
+ 	{ "3S700AN", S3AN_INFO(0x1f2500, 512, 264) },
+ 	{ "3S1400AN", S3AN_INFO(0x1f2600, 512, 528) },
++
++	/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
++	{ "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
++	{ "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ 	{ },
+ };
+ 
diff --git a/target/linux/generic/pending-4.9/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch b/target/linux/generic/pending-4.9/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch
new file mode 100644
index 0000000..585d678
--- /dev/null
+++ b/target/linux/generic/pending-4.9/478-mtd-spi-nor-Add-support-for-XM25QH64A-and-XM25QH128A.patch
@@ -0,0 +1,30 @@
+From b02f3405c935a28200db26b63e42086057565cf4 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke at hauke-m.de>
+Date: Sat, 31 Mar 2018 20:09:54 +0200
+Subject: [PATCH] mtd: spi-nor: Add support for XM25QH64A and XM25QH128A
+
+These devices are produced by Wuhan Xinxin Semiconductor Manufacturing
+Corp. (XMC) and found on some routers from Chinese manufactures.
+
+The data sheets can be found here:
+http://www.xmcwh.com/Uploads/2018-03-01/5a9799e4cb355.pdf
+http://www.xmcwh.com/Uploads/2018-02-05/5a77e6dbe968b.pdf
+
+Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
+---
+ drivers/mtd/spi-nor/spi-nor.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -1166,6 +1166,10 @@ static const struct flash_info spi_nor_i
+ 	{ "3S400AN", S3AN_INFO(0x1f2400, 256, 264) },
+ 	{ "3S700AN", S3AN_INFO(0x1f2500, 512, 264) },
+ 	{ "3S1400AN", S3AN_INFO(0x1f2600, 512, 528) },
++
++	/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
++	{ "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
++	{ "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ 	{ },
+ };
+ 



More information about the lede-commits mailing list