diff options
author | Boris Brezillon <bbrezillon@kernel.org> | 2020-05-03 18:53:37 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-05-11 10:51:41 +0300 |
commit | 9e3307a169537a6adc30b13bf9063e94990a5493 (patch) | |
tree | 2e3ec113aa4cb9be44c873272b74b55a3fcb9f55 /include/uapi/mtd | |
parent | d652f3a5bdaf51010191b69744d6719d1e977d17 (diff) | |
download | linux-9e3307a169537a6adc30b13bf9063e94990a5493.tar.xz |
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.h | 1 |
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 |