aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd/mtd-abi.h
diff options
context:
space:
mode:
authorJoern Engel <joern@wh.fh-wedel.de>2006-05-22 17:17:23 -0400
committerJoern Engel <joern@wh.fh-wedel.de>2006-05-22 17:17:23 -0400
commit8ca9ed5db3aea8d27989c239e8a2f79b839f1e99 (patch)
tree496ed4b78875ed19db0fad3bac8afaedae9d79d0 /include/mtd/mtd-abi.h
parent987d47b71a85bd83dc40c870abee3b64f2002163 (diff)
[MTD] Use single flag to mark writeable devices.
Two flags exist to decide whether a device is writeable or not. None of those two flags is checked for independently, so they are clearly redundant, if not an invitation to bugs. This patch removed both of them, replacing them with a single new flag. Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
Diffstat (limited to 'include/mtd/mtd-abi.h')
-rw-r--r--include/mtd/mtd-abi.h10
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