]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linux/mtd/bbm.h
Fix OneNAND read_oob/write_oob functions compatability
[karo-tx-uboot.git] / include / linux / mtd / bbm.h
index bffb25b2575524d59dabe9c6f5193cd9b5a2762e..abf8f1a7e8680a9db5750a7b7ddb1480b972f058 100644 (file)
@@ -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