diff options
| author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-02 06:01:05 -0500 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2016-01-22 19:36:54 -0500 |
| commit | c03d996900f9d063b47ef7462885a9085c8a587f (patch) | |
| tree | d6cc081404a5c39c9bef567940631f2763f8f11b /include/linux/mtd | |
| parent | 23819f2eaab87080b0190ed94a0728fc8ea84711 (diff) | |
mtd: nand: add NAND_NEED_SCRAMBLING option flag
Some MLC NANDs are sensitive to repeated patterns and require data to be
scrambled in order to limit the number of bitflips.
Add a new flag to let the NAND controller know about this constraint.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/nand.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index bdd68e22b5a5..a13dfd5bc58b 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -168,6 +168,12 @@ typedef enum { | |||
| 168 | /* Device supports subpage reads */ | 168 | /* Device supports subpage reads */ |
| 169 | #define NAND_SUBPAGE_READ 0x00001000 | 169 | #define NAND_SUBPAGE_READ 0x00001000 |
| 170 | 170 | ||
| 171 | /* | ||
| 172 | * Some MLC NANDs need data scrambling to limit bitflips caused by repeated | ||
| 173 | * patterns. | ||
| 174 | */ | ||
| 175 | #define NAND_NEED_SCRAMBLING 0x00002000 | ||
| 176 | |||
| 171 | /* Options valid for Samsung large page devices */ | 177 | /* Options valid for Samsung large page devices */ |
| 172 | #define NAND_SAMSUNG_LP_OPTIONS NAND_CACHEPRG | 178 | #define NAND_SAMSUNG_LP_OPTIONS NAND_CACHEPRG |
| 173 | 179 | ||
