ZFMicro MachZ modification of physmap.c
Luke
luke_epsilon at yahoo.com
Thu Aug 23 15:41:28 EDT 2001
Hello,
--- Vipin Malik <vipin at embeddedlinuxworks.com> wrote:
>
> Normally, one map's the entire flash as far as the chip select's are
> concerned, and set's the start/length logically in the map driver (in your
> case physmap.c).
> Of course you don't want to start/stop in the middle of a sector. Only on
> sector boundaries please :)
>
It seems that the standard physmap.c just takes the 3 CONFIG_* inputs of start (of the physical
memory address to look for the flash),length, and bus width. To change the offset of the flash to
access do you modify the return from ioremap() ?
For example, if I have an 8 Mbyte flash chip that I want to access with MTD and I only want to map
from byte offset 0x300000 to 0x700000 of the flash I should set my CONFIG_MTD_PHYSMAP_LEN to 4
Mbytes and inside the physmap.c code add an offset of 0x300000 to something?
Sorry for being a slow learner on this one,
Luke
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
More information about the linux-mtd
mailing list