From: Ulrich Eckhardt <eckhardt@satorlaser.com>
To: linux-mips@linux-mips.org
Subject: Re: PCMCIA on AU1200
Date: Tue, 31 Jan 2006 15:03:52 +0100 [thread overview]
Message-ID: <200601311503.52130.eckhardt@satorlaser.com> (raw)
In-Reply-To: <1138703953.7932.36.camel@localhost.localdomain>
On Tuesday 31 January 2006 11:39, Matej Kupljen wrote:
> I am trying to use PCMCIA on a DBAU1200 with 16bit card.
>
> From the docs for the board, I see that the PCMCIA interface
> is on CE[3], but the value of the mem_staddr3 is
> 0x1000000.
>
> Looking at the Linux source code, I see that the PCMCIA is
> ioremap-ed to 0xf00000000 (36 bit). It also uses PSEUDO
> addresses for the skt->phys_attr and skt->phys_mem.
>
> At what (physical) address can I find the card's I/O space,
> so I can use tools like devmem2 to see the cards CIS?
> Should I configure mem_stadd3 to same other value?
> To 0xf0000000?
I'm not exactly sure what your problems are, but maybe this helps you achieve
what you want.
Firstly, 0xf 0000 0000 is the 36 bit physical address. This address is mapped
by the driver via ioremap() into a 32 bit virtual address. Now, I think there
are three macros for the PCMCIA memory regions (at least there were for the
Au1100), which you can ioremap() separately.
Now, what gave me most trouble where two other things that needed to be done
for my board (they might be different for you):
1. configure the static bus controller
This mainly means selecting the right timing parameters and switching the
right bits on and off. You definitely need to read the programmer's handbook
from AMD/Alchemy.
2. turn on power
In my case, power on and card detect were wired to some GPIO pins, so I had to
switch them to the right level. This might require additional configuration
in advance, too, but you can check the results using a simple voltmeter.
However: The DB boards are generally supported by Linux, so I wonder why you
need to do anything at all.
Uli
next prev parent reply other threads:[~2006-01-31 13:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 10:39 PCMCIA on AU1200 Matej Kupljen
2006-01-31 10:39 ` Matej Kupljen
2006-01-31 14:03 ` Ulrich Eckhardt [this message]
2006-01-31 19:41 ` Matej Kupljen
2006-01-31 20:49 ` Jordan Crouse
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=200601311503.52130.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.