diff options
author | Huang Shijie <b32955@freescale.com> | 2013-09-25 02:58:16 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:06:07 -0400 |
commit | 2cfac399e94451ae6230b28d4ec96645622039b8 (patch) | |
tree | 2d5c366cb33296f9ce0af1d14a8907c8220c4a66 | |
parent | 2dbcc7ce53b96df8b3ca3fd416b2af88e0bf0f56 (diff) |
mtd: nand: add more comment for MTD_NANDFLASH/MTD_MLCNANDFLASH
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).
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | include/uapi/mtd/mtd-abi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h index 36eace03b2ac..e89b096856f8 100644 --- a/include/uapi/mtd/mtd-abi.h +++ b/include/uapi/mtd/mtd-abi.h | |||
@@ -94,10 +94,10 @@ struct mtd_write_req { | |||
94 | #define MTD_RAM 1 | 94 | #define MTD_RAM 1 |
95 | #define MTD_ROM 2 | 95 | #define MTD_ROM 2 |
96 | #define MTD_NORFLASH 3 | 96 | #define MTD_NORFLASH 3 |
97 | #define MTD_NANDFLASH 4 | 97 | #define MTD_NANDFLASH 4 /* SLC NAND */ |
98 | #define MTD_DATAFLASH 6 | 98 | #define MTD_DATAFLASH 6 |
99 | #define MTD_UBIVOLUME 7 | 99 | #define MTD_UBIVOLUME 7 |
100 | #define MTD_MLCNANDFLASH 8 | 100 | #define MTD_MLCNANDFLASH 8 /* MLC NAND (including TLC) */ |
101 | 101 | ||
102 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ | 102 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ |
103 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ | 103 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ |