Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27854
b: refs/heads/master
c: 8ca9ed5
h: refs/heads/master
v: v3
  • Loading branch information
Joern Engel committed May 22, 2006
1 parent 4203cb9 commit 1306b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 987d47b71a85bd83dc40c870abee3b64f2002163
refs/heads/master: 8ca9ed5db3aea8d27989c239e8a2f79b839f1e99
10 changes: 4 additions & 6 deletions trunk/include/mtd/mtd-abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,15 @@ struct mtd_oob_buf {
#define MTD_NANDFLASH 4
#define MTD_DATAFLASH 6

#define MTD_CLEAR_BITS 1 // Bits can be cleared (flash)
#define MTD_SET_BITS 2 // Bits can be set
#define MTD_ECC 128 // Device capable of automatic ECC
#define MTD_PROGRAM_REGIONS 512 // Configurable Programming Regions
#define MTD_WRITEABLE 0x400 /* Device is writeable */

// Some common devices / combinations of capabilities
#define MTD_CAP_ROM 0
#define MTD_CAP_RAM (MTD_CLEAR_BITS|MTD_SET_BITS)
#define MTD_CAP_NORFLASH (MTD_CLEAR_BITS)
#define MTD_CAP_NANDFLASH (MTD_CLEAR_BITS)
#define MTD_WRITEABLE (MTD_CLEAR_BITS|MTD_SET_BITS)
#define MTD_CAP_RAM (MTD_WRITEABLE)
#define MTD_CAP_NORFLASH (MTD_WRITEABLE)
#define MTD_CAP_NANDFLASH (MTD_WRITEABLE)


// Types of automatic ECC/Checksum available
Expand Down

0 comments on commit 1306b4c

Please sign in to comment.