Two flash chips with a gap between them.
David Woodhouse
dwmw2 at infradead.org
Wed Dec 19 11:51:54 EST 2001
vdoukhan at wann.com said:
> I have two flash chips Am29lv320db90ei, which are physically mapped to
> different memory areas and even have a memory gap between each other.
Just create a 'map' driver for your board which makes them appear
to be together.
__u16 xxx_read16(struct map_info *map, unsigned long ofs)
{
if (ofs < CHIP_SIZE)
return __raw_readw(map->map_priv_1 + ofs);
else
return __raw_readw(map->map_priv_2 + ofs - CHIP_SIZE);
}
etc.
}
--
dwmw2
More information about the linux-mtd
mailing list