aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorSukumar Ghorai <s-ghorai@ti.com>2011-01-28 05:12:07 -0500
committerTony Lindgren <tony@atomide.com>2011-02-17 18:32:54 -0500
commit317379a975c07fe63bc4f86dabd668df96ff3df2 (patch)
tree04cf76a6b0c8caec5f3d7eb810dc165fdb96eaa5 /arch/arm/plat-omap
parent4e070376165a9b7f245fada77645b81352c6ec78 (diff)
omap3: nand: configurable fifo threshold to gain the throughput
Configure the FIFO THREASHOLD value different for read and write to keep busy both filling and to drain out of FIFO at reading and writing. Signed-off-by: Vimal Singh <vimalsingh@ti.com> Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/gpmc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h
index 9c060da0a87..a2434639063 100644
--- a/arch/arm/plat-omap/include/plat/gpmc.h
+++ b/arch/arm/plat-omap/include/plat/gpmc.h
@@ -83,6 +83,9 @@
83#define GPMC_IRQ_FIFOEVENTENABLE 0x01 83#define GPMC_IRQ_FIFOEVENTENABLE 0x01
84#define GPMC_IRQ_COUNT_EVENT 0x02 84#define GPMC_IRQ_COUNT_EVENT 0x02
85 85
86#define PREFETCH_FIFOTHRESHOLD_MAX 0x40
87#define PREFETCH_FIFOTHRESHOLD(val) ((val) << 8)
88
86/* 89/*
87 * Note that all values in this struct are in nanoseconds except sync_clk 90 * Note that all values in this struct are in nanoseconds except sync_clk
88 * (which is in picoseconds), while the register values are in gpmc_fck cycles. 91 * (which is in picoseconds), while the register values are in gpmc_fck cycles.
@@ -134,7 +137,7 @@ extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base);
134extern void gpmc_cs_free(int cs); 137extern void gpmc_cs_free(int cs);
135extern int gpmc_cs_set_reserved(int cs, int reserved); 138extern int gpmc_cs_set_reserved(int cs, int reserved);
136extern int gpmc_cs_reserved(int cs); 139extern int gpmc_cs_reserved(int cs);
137extern int gpmc_prefetch_enable(int cs, int dma_mode, 140extern int gpmc_prefetch_enable(int cs, int fifo_th, int dma_mode,
138 unsigned int u32_count, int is_write); 141 unsigned int u32_count, int is_write);
139extern int gpmc_prefetch_reset(int cs); 142extern int gpmc_prefetch_reset(int cs);
140extern void omap3_gpmc_save_context(void); 143extern void omap3_gpmc_save_context(void);