diff options
-rw-r--r-- | include/mtd/mtd-abi.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index fa2524157846..e4d61f33d5bb 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -30,17 +30,15 @@ struct mtd_oob_buf { | |||
30 | #define MTD_NANDFLASH 4 | 30 | #define MTD_NANDFLASH 4 |
31 | #define MTD_DATAFLASH 6 | 31 | #define MTD_DATAFLASH 6 |
32 | 32 | ||
33 | #define MTD_CLEAR_BITS 1 // Bits can be cleared (flash) | ||
34 | #define MTD_SET_BITS 2 // Bits can be set | ||
35 | #define MTD_ECC 128 // Device capable of automatic ECC | 33 | #define MTD_ECC 128 // Device capable of automatic ECC |
36 | #define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions | 34 | #define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions |
35 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ | ||
37 | 36 | ||
38 | // Some common devices / combinations of capabilities | 37 | // Some common devices / combinations of capabilities |
39 | #define MTD_CAP_ROM 0 | 38 | #define MTD_CAP_ROM 0 |
40 | #define MTD_CAP_RAM (MTD_CLEAR_BITS|MTD_SET_BITS) | 39 | #define MTD_CAP_RAM (MTD_WRITEABLE) |
41 | #define MTD_CAP_NORFLASH (MTD_CLEAR_BITS) | 40 | #define MTD_CAP_NORFLASH (MTD_WRITEABLE) |
42 | #define MTD_CAP_NANDFLASH (MTD_CLEAR_BITS) | 41 | #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) |
43 | #define MTD_WRITEABLE (MTD_CLEAR_BITS|MTD_SET_BITS) | ||
44 | 42 | ||
45 | 43 | ||
46 | // Types of automatic ECC/Checksum available | 44 | // Types of automatic ECC/Checksum available |