chip drivers
David Woodhouse
dwmw2 at infradead.org
Fri Feb 1 10:04:39 EST 2002
jonas.holmberg at axis.com said:
> But how would I be able to detect all chips if I had a configuration
> like this:
> 0x00000000 - 0x003FFFFF 4MiB CFI chip
> 0x00400000 - 0x005FFFFF 2MiB jedec only chip
> 0x00600000 - 0x009FFFFF 4MiB CFI chip
You'd need three maps, three probe calls. Although I suppose you could have
a single map driver for the first and last chips where the access calls do
something like:
return *(volatile __u32 *) (addr + (addr>0x400000?0x200000:0));
You probably don't want that though. Register them as three separate chips
and then use the partition code that's been fixed to let you combine ranges
of separate devices into one 'partition' rather than just split devices up.
--
dwmw2
More information about the linux-mtd
mailing list