In current code, the MTD_NANDFLASH is used to represent both the SLC and MLC. It is confusing to us. By adding an explicit comment about these two macros, this patch makes it clear that: MTD_NANDFLASH : stands for SLC NAND, MTD_MLCNANDFLASH : stands for MLC NAND (including TLC).
Unified · Split
| @@ -94,10 +94,10 @@ struct mtd_write_req { · 93 unmodified lines | ||
| 94 | 94 | #define MTD_RAM 1 |
| 95 | 95 | #define MTD_ROM 2 |
| 96 | 96 | #define MTD_NORFLASH 3 |
| 97 | −#define MTD_NANDFLASH 4 | |
| 97 | +#define MTD_NANDFLASH 4 /* SLC NAND */ | |
| 98 | 98 | #define MTD_DATAFLASH 6 |
| 99 | 99 | #define MTD_UBIVOLUME 7 |
| 100 | −#define MTD_MLCNANDFLASH 8 | |
| 100 | +#define MTD_MLCNANDFLASH 8 /* MLC NAND (including TLC) */ | |
| 101 | 101 | |
| 102 | 102 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ |
| 103 | 103 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ |