Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Matej Kupljen <matej.kupljen@ultra.si>
To: Ulrich Eckhardt <eckhardt@satorlaser.com>
Cc: linux-mips@linux-mips.org
Subject: Re: PCMCIA on AU1200
Date: Tue, 31 Jan 2006 20:41:53 +0100	[thread overview]
Message-ID: <1138736513.7884.16.camel@localhost.localdomain> (raw)
In-Reply-To: <200601311503.52130.eckhardt@satorlaser.com>

Hi

> 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. 

Yes, in the drivers/pcmcia/au1000_generic.c.
Also, the skt->phys_attr and the skt->phys_mem are set to
0xF4000000 and 0xF8000000 respectively and I wonder, where they got
those values? 

> 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.

I am reading the specs for the CPU. 
That is my problem, I do not to what value should I set CE[3], namely
mem_stadd3 register. which select the physical address that asserts 
the CE[3]. I think this should be set up by bootloader. I am using
U-Boot, but I have checked also the Yamon and it does not work, also.

> 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.

The power is detected and the power is turned ON (I can set the LED on
the PCMCIA card blinking).

> However: The DB boards are generally supported by Linux, so I wonder why you 
> need to do anything at all.

Yes. I am using kernel 2.6.15 and when I insert card into the slot,
Linux detects it and turns on the power.
I do not have the board here right now, so I'll post the messages from
the cardmngr tomorrow.

Thanks for the answers.

BR,
Matej

  reply	other threads:[~2006-01-31 19:37 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
2006-01-31 19:41   ` Matej Kupljen [this message]
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=1138736513.7884.16.camel@localhost.localdomain \
    --to=matej.kupljen@ultra.si \
    --cc=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