aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/nand.h
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2010-08-09 15:46:36 +0530
committerKevin Hilman <khilman@deeprootsystems.com>2010-09-24 07:40:26 -0700
commita88dbc5bfdd26132bbf0ad19dd672e036971d74d (patch)
tree112aa4d073c606352a2fc938a953a913b21d18bc /arch/arm/mach-davinci/include/mach/nand.h
parentdavinci: add support for aemif timing configuration (diff)
downloadlinux-dev-a88dbc5bfdd26132bbf0ad19dd672e036971d74d.tar.xz
linux-dev-a88dbc5bfdd26132bbf0ad19dd672e036971d74d.zip
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>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/nand.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/nand.h b/arch/arm/mach-davinci/include/mach/nand.h
index b5893f035fea..025151049f05 100644
--- a/arch/arm/mach-davinci/include/mach/nand.h
+++ b/arch/arm/mach-davinci/include/mach/nand.h
@@ -80,6 +80,9 @@ struct davinci_nand_pdata { /* platform_data */
/* Main and mirror bbt descriptor overrides */
struct nand_bbt_descr *bbt_td;
struct nand_bbt_descr *bbt_md;
+
+ /* Access timings */
+ struct davinci_aemif_timing *timing;
};
#endif /* __ARCH_ARM_DAVINCI_NAND_H */