diff options
author | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-22 17:18:29 -0400 |
---|---|---|
committer | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-22 17:18:29 -0400 |
commit | 5fa433942ba4e399f7e28764c9db4ade89e91d40 (patch) | |
tree | 29a2691729645bf27fd2d7d8d61a5c720c6569c1 /drivers/mtd/onenand | |
parent | c8b229de2b05c2b3e8d282ce260935a88ac030ca (diff) |
[MTD] Introduce MTD_BIT_WRITEABLE
o Add a flag MTD_BIT_WRITEABLE for devices that allow single bits to be
cleared.
o Replace MTD_PROGRAM_REGIONS with a cleared MTD_BIT_WRITEABLE flag for
STMicro and Intel Sibley flashes with internal ECC. Those flashes
disallow clearing of single bits, unlike regular NOR flashes, so the
new flag models their behaviour better.
o Remove MTD_ECC. After the STMicro/Sibley merge, this flag is only set
and never checked.
Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 198bb8562d93..4c2c61d54b3a 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -1943,7 +1943,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) | |||
1943 | 1943 | ||
1944 | /* Fill in remaining MTD driver data */ | 1944 | /* Fill in remaining MTD driver data */ |
1945 | mtd->type = MTD_NANDFLASH; | 1945 | mtd->type = MTD_NANDFLASH; |
1946 | mtd->flags = MTD_CAP_NANDFLASH | MTD_ECC; | 1946 | mtd->flags = MTD_CAP_NANDFLASH; |
1947 | mtd->ecctype = MTD_ECC_SW; | 1947 | mtd->ecctype = MTD_ECC_SW; |
1948 | mtd->erase = onenand_erase; | 1948 | mtd->erase = onenand_erase; |
1949 | mtd->point = NULL; | 1949 | mtd->point = NULL; |