aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/bbm.h
diff options
context:
space:
mode:
authorBrian Norris <norris@broadcom.com>2010-06-23 13:36:02 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-02 09:05:12 +0100
commit30fe8115b55223cb84530ce04c4a20ba9d6dcf0b (patch)
treea589cb88978bcf39808e800fd79c663218377bf9 /include/linux/mtd/bbm.h
parente1d0fe3cddf2306e3ac32569aa152f1909c9b46e (diff)
downloadkernel_samsung_espresso10-30fe8115b55223cb84530ce04c4a20ba9d6dcf0b.zip
kernel_samsung_espresso10-30fe8115b55223cb84530ce04c4a20ba9d6dcf0b.tar.gz
kernel_samsung_espresso10-30fe8115b55223cb84530ce04c4a20ba9d6dcf0b.tar.bz2
mtd: nand: edit macro flag for BBT scan of last page in block
NAND_BB_LAST_PAGE used to be in nand.h, but it pertained to bad block management and so belongs next to NAND_BBT_SCAN2NDPAGE in bbm.h. Also, its previous flag value (0x00000400) conflicted with NAND_BBT_SCANALLPAGES so I changed its value to 0x00008000. All uses of the name were modified to provide consistency with other "NAND_BBT_*" flags. Signed-off-by: Brian Norris <norris@broadcom.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/bbm.h')
-rw-r--r--include/linux/mtd/bbm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/bbm.h b/include/linux/mtd/bbm.h
index 9c3757c..8ad0b86 100644
--- a/include/linux/mtd/bbm.h
+++ b/include/linux/mtd/bbm.h
@@ -82,6 +82,8 @@ struct nand_bbt_descr {
#define NAND_BBT_SAVECONTENT 0x00002000
/* Search good / bad pattern on the first and the second page */
#define NAND_BBT_SCAN2NDPAGE 0x00004000
+/* Search good / bad pattern on the last page of the eraseblock */
+#define NAND_BBT_SCANLASTPAGE 0x00008000
/* The maximum number of blocks to scan for a bbt */
#define NAND_BBT_SCAN_MAXBLOCKS 4