From: Kenneth Johansson <kenneth.johansson@inn.ericsson.se>
To: David Woodhouse <dwmw2@infradead.org>
Cc: "Eric W. Biederman" <ebiederman@lnxi.com>, linux-mtd@lists.infradead.org
Subject: Re: Q: Probing for devices > buswidth???
Date: Tue, 09 Oct 2001 15:56:50 +0200 [thread overview]
Message-ID: <3BC30222.2476B421@inn.ericsson.se> (raw)
In-Reply-To: 21867.1002633721@redhat.com
David Woodhouse wrote:
>
> kenneth.johansson@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@inn.ericsson.se
prev parent reply other threads:[~2001-10-09 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-09 5:23 Q: Probing for devices > buswidth??? Eric W. Biederman
2001-10-09 6:45 ` David Woodhouse
2001-10-09 6:50 ` Eric W. Biederman
2001-10-09 6:53 ` David Woodhouse
2001-10-09 7:04 ` Eric W. Biederman
2001-10-09 13:19 ` Kenneth Johansson
2001-10-09 13:22 ` David Woodhouse
2001-10-09 13:56 ` Kenneth Johansson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BC30222.2476B421@inn.ericsson.se \
--to=kenneth.johansson@inn.ericsson.se \
--cc=dwmw2@infradead.org \
--cc=ebiederman@lnxi.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox