mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
kernel: add gigadevice GD5FxGQxUExxH spi-nand support
This commit is contained in:
parent
826cdd3f76
commit
9194761ed3
@ -0,0 +1,39 @@
|
|||||||
|
--- a/drivers/mtd/nand/spi/gigadevice.c
|
||||||
|
+++ b/drivers/mtd/nand/spi/gigadevice.c
|
||||||
|
@@ -491,6 +491,36 @@ static const struct spinand_info gigadev
|
||||||
|
SPINAND_HAS_QE_BIT,
|
||||||
|
SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
|
||||||
|
gd5fxgq4uexxg_ecc_get_status)),
|
||||||
|
+ SPINAND_INFO("GD5F1GQ5UExxH",
|
||||||
|
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x31),
|
||||||
|
+ NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
|
||||||
|
+ NAND_ECCREQ(4, 512),
|
||||||
|
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants_1gq5,
|
||||||
|
+ &write_cache_variants,
|
||||||
|
+ &update_cache_variants),
|
||||||
|
+ SPINAND_HAS_QE_BIT,
|
||||||
|
+ SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
|
||||||
|
+ gd5fxgq5xexxg_ecc_get_status)),
|
||||||
|
+ SPINAND_INFO("GD5F2GQ5UExxH",
|
||||||
|
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x32),
|
||||||
|
+ NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
|
||||||
|
+ NAND_ECCREQ(4, 512),
|
||||||
|
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants_2gq5,
|
||||||
|
+ &write_cache_variants,
|
||||||
|
+ &update_cache_variants),
|
||||||
|
+ SPINAND_HAS_QE_BIT,
|
||||||
|
+ SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
|
||||||
|
+ gd5fxgq5xexxg_ecc_get_status)),
|
||||||
|
+ SPINAND_INFO("GD5F4GQ6UExxH",
|
||||||
|
+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
|
||||||
|
+ NAND_MEMORG(1, 2048, 64, 64, 4096, 80, 1, 1, 1),
|
||||||
|
+ NAND_ECCREQ(4, 512),
|
||||||
|
+ SPINAND_INFO_OP_VARIANTS(&read_cache_variants_2gq5,
|
||||||
|
+ &write_cache_variants,
|
||||||
|
+ &update_cache_variants),
|
||||||
|
+ SPINAND_HAS_QE_BIT,
|
||||||
|
+ SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
|
||||||
|
+ gd5fxgq5xexxg_ecc_get_status)),
|
||||||
|
SPINAND_INFO("GD5F4GM8RExxG",
|
||||||
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x85),
|
||||||
|
NAND_MEMORG(1, 2048, 128, 64, 4096, 80, 1, 1, 1),
|
Loading…
x
Reference in New Issue
Block a user