nand: davinci: add support for timing configuration
commita88dbc5bfdd26132bbf0ad19dd672e036971d74d
authorSekhar Nori <nsekhar@ti.com>
Mon, 9 Aug 2010 10:16:36 +0000 (9 15:46 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 24 Sep 2010 14:40:26 +0000 (24 07:40 -0700)
tree112aa4d073c606352a2fc938a953a913b21d18bc
parent8060ef4da9e73f461adf2ba1922ea5400a61cf98
nand: davinci: add support for timing configuration

This patch modifies the DaVinci NAND driver to use the
new AEMIF timing setup API to configure the NAND access
timings.

Earlier, AEMIF configuration was being done as a special
case for DM644x board, but now more boards emerge which have
capability to boot for other media (SPI flash, NOR flash) and
have the kernel access NAND flash. This means that kernel cannot
always  depend on the bootloader to setup the NAND.

Also, on platforms such as da850/omap-l138, the aemif input
frequency changes as cpu frequency changes; necessiating
re-calculation of timimg values as part of cpufreq transtitions.
This patch forms the basis for adding that support.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
arch/arm/mach-davinci/include/mach/nand.h
drivers/mtd/nand/davinci_nand.c