[PATCH] of_mtd: Add support for on-die ECC mode
From: Richard Weinberger
Date: Wed Mar 25 2015 - 16:52:22 EST
...teach of_get_nand_ecc_mode() to understand "hw_on_die".
Signed-off-by: Richard Weinberger <richard@xxxxxx>
diff --git a/Documentation/devicetree/bindings/mtd/nand.txt b/Documentation/devicetree/bindings/mtd/nand.txt
index b53f92e..2de960e 100644
In my initial patch series I forgot about of_mtd.
This patch will be added to v2 of the series.
Thanks,
//richard
--- a/Documentation/devicetree/bindings/mtd/nand.txt
+++ b/Documentation/devicetree/bindings/mtd/nand.txt
@@ -2,7 +2,7 @@
- nand-ecc-mode : String, operation mode of the NAND ecc mode.
Supported values are: "none", "soft", "hw", "hw_syndrome", "hw_oob_first",
- "soft_bch".
+ "hw_on_die", "soft_bch".
- nand-bus-width : 8 or 16 bus width if not present 8
- nand-on-flash-bbt: boolean to enable on flash bbt option if not present false
diff --git a/drivers/of/of_mtd.c b/drivers/of/of_mtd.c
index b7361ed..3b38c9a 100644
--- a/drivers/of/of_mtd.c
+++ b/drivers/of/of_mtd.c
@@ -22,6 +22,7 @@ static const char *nand_ecc_modes[] = {
[NAND_ECC_HW] = "hw",
[NAND_ECC_HW_SYNDROME] = "hw_syndrome",
[NAND_ECC_HW_OOB_FIRST] = "hw_oob_first",
+ [NAND_ECC_HW_ON_DIE] = "hw_on_die",
[NAND_ECC_SOFT_BCH] = "soft_bch",
};
--
2.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/