[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1395267345-27795-2-git-send-email-ivan.khoronzhuk@ti.com>
Date: Thu, 20 Mar 2014 00:15:44 +0200
From: Ivan Khoronzhuk <ivan.khoronzhuk@...com>
To: <santosh.shilimkar@...com>
CC: <robh+dt@...nel.org>, <pawel.moll@....com>, <mark.rutland@....com>,
<ijc+devicetree@...lion.org.uk>, <galak@...eaurora.org>,
<linux@....linux.org.uk>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <grygorii.strashko@...com>,
Ivan Khoronzhuk <ivan.khoronzhuk@...com>,
Murali Karicheri <m-karicheri2@...com>
Subject: [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option
Add a property to disable subpage write.
Signed-off-by: Murali Karicheri <m-karicheri2@...com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@...com>
---
Documentation/devicetree/bindings/mtd/davinci-nand.txt | 2 ++
drivers/mtd/nand/davinci_nand.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt
index cfb18ab..50af930 100644
--- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt
@@ -53,6 +53,8 @@ Recommended properties :
identifier is saved in OOB area. If not present
false.
+- ti,davinci-nosubpage-write: disable subpage write for the device
+
Deprecated properties:
- ti,davinci-ecc-mode: operation mode of the NAND ecc mode. ECC mode
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 4615d79..3ba058d 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -581,6 +581,9 @@ static struct davinci_nand_pdata
of_property_read_bool(pdev->dev.of_node,
"ti,davinci-nand-use-bbt"))
pdata->bbt_options = NAND_BBT_USE_FLASH;
+ if (of_property_read_bool(pdev->dev.of_node,
+ "ti,davinci-no-subpage-write"))
+ pdata->options |= NAND_NO_SUBPAGE_WRITE;
}
return dev_get_platdata(&pdev->dev);
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists