openwrt-redmi-ax3000/target/linux/ipq50xx/patches/421-mtd-rawnand-winbond-add-support-for-W25N01GW.patch
2024-07-20 00:04:10 +08:00

27 lines
932 B
Diff

From 41d22a684adaaa54f379cd087a73aaa1859415fc Mon Sep 17 00:00:00 2001
From: hzy <hzyitc@outlook.com>
Date: Thu, 13 Jun 2024 22:09:57 +0800
Subject: [PATCH 1/1] mtd: rawnand: winbond: add support for W25N01GW
---
drivers/mtd/nand/raw/nand_ids.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c
index fd64d9f..0f1ef87 100644
--- a/drivers/mtd/nand/raw/nand_ids.c
+++ b/drivers/mtd/nand/raw/nand_ids.c
@@ -74,6 +74,9 @@ struct nand_flash_dev nand_flash_ids[] = {
{"GD5F1GQ5REYIH SPI NAND 1G 1.8V",
{ .id = {0xc8, 0x21} },
SZ_2K, SZ_128, SZ_128K, 0, 2, 64, NAND_ECC_INFO(4, SZ_512) },
+ {"W25N01GW SPI NAND 1.8V 1G-BIT",
+ { .id = {0xef, 0xba} },
+ SZ_2K, SZ_128, SZ_128K, 0, 2, 64, NAND_ECC_INFO(4, SZ_512) },
{"W25N01JW SPI NAND 1.8V 1G-BIT",
{ .id = {0xef, 0xbc} },
SZ_2K, SZ_128, SZ_128K, 0, 2, 64, NAND_ECC_INFO(4, SZ_512) },
--
2.40.1