Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ivan Khoronzhuk and committed by
Brian Norris
458f3933 75be1ea2

+8 -6
+5 -3
Documentation/devicetree/bindings/mtd/davinci-nand.txt
··· 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 4 - interface contains. 3 + This file provides information, what the device node for the davinci/keystone 4 + NAND interface contains. 5 5 6 6 Documentation: 7 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 10 Required properties: 10 11 11 12 - compatible: "ti,davinci-nand" 13 + "ti,keystone-nand" 12 14 13 15 - reg: Contains 2 offset/length values: 14 16 - offset and length for the access window.
+3 -3
drivers/mtd/nand/Kconfig
··· 464 464 for NAND Flash using FLCTL. 465 465 466 466 config MTD_NAND_DAVINCI 467 - tristate "Support NAND on DaVinci SoC" 468 - depends on ARCH_DAVINCI 467 + tristate "Support NAND on DaVinci/Keystone SoC" 468 + depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) 469 469 help 470 470 Enable the driver for NAND flash chips on Texas Instruments 471 - DaVinci processors. 471 + DaVinci/Keystone processors. 472 472 473 473 config MTD_NAND_TXX9NDFMC 474 474 tristate "NAND Flash support for TXx9 SoC"