Skip to content

mtd: Support slc-mode for NTC CHIP

Chris Morgan u-boot 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 5 repliesIn review
  2. v3 RFC3 patches 0 repliesSuperseded
  3. v2 RFC2 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC2 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Rebased against master branch as of 2021-12-16.
- Added slc mode support for mtdparts command.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mtd: Add support for Linux slc-mode for MLC NANDcmd/mtdparts.c drivers/mtd/mtdcore.c drivers/mtd/mtdcore.h +5 more+732 -1240 replies
2/3mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NANDdrivers/mtd/nand/raw/nand_base.c+9 -00 replies
3/3mtd: Add pairing info for Hynix H27UCG8T2ETR NANDdrivers/mtd/nand/raw/nand_base.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] mtd: Support slc-mode for NTC CHIP

From: Chris Morgan <[email protected]>

Add support for slc-mode implemented in Linux for the Toshiba TC58TEG5DCLTA00 NAND and Hynix H27UCG8T2ETR NAND flash found on the NTC CHIP. This requires the addition of a paired-pages scheme, a new parameter for MTD partitions of slc-mode, and setting the correct paired-pages scheme for the TC58TEG5DCLTA00 and H27UCG8T2ETR flash chips.

Changes since V3:
- Rebased against master branch as of 2021-12-16.
- Added slc mode support for mtdparts command.

Changes since V2:
- Copied upstream Linux implementation of mtd_erase to fix an issue with creating new ubi partitions.
- Implemented paired page scheme and added support for Hynix flash chip. Based on a cursory reading of the datasheet it appears to use the same pairing scheme as the Toshiba chip.

Changes since V1:

- Updated mtd_read and mtd_write to match upstream Linux.
- Additional mtd_get_master to match upstream Linux.
- Removed notes about ubifs not working, because it is now.

Chris Morgan (3):
mtd: Add support for Linux slc-mode for MLC NAND
mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND
mtd: Add pairing info for Hynix H27UCG8T2ETR NAND

 cmd/mtdparts.c                   |  20 ++
 drivers/mtd/mtdcore.c            | 563 +++++++++++++++++++++++++------
 drivers/mtd/mtdcore.h            |   1 -
 drivers/mtd/mtdpart.c            |   7 +
 drivers/mtd/nand/raw/nand_base.c |  67 ++++
 include/linux/mtd/mtd.h          | 190 ++++++++++-
 include/linux/mtd/partitions.h   |  24 +-
 include/mtd/mtd-abi.h            |   1 +
 8 files changed, 749 insertions(+), 124 deletions(-)
Signature · 1 line
2.30.2