Q: Probing for devices > buswidth???

Kenneth Johansson kenneth.johansson at inn.ericsson.se
Tue Oct 9 09:56:50 EDT 2001

David Woodhouse wrote:
> kenneth.johansson at inn.ericsson.se said:
> >  Yes. I have a pcmcia linear flash device that is using Intel
> > strataflash 28F640xxx. The chips is 16 bit but used as 8bit. To make
> > things interesting they also interleave the chip so odd bytes goes to
> > one chip and even to the other.
> You have map driver code for PCMCIA devices? Is this a generic PCMCIA
> driver or a platform-specific hack?

Well this is linear flash this means I don't have to know anything about
pcmcia it is directly connected to the bus. This gives max 64Meg memory.

On the other hand it also works as a proper pcmcia device and can be used in
real pcmcia/cardbus environment.

I made a big fuckup when I started to use them and could no get it to work so
I made a small driver for real pcmcia that i used in a x86 laptop just to se
that the chip worked. This driver is way to simple to be usefull as a generic
mapping driver for MTD. But a real driver is not to hard to do. The PCMCIA
subsystem is just a bit confusing and has it's own bulkmem system that needs
to be removed and converted to MTD. 

The fuckup was that every pcmcia linear flash decode the entire 64Meg memory
range. I had 16Meg flash and expected to get 4 views of the same memmory in
that 64Meg rage. This did not happen and it never hit me to try to use the
device in a memory region that was modulo 64Meg so I did only get strange
values out of it:(

I needed the memory to exist from -1 to -16Meg as the memory is used for
booting a PowerPC CPU and they boot from fffffffc.

Kenneth Johansson	
Ericsson Business Innovation AB   Tel: +46 8 404 71 83
Viderögatan 3                     Fax: +46 8 404 72 72
164 80 Stockholm                  kenneth.johansson at inn.ericsson.se

More information about the linux-mtd mailing list