aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd/mtd-abi.h
diff options
context:
space:
mode:
authorJörn Engel <joern@wohnheim.fh-wedel.de>2006-04-13 12:54:34 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-17 10:48:17 -0400
commita6c591eda3078f92e7a3ff3db55f6841e4819fb5 (patch)
tree1d1c2ab720bc9931f00b8cc177878a6ad8ec5651 /include/mtd/mtd-abi.h
parentaf63a3bcac77d8c01f3d963bac11a6f3f9b7c473 (diff)
Remove unchecked MTD flags
Several flags are set by some devices, but never checked. Remove them. Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/mtd/mtd-abi.h')
-rw-r--r--include/mtd/mtd-abi.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index b5994ea56a5..cc7be33b422 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -35,20 +35,14 @@ struct mtd_oob_buf {
35 35
36#define MTD_CLEAR_BITS 1 // Bits can be cleared (flash) 36#define MTD_CLEAR_BITS 1 // Bits can be cleared (flash)
37#define MTD_SET_BITS 2 // Bits can be set 37#define MTD_SET_BITS 2 // Bits can be set
38#define MTD_ERASEABLE 4 // Has an erase function
39#define MTD_WRITEB_WRITEABLE 8 // Direct IO is possible
40#define MTD_VOLATILE 16 // Set for RAMs
41#define MTD_XIP 32 // eXecute-In-Place possible
42#define MTD_OOB 64 // Out-of-band data (NAND flash)
43#define MTD_ECC 128 // Device capable of automatic ECC 38#define MTD_ECC 128 // Device capable of automatic ECC
44#define MTD_NO_VIRTBLOCKS 256 // Virtual blocks not allowed
45#define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions 39#define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions
46 40
47// Some common devices / combinations of capabilities 41// Some common devices / combinations of capabilities
48#define MTD_CAP_ROM 0 42#define MTD_CAP_ROM 0
49#define MTD_CAP_RAM (MTD_CLEAR_BITS|MTD_SET_BITS|MTD_WRITEB_WRITEABLE) 43#define MTD_CAP_RAM (MTD_CLEAR_BITS|MTD_SET_BITS)
50#define MTD_CAP_NORFLASH (MTD_CLEAR_BITS|MTD_ERASEABLE) 44#define MTD_CAP_NORFLASH (MTD_CLEAR_BITS)
51#define MTD_CAP_NANDFLASH (MTD_CLEAR_BITS|MTD_ERASEABLE|MTD_OOB) 45#define MTD_CAP_NANDFLASH (MTD_CLEAR_BITS)
52#define MTD_WRITEABLE (MTD_CLEAR_BITS|MTD_SET_BITS) 46#define MTD_WRITEABLE (MTD_CLEAR_BITS|MTD_SET_BITS)
53 47
54 48