summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/bbm.h
diff options
context:
space:
mode:
authorKyungmin Park <kmpark@infradead.org>2008-08-19 08:42:53 +0900
committerScott Wood <scottwood@freescale.com>2008-08-21 13:50:20 -0500
commitbfd7f38614e21f745b6d6845fcc616ebc5e4d36f (patch)
treef72c120c39a8a6b51e57d22d600571e29aaa976e /include/linux/mtd/bbm.h
parent8d765456c1d33f2010d2717ee58de7647fdc6346 (diff)
downloadblackbird-obmc-uboot-bfd7f38614e21f745b6d6845fcc616ebc5e4d36f.tar.gz
blackbird-obmc-uboot-bfd7f38614e21f745b6d6845fcc616ebc5e4d36f.zip
Fix OneNAND read_oob/write_oob functions compatability
Also sync with kernel OneNAND codes Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include/linux/mtd/bbm.h')
-rw-r--r--include/linux/mtd/bbm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mtd/bbm.h b/include/linux/mtd/bbm.h
index bffb25b257..abf8f1a7e8 100644
--- a/include/linux/mtd/bbm.h
+++ b/include/linux/mtd/bbm.h
@@ -97,6 +97,13 @@ struct nand_bbt_descr {
*/
#define ONENAND_BADBLOCK_POS 0
+/*
+ * Bad block scanning errors
+ */
+#define ONENAND_BBT_READ_ERROR 1
+#define ONENAND_BBT_READ_ECC_ERROR 2
+#define ONENAND_BBT_READ_FATAL_ERROR 4
+
/**
* struct bbt_info - [GENERIC] Bad Block Table data structure
* @param bbt_erase_shift [INTERN] number of address bits in a bbt entry
OpenPOWER on IntegriCloud