diff options
author | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-30 08:25:24 -0400 |
---|---|---|
committer | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-30 08:25:24 -0400 |
commit | 92cbfdcc3661d7670b01b92b89811cd3a2412297 (patch) | |
tree | 70e4c9a94a121594e58a57c4c454ac854bb10a3a /include/mtd | |
parent | e369d62e92d526a7ed641e2f0b2978fb0ce366c5 (diff) |
[MTD] replace MTD_RAM with MTD_GENERIC_TYPE
Ram devices get the extra capability of MTD_NO_ERASE - not requiring
an explicit erase before writing to it. Currently only mtdblock uses
this capability. Rest of the patch is a simple text replacement.
Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/mtd-abi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index 1ce365bd31d2..7ccadb1eaf7d 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h | |||
@@ -24,7 +24,6 @@ struct mtd_oob_buf { | |||
24 | }; | 24 | }; |
25 | 25 | ||
26 | #define MTD_ABSENT 0 | 26 | #define MTD_ABSENT 0 |
27 | #define MTD_RAM 1 | ||
28 | #define MTD_NORFLASH 3 | 27 | #define MTD_NORFLASH 3 |
29 | #define MTD_NANDFLASH 4 | 28 | #define MTD_NANDFLASH 4 |
30 | #define MTD_DATAFLASH 6 | 29 | #define MTD_DATAFLASH 6 |
@@ -32,10 +31,11 @@ struct mtd_oob_buf { | |||
32 | 31 | ||
33 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ | 32 | #define MTD_WRITEABLE 0x400 /* Device is writeable */ |
34 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ | 33 | #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ |
34 | #define MTD_NO_ERASE 0x1000 /* No erase necessary */ | ||
35 | 35 | ||
36 | // Some common devices / combinations of capabilities | 36 | // Some common devices / combinations of capabilities |
37 | #define MTD_CAP_ROM 0 | 37 | #define MTD_CAP_ROM 0 |
38 | #define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE) | 38 | #define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE) |
39 | #define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE) | 39 | #define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE) |
40 | #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) | 40 | #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) |
41 | 41 | ||