From: Ulrich Eckhardt <eckhardt@satorlaser.com>
To: linux-mips@linux-mips.org
Subject: Re: CompactFlash on PCMCIA problems
Date: Wed, 13 Apr 2005 16:51:04 +0200 [thread overview]
Message-ID: <200504131651.05113.eckhardt@satorlaser.com> (raw)
In-Reply-To: <200504081610.32088.eckhardt@satorlaser.com>
Ulrich Eckhardt wrote:
> I'm trying to code the glue to connect the vanilla ATA drivers with a CF
> card connected to an Au1100. I managed to access the CIS parts of the card
> but then the problems start: the area where I'd expect to find the ATA
> controller's registers mirrors every byte twice, just as if the address
> used was first shifted by one.
>
> Here's a sketch of what I'm doing:
>
> 1. Setup SYS_PINFUNC so the PCMCIA interface is used
Well, at least I tried to...
[...]
> At this moment, I think I should be able to talk to the ATA controller via
> the first few bytes of the ioremapped PCMCIA_IO_PHYS_ADDR, but that area
> has this weird mirrored byte behaviour which I don't understand.
Setting the PC flag in SYS_PINFUNC in fact DISables the PCMCIA driver, leaving
PREG, PCE1, PCE2 and PWE as GPIO pins. These seem unused for 16 bit accesses
to the attribute memory but required for the 8 bit accesses to the ATA
controller's registers, causing the funny behaviour.
"Principle of maximum surprise."
oh, well....
Uli
prev parent reply other threads:[~2005-04-13 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-08 14:10 CompactFlash on PCMCIA problems Ulrich Eckhardt
2005-04-13 14:51 ` Ulrich Eckhardt [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=200504131651.05113.eckhardt@satorlaser.com \
--to=eckhardt@satorlaser.com \
--cc=linux-mips@linux-mips.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