]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linux/mtd/nand.h
mtd: nand: kirkwood: add RS-ECC encoding support
[karo-tx-uboot.git] / include / linux / mtd / nand.h
index 99668d552e22ac37e8af6c124ec2bfe25fdd6e25..e0ad9ae37df0557d713a5c0a5e13b9ed6d00fb34 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "config.h"
 
-#include "linux/mtd/compat.h"
+#include "linux/compat.h"
 #include "linux/mtd/mtd.h"
 #include "linux/mtd/bbm.h"
 
@@ -131,6 +131,7 @@ typedef enum {
        NAND_ECC_HW_SYNDROME,
        NAND_ECC_HW_OOB_FIRST,
        NAND_ECC_SOFT_BCH,
+       NAND_ECC_SOFT_RS,
 } nand_ecc_modes_t;
 
 /*
@@ -232,6 +233,8 @@ typedef enum {
 #define NAND_CREATE_EMPTY_BBT          0x01000000
 
 /* Options set by nand scan */
+/* bbt has already been read */
+#define NAND_BBT_SCANNED       0x40000000
 /* Nand scan has allocated controller struct */
 #define NAND_CONTROLLER_ALLOC  0x80000000