mtd: nand: spi: fmsh: add FM25S01 support
Subsystems (2)
PATCH v2 1/1 mtd: nand: spi: fmsh: add FM25S01 support
From: David Regan <[email protected]>
Add support for the FM25S01, identified by device ID 0xa1. It has the same manufacturer ID, read/write/update cache variants, 1 Gbit array organization and 1 bit/512 bytes ECC requirement as the already supported FM25S01A, but has a 128 byte OOB area per page instead of 64 bytes.
Unlike FM25S01A it exposes an ECC OOB region (64/64 split with the ECC bytes in the upper half). This is the same layout as FM25G01B, so reuse fm25g01b_ooblayout.
Signed-off-by David Regan <[email protected]>
[florian: commit message]
Signed-off-by Florian Fainelli <[email protected]>
---
Changes in v2:
- re-use fm25g01b_ooblayout rather than create a new one
- update commit message description to be more specific about the device's geometry
drivers/mtd/nand/spi/fmsh.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/mtd/nand/spi/fmsh.c +9 -0
@@ -216,6 +216,15 @@ static const struct spinand_info fmsh_spinand_table[] = { SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&fm25g01b_ooblayout, fm25g01b_ecc_get_status)), +SPINAND_INFO ("FM25S01" , +SPINAND_ID (SPINAND_READID_METHOD_OPCODE_DUMMY ,0xa1 ), +NAND_MEMORG (1 ,2048 ,128 ,64 ,1024 ,20 ,1 ,1 ,1 ), +NAND_ECCREQ (1 ,512 ), +SPINAND_INFO_OP_VARIANTS (&read_cache_variants, + &write_cache_variants, + &update_cache_variants), +0 , +SPINAND_ECCINFO (&fm25g01b_ooblayout,NULL )), SPINAND_INFO("FM25S01A", SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE4), NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
Signature · 1 line
2.34.1