[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] pcmcia and 802.11 cards



I have converted my design to a ise project, and am now working out of xps.
I have created a basic opb interface that ports the address, data, rnw, and
cs lines.

Im using the cirrus 6710 as a model for controls that are needed. I don't
plan to reproduce the timing, addressing, chip info, and other mapping
registers. It will have interrupt and power control. 

I assume that a custom pcmcia driver will be needed for linux, but hopefully
I can hack an existing one to achieve my results.

Most of the signals are brain-dead to reproduce, except for a few: CE1n,
CE2n, REGn. I plan to always transfer 16bit data, so CE1 and CE2 will follow
each other. The REGn signal is harder to understand. I don't understand
(yet) about how the bus gets into 'Memory Card' and 'I/O card' modes. Is it
set by the driver through a register in the interface chip?

Anyway, nearly done with my interface, except for the Reg pin. Researching
PCMCIA ethernet chip, I found most don't use any address line above A10.
This is also true for the prism 2,2.5,3 wlan chipsets as well as smcs
chipsets. This will save me IO pins.

As I have outgrown my spartan 3 demo pcb, I might do a quick board with a
sp3x1000 in the 256pin bga package. It will leave me with 700k gates free
and 40i/o pins. I think I'll stick on a ac97 codec and usb chip (i/o pins
free going to 0!).

Rich

-----Original Message-----
From: owner-microblaze-uclinux@itee.uq.edu.au
[mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of aurash
Sent: Saturday, October 23, 2004 2:06 AM
To: microblaze-uclinux@itee.uq.edu.au
Subject: Re: [microblaze-uclinux] pcmcia and 802.11 cards

Rich,

Se my comments inline

Richard Klosinski wrote:

>I'd like to start designing a pcmcia interface for my 
>microblaze/ucLinux system, and would like to know if anyone has had 
>experience making this connection. I have a few questions:
>

>1) I noticed that most pcmcia card side chipsets do now use address 
>lines a11:24. Can someone confirm this?
>  
>
I'm not an expert in PCs but ont the legacy PC you can have only 1024 I/O
ports (10 bit address) which means that the card will work in memory adresss
space (memory like interface)  - it will be interesting to find out if the
PCMCIA doesn't have a "dedicated" or recomanded address space, anyway on a
fpga doesn't really matter (you can play as you want) but will be nice to
try to stay in the same range for driver compatibility perspective 

>2) Obviously, the microblaze is 32 bits, so I plan to steer the 16bit 
>data to the upper/lower words depending on the lsb (a31 in the microblaze
world).
>Does this sound like it would work?
>  
>
yes will work nice, the only think is when you read you need muxes dor the
data (to steer 16 bits) exactly as you described, and you need to keep the
data lines in ZERO when the card is not selected (the opb bus has a ORed
tree structure on the incoming data path) and another thing is that you need
to generate an acknoledge on the OPB for each transaction request (simple
state machine) - it will be nice to be capable to setup the latency for this
ACK in order to deal with low speed peripherals.

>Anyone have words of en/dis-couragement before I start...
>
Go for it. WILL WORK.
I will publish on my website next week, a simple OPB_2_ISA attacment that
I'm using right now for my 10Mb ethernet chip (CS8900) this can be a good
start to develop your attachment. I'm very interested to attach pcmcia card
(802.11b) to my system as well, so we can share the pain

Aurash

>
>Thanks
>Rich.
>
>PS. If anyone is interested in the port to the nuhorizon sp3 demo 
>board, I can tar the new files with instructions on how to re-assemble 
>them. Sorry, Im not to savvy in the linux world of patches. The card is 
>now 100% functional (sdram, flash, 2 comm ports, and led to blink a
heartbeat).
>
>
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive : 
>http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
>  
>


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/