[PATCH] CM-x2xx NAND flash support
Wolfgang Mües
wolfgang.mues at auerswald.de
Tue Jul 11 04:10:50 EDT 2006
Am Dienstag, 11. Juli 2006 09:48 schrieb Mike Rapoport:
> Thomas Gleixner wrote:
> >On Thu, 2006-07-06 at 14:48 +0200, Mike Rapoport wrote:
> >>This patch provides MTD support for NAND flash devices on CM-x2xx
> >> modules.
> >>+#define DRAIN_WB() \
> >>+ do { \
> >>+ unsigned char dummy; \
> >>+ asm volatile ("mcr p15, 0, r0, c7, c10, 4":::"r0"); \
> >>+ dummy=*((unsigned char*)UNCACHED_ADDR); \
> >>+ } while(0);
> >
> >stray semicolon ----^
> >
> >I bet xscale has this functionality somewhere as a macro / inline already
>
> I found none. Even md() on xscale will not drain write buffer.
dmac_clean_range() from asm/cacheflush.h is what you want.
regards
--
Wolfgang Muees Vor den Grashoefen 1
Auerswald GmbH & Co. KG D-38162 Cremlingen
Hardware Development Germany
Tel +49 5306 9219 0 Fax +49 5306 9219 94
More information about the linux-mtd
mailing list