Re: [PATCH 2:2][MTD][NAND]omap : Adding DMA mode support in nand prefetch/post-write

2009-07-10 Thread Artem Bityutskiy
David Woodhouse wrote: On Fri, 2009-07-10 at 15:02 +0300, Artem Bityutskiy wrote: On Fri, 2009-07-10 at 17:25 +0530, vimal singh wrote: + /* The fifo depth is 64 bytes. We have a sync at each frame and frame +* length is 64 bytes. +*/ + int buf_len = len/64; To opti

Re: [PATCH 2:2][MTD][NAND]omap : Adding DMA mode support in nand prefetch/post-write

2009-07-10 Thread David Woodhouse
On Fri, 2009-07-10 at 15:02 +0300, Artem Bityutskiy wrote: > On Fri, 2009-07-10 at 17:25 +0530, vimal singh wrote: > > + /* The fifo depth is 64 bytes. We have a sync at each frame and frame > > +* length is 64 bytes. > > +*/ > > + int buf_len = len/64; > > To optimize performance it i

Re: [PATCH 2:2][MTD][NAND]omap : Adding DMA mode support in nand prefetch/post-write

2009-07-10 Thread Artem Bityutskiy
On Fri, 2009-07-10 at 17:25 +0530, vimal singh wrote: > + /* The fifo depth is 64 bytes. We have a sync at each frame and frame > + * length is 64 bytes. > + */ > + int buf_len = len/64; To optimize performance it is better not to rely on gcc and use << -- Best regards, Artem B

[PATCH 2:2][MTD][NAND]omap : Adding DMA mode support in nand prefetch/post-write

2009-07-10 Thread vimal singh
This patch adds DMA mode support for nand prefetch/post-write engine. Signed-off-by: Vimal Singh --- drivers/mtd/nand/Kconfig |9 ++ drivers/mtd/nand/omap2.c | 186 ++- 2 files changed, 193 insertions(+), 2 deletions(-) Index: mtd-2.6/drivers/mt