Flash Mapping and gpio

Fundu fundu_1999 at yahoo.com
Fri Sep 12 12:54:07 EDT 2008


First off thanks Allon, I really appreciate your input.
> static map_word __xipram custom_map_read(struct map_info
> *map,
> unsigned long ofs)
> {
>       CUSTOM_BANKSWITCH(ofs);
>       return inline_map_read(map, ofs & BANK_MASK); //
> mask out the bank
> }
> 
that makes sense. but one question don't you need to adjust the offset before calling inline_map_read ? or does the macro do that for you ? 

> In my case, I asserted that a copy won't be more than
> 16MB, and two
> the copy in two chunks, switching banks in the middle, if
> need be.
yeah i have setup mtd partitions such that they don't span across the banks.

> HTH.
yup you bet. 


      



More information about the linux-mtd mailing list