Skip to contentSkip to conversation

PCMCIA use

DISCUSSION Jim Lewis 4 participants 4 messages Oct 20, 1999

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines

Hello,

Has anyone out there done anything with PCMCIA on the 8xx?

Have a look at the IDE code. (8xx specific part)!
And check out the fadsrom code.

I tried to do some CIS parsing code a while ago, but I ended up with some cards working, some not.

Maybe we should use the pcmcia-cs package and modify it?

Good luck!

/ magnus

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Jim Lewis

pcmcia-cs hasn't been ported to the 8xx yet. Adding the 8xx pcmcia setup code necessary to initialize a slot and bring up a specific card isn't that hard. I've done it on other platform...just not Linux yet.

-Mark

Quoted 5 lines · Jim Lewis

Hello,

Has anyone out there done anything with PCMCIA on the 8xx?

Quoted 9 lines

Thanks,

--
Jim Lewis
Sr. Field Applications Engineer
MontaVista Software, Inc.
(817)261-9088 http://www.mvista.com

Mark S. Mathews

AbsoluteValue Software     Web:    http://www.absoval.com
P.O. Box 941149            e-mail: [email protected]
Maitland, FL 32794-1149    Phone:  407.644.8582
USA                        Fax:    407.539.1294

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
In reply to Jim Lewis
Quoted 4 lines · Jim Lewis

Hello,

Has anyone out there done anything with PCMCIA on the 8xx?

Yes. I put some hacks in the kernel to support an ATA/IDE flash card. At one time this worked, and with the IDE and interrupt stuff changing so much recently I am not sure if it works any longer. Look in the arch/ppc/kernel/m8xx_setup.c file. I have some more elaborate functions if you need better examples.

In addition to what is there, you also need to sense and enable the proper power supply, which is very implementation specific. You will also have to initialize the PCMCIA control/address registers and make sure it gets mapped in somplace (either a driver or mm/init.c).

I continue to have nightmares about porting pcmcia-cs to the 8xx, and should probably do it some day with David's help. Since my experience with applications using PCMCIA on the 8xx has been they are quite unique and static, I have always just initialized the interface for the application. Less code, less overhead.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/