diff options
Diffstat (limited to 'drivers/of/of_mtd.c')
-rw-r--r-- | drivers/of/of_mtd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/of_mtd.c b/drivers/of/of_mtd.c index 0956ee15d3..c531518c1d 100644 --- a/drivers/of/of_mtd.c +++ b/drivers/of/of_mtd.c @@ -9,6 +9,7 @@ #include <common.h> #include <of_mtd.h> #include <linux/mtd/nand.h> +#include <linux/mtd/rawnand.h> /** * It maps 'enum nand_ecc_modes_t' found in include/linux/mtd/nand.h @@ -16,10 +17,12 @@ * device driver can get nand ecc from device tree. */ static const char *nand_ecc_modes[] = { + [NAND_ECC_INVALID] = "invalid", [NAND_ECC_NONE] = "none", [NAND_ECC_SOFT] = "soft", [NAND_ECC_HW] = "hw", [NAND_ECC_HW_SYNDROME] = "hw_syndrome", + [NAND_ECC_ON_DIE] = "on-die", [NAND_ECC_HW_OOB_FIRST] = "hw_oob_first", [NAND_ECC_SOFT_BCH] = "soft_bch", }; |