mtd: nand/fsmc: Modify fsmc driver to accept nand timing parameters via platform
authorVipin Kumar <vipin.kumar@st.com>
Wed, 14 Mar 2012 06:17:14 +0000 (11:47 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:59:34 +0000 (00:59 +0100)
commite2f6bce8d94d2c82d4f7ae9d94743963a3b10136
treeed6cdc5023282b4322d5490fd579105f7483ab0b
parentf63acb75c5d8a9eb7cc5548e3e778d2a00bf3bae
mtd: nand/fsmc: Modify fsmc driver to accept nand timing parameters via platform

FSMC controllers provide registers to program the required timing values for
attached NAND device. The timing values used until now are relaxed and should
work for all devices.

Although, for read/write performance improvements, the fsmc nand driver should
accept nand timings as a platform data and program the timing parameters into
fsmc registers accordingly.

This patch implements this modification. Additionally, it programs the default
timing parameters if these are not passed via platform data.

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsmc_nand.c
include/linux/mtd/fsmc.h