diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2011-02-07 10:47:00 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-17 15:44:46 -0800 |
commit | 5714b7ed6b3e3c00c0d4719bb66757e64c30ecf6 (patch) | |
tree | aaf57838fa11ca7b9c6a4bb5da80b57a5597dfdb /arch/arm/plat-omap/include | |
parent | 3ad2d861362031dac8b2bba78a8f4c575300948f (diff) | |
download | talos-obmc-linux-5714b7ed6b3e3c00c0d4719bb66757e64c30ecf6.tar.gz talos-obmc-linux-5714b7ed6b3e3c00c0d4719bb66757e64c30ecf6.zip |
OMAP: OneNAND: let boards determine OneNAND frequency
OneNAND version ID may not give the highest frequency
supported and some OneNAND's have setup times that are
clock dependent. Let the board provide that information.
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/onenand.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/onenand.h b/arch/arm/plat-omap/include/plat/onenand.h index 86118dc3f19a..cbe897ca7f9e 100644 --- a/arch/arm/plat-omap/include/plat/onenand.h +++ b/arch/arm/plat-omap/include/plat/onenand.h @@ -15,12 +15,20 @@ #define ONENAND_SYNC_READ (1 << 0) #define ONENAND_SYNC_READWRITE (1 << 1) +struct onenand_freq_info { + u16 maf_id; + u16 dev_id; + u16 ver_id; +}; + struct omap_onenand_platform_data { int cs; int gpio_irq; struct mtd_partition *parts; int nr_parts; int (*onenand_setup)(void __iomem *, int *freq_ptr); + int (*get_freq)(const struct onenand_freq_info *freq_info, + bool *clk_dep); int dma_channel; u8 flags; u8 regulator_can_sleep; |