All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Morgan <macroalpha82@gmail.com>
To: u-boot@lists.denx.de
Cc: miquel.raynal@bootlin.com, marek.behun@nic.cz,
	xypron.glpk@gmx.de, sjg@chromium.org, jagan@amarulasolutions.com,
	farhan.ali@broadcom.com, Chris Morgan <macromorgan@hotmail.com>
Subject: [RFC v2 0/2] mtd: Support slc-mode for Toshiba TC58TEG5DCLTA00
Date: Thu, 23 Sep 2021 08:32:46 -0500	[thread overview]
Message-ID: <20210923133248.7792-1-macroalpha82@gmail.com> (raw)

From: Chris Morgan <macromorgan@hotmail.com>

Add support for slc-mode implemented in Linux for the Toshiba
TC58TEG5DCLTA00 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 flash chip. I will likely need some help making sure
this is consistent with the quality expected of upstream.

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.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

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

 arch/arm/dts/sun5i-r8-chip.dts   |  39 +++
 drivers/mtd/mtdcore.c            | 542 ++++++++++++++++++++++++-------
 drivers/mtd/mtdcore.h            |   1 -
 drivers/mtd/mtdpart.c            |   7 +
 drivers/mtd/nand/raw/nand_base.c |  59 ++++
 include/configs/sunxi-common.h   |   2 +
 include/linux/mtd/mtd.h          | 190 ++++++++++-
 include/linux/mtd/partitions.h   |  24 +-
 include/mtd/mtd-abi.h            |   1 +
 9 files changed, 742 insertions(+), 123 deletions(-)

-- 
2.30.2


             reply	other threads:[~2021-09-23 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 13:32 Chris Morgan [this message]
2021-09-23 13:32 ` [RFC v2 1/2] mtd: Add support for Linux slc-mode for MLC NAND Chris Morgan
2021-09-23 13:32 ` [RFC v2 2/2] mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND Chris Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210923133248.7792-1-macroalpha82@gmail.com \
    --to=macroalpha82@gmail.com \
    --cc=farhan.ali@broadcom.com \
    --cc=jagan@amarulasolutions.com \
    --cc=macromorgan@hotmail.com \
    --cc=marek.behun@nic.cz \
    --cc=miquel.raynal@bootlin.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.