[PATCH] POWERPC: MTD: Add cached map support to physmap_of MTD driver

Paul Mackerras paulus at samba.org
Mon Dec 15 19:21:08 EST 2008


Trent Piepho writes:

> The MTD system supports operation where a direct mapped flash chip is
> mapped twice.  The normal mapping is a standard ioremap(), which is
> non-cached and guarded on powerpc.  The second mapping is used only for
> reads and can be cached and non-guarded.  Currently, only the pxa2xx
> mapping driver makes use of this feature.  This patch adds support to the
> physmap_of driver on PPC32 platforms for this cached mapping mode.

Note that having two mappings of the same physical address that differ
in cacheability is a programming error according to the PowerPC
architecture.

Do you know that the processor implementations where you want to do
this can cope with having two mappings with different cacheability?

Paul.



More information about the linux-mtd mailing list