[PATCH] of_mtd: Add support for on-die ECC mode

Richard Weinberger richard at nod.at
Wed Mar 25 13:52:02 PDT 2015


...teach of_get_nand_ecc_mode() to understand "hw_on_die".

Signed-off-by: Richard Weinberger <richard at nod.at>

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




More information about the linux-mtd mailing list