aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/include/plat/onenand.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@nokia.com>2011-02-07 10:47:00 +0200
committerTony Lindgren <tony@atomide.com>2011-02-17 15:44:46 -0800
commit5714b7ed6b3e3c00c0d4719bb66757e64c30ecf6 (patch)
treeaaf57838fa11ca7b9c6a4bb5da80b57a5597dfdb /arch/arm/plat-omap/include/plat/onenand.h
parent3ad2d861362031dac8b2bba78a8f4c575300948f (diff)
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/plat/onenand.h')
-rw-r--r--arch/arm/plat-omap/include/plat/onenand.h8
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 86118dc3f19..cbe897ca7f9 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;