aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/mtd
diff options
context:
space:
mode:
authorBoris Brezillon <bbrezillon@kernel.org>2020-05-03 17:53:37 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-11 09:51:41 +0200
commit9e3307a169537a6adc30b13bf9063e94990a5493 (patch)
tree2e3ec113aa4cb9be44c873272b74b55a3fcb9f55 /include/uapi/mtd
parentmtd: rawnand: toshiba: Set the pairing scheme for TC58TEG5DCLTA00 (diff)
downloadlinux-dev-9e3307a169537a6adc30b13bf9063e94990a5493.tar.xz
linux-dev-9e3307a169537a6adc30b13bf9063e94990a5493.zip
mtd: Add support for emulated SLC mode on MLC NANDs
MLC NANDs can be made a bit more reliable if we only program the lower page of each pair. At least, this solves the paired-pages corruption issue. Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200503155341.16712-5-miquel.raynal@bootlin.com
Diffstat (limited to 'include/uapi/mtd')
-rw-r--r--include/uapi/mtd/mtd-abi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h
index 47ffe3208c27..4b48fbf7d343 100644
--- a/include/uapi/mtd/mtd-abi.h
+++ b/include/uapi/mtd/mtd-abi.h
@@ -104,6 +104,7 @@ struct mtd_write_req {
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */
#define MTD_NO_ERASE 0x1000 /* No erase necessary */
#define MTD_POWERUP_LOCK 0x2000 /* Always locked after reset */
+#define MTD_SLC_ON_MLC_EMULATION 0x4000 /* Emulate SLC behavior on MLC NANDs */
/* Some common devices / combinations of capabilities */
#define MTD_CAP_ROM 0