mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-07 14:52:04 +08:00
generic: add spinand W25N01GWZEIG support
This commit is contained in:
parent
98e8117738
commit
a87372b08f
@ -0,0 +1,12 @@
|
|||||||
|
--- a/drivers/mtd/nand/raw/nand_ids.c
|
||||||
|
+++ b/drivers/mtd/nand/raw/nand_ids.c
|
||||||
|
@@ -67,6 +67,9 @@ struct nand_flash_dev nand_flash_ids[] =
|
||||||
|
{"TH58NVG3S0HBAI4 8G 3.3V 8-bit",
|
||||||
|
{ .id = {0x98, 0xd3, 0x91, 0x26, 0x76} },
|
||||||
|
SZ_4K, SZ_1K, SZ_256K, 0, 5, 256, NAND_ECC_INFO(8, SZ_512)},
|
||||||
|
+ {"W25N01GWZEIG SPI NAND 1G 1.8V",
|
||||||
|
+ { .id = {0xef, 0xba} },
|
||||||
|
+ SZ_2K, SZ_128, SZ_128K, 0, 2, 64, NAND_ECC_INFO(4, SZ_512)},
|
||||||
|
|
||||||
|
LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS),
|
||||||
|
LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS),
|
@ -0,0 +1,13 @@
|
|||||||
|
--- a/drivers/mtd/mtdblock.c
|
||||||
|
+++ b/drivers/mtd/mtdblock.c
|
||||||
|
@@ -261,10 +261,6 @@ static int mtdblock_open(struct mtd_blkt
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (mtd_type_is_nand(mbd->mtd))
|
||||||
|
- pr_warn_ratelimited("%s: MTD device '%s' is NAND, please consider using UBI block devices instead.\n",
|
||||||
|
- mbd->tr->name, mbd->mtd->name);
|
||||||
|
-
|
||||||
|
/* OK, it's not open. Create cache info for it */
|
||||||
|
mtdblk->count = 1;
|
||||||
|
mutex_init(&mtdblk->cache_mutex);
|
Loading…
x
Reference in New Issue
Block a user