diff options
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/mtd-abi.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index 520a3b483100..1e09e4c8f485 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -30,14 +30,13 @@ 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_ECC 128 // Device capable of automatic ECC | ||
34 | #define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions | ||
35 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ | 33 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ |
34 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ | ||
36 | 35 | ||
37 | // Some common devices / combinations of capabilities | 36 | // Some common devices / combinations of capabilities |
38 | #define MTD_CAP_ROM 0 | 37 | #define MTD_CAP_ROM 0 |
39 | #define MTD_CAP_RAM (MTD_WRITEABLE) | 38 | #define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE) |
40 | #define MTD_CAP_NORFLASH (MTD_WRITEABLE) | 39 | #define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE) |
41 | #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) | 40 | #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) |
42 | 41 | ||
43 | 42 | ||