diff options
| author | Ivan Khoronzhuk <ivan.khoronzhuk@ti.com> | 2013-12-17 08:38:12 -0500 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 14:22:26 -0500 |
| commit | 458f3933bb8a72c2c4a2751009152d83ac71c23b (patch) | |
| tree | 27be5017270c83c2ebac08f707d7aa4ab0973a60 | |
| parent | 75be1ea26b7153a8e09b02e26655a4d7daf3627e (diff) | |
mtd: nand: davinci: reuse driver for Keystone arch
The Keystone arch has compatible nand device, so reuse it.
In case with Keystone it depends on TI_AEMIF because AEMIF
driver is responsible to set timings.
See http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Taras Kondratiuk <taras@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
| -rw-r--r-- | Documentation/devicetree/bindings/mtd/davinci-nand.txt | 8 | ||||
| -rw-r--r-- | drivers/mtd/nand/Kconfig | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt index befaa5bb84e5..cfb18abe6001 100644 --- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt +++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt | |||
| @@ -1,14 +1,16 @@ | |||
| 1 | Device tree bindings for Texas instruments Davinci NAND controller | 1 | Device tree bindings for Texas instruments Davinci/Keystone NAND controller |
| 2 | 2 | ||
| 3 | This file provides information, what the device node for the davinci NAND | 3 | This file provides information, what the device node for the davinci/keystone |
| 4 | interface contains. | 4 | NAND interface contains. |
| 5 | 5 | ||
| 6 | Documentation: | 6 | Documentation: |
| 7 | Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf | 7 | Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf |
| 8 | Kestone - http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf | ||
| 8 | 9 | ||
| 9 | Required properties: | 10 | Required properties: |
| 10 | 11 | ||
| 11 | - compatible: "ti,davinci-nand" | 12 | - compatible: "ti,davinci-nand" |
| 13 | "ti,keystone-nand" | ||
| 12 | 14 | ||
| 13 | - reg: Contains 2 offset/length values: | 15 | - reg: Contains 2 offset/length values: |
| 14 | - offset and length for the access window. | 16 | - offset and length for the access window. |
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index a7808e6d4c71..90ff447bf043 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig | |||
| @@ -464,11 +464,11 @@ config MTD_NAND_SH_FLCTL | |||
| 464 | for NAND Flash using FLCTL. | 464 | for NAND Flash using FLCTL. |
| 465 | 465 | ||
| 466 | config MTD_NAND_DAVINCI | 466 | config MTD_NAND_DAVINCI |
| 467 | tristate "Support NAND on DaVinci SoC" | 467 | tristate "Support NAND on DaVinci/Keystone SoC" |
| 468 | depends on ARCH_DAVINCI | 468 | depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) |
| 469 | help | 469 | help |
| 470 | Enable the driver for NAND flash chips on Texas Instruments | 470 | Enable the driver for NAND flash chips on Texas Instruments |
| 471 | DaVinci processors. | 471 | DaVinci/Keystone processors. |
| 472 | 472 | ||
| 473 | config MTD_NAND_TXX9NDFMC | 473 | config MTD_NAND_TXX9NDFMC |
| 474 | tristate "NAND Flash support for TXx9 SoC" | 474 | tristate "NAND Flash support for TXx9 SoC" |
