[ECOS] PCMCIA Slot State Location
Lewin A.R.W. Edwards
larwe@larwe.com
Thu Jun 21 12:33:00 GMT 2001
>unsigned long new_state = *(unsigned*)SA11X0_GPIO_PIN_LEVEL;
>SA11X0_GPIO_PIN_LEVEL must obviously be a memory address for card slot
>state information. Does anyone have any idea where this would be for
>the EDB7111-2 board?
It's a 32-bit value referencing the 28 GPIO pins on the SA1100/1110. The
masking of these bits depends on how the particular implementation chose to
wire the signals to PCMCIA signals; the GPIO bits are as the name implies
"general purpose" and not specifically dedicated to PCMCIA functions.
On the 7312 the bits you need will be in the PORTA,B,C,D,E registers. (I
have the EDB7209 with 7212 on it, no PS6700, so I don't know how Cirrus
wired it).
-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/
"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
(Theodore Roosevelt)
More information about the Ecos-discuss
mailing list