Aug. 25th, 2004

robbat2: (Default)
Working on the PCMCIA driver today. Doing a fair bit of code refactoring to make life easier.

Have two snippets:
a) au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<14))|(1<<30), GPIO2_OUTPUT);
b) au_writel((au_readl(GPIO2_PINSTATE) | (1<<14))|(1<<30), GPIO2_OUTPUT);

The 1<<14 indicates a specific location to set, and the 1<<30 says to enable output on that location.

In arch/mips/au1000/xxs1500/board_setup.c, snippet a is commented as 'turn off power'.

In drivers/pcmcia/au1000_xxs1500.c, snippet a is commented as 'turn on power', and snippet b is commented as 'turn off power'.

Which one do I trust? I don't have any wiring diagrams for the unit, so your guess is as good as mine. The CPU here uses a mix of negated and normal pins, so both options could work.

I guess it's just time for trial and error.

I'm still not sure which is right (If I can't solve it, I'll ask mycable), and I've got a few other PCMCIA glitches to deal with still, but it's mostly done. Patch up in the usual place, along with the latest console log.
robbat2: (Default)
For the geeks and security-conscious amongst us, there will be a PGP keysigning event here in Vancouver. September 1st, 7pm. I will be attending, as will a notary on the Gossamer Spider Web of Trust (GSWoT) and an OpenCA Assurer.

Think Coffee Lounge & Bistro
4512 10th Avenue West,
Vancouver, BC V6R2J1
(604) 228-9510

Please see http://lunar.ca/keysigning.htm for further details and instructions of things that must be done before attending.

Please circulate this announcement amongst anybody you know that uses PGP.

May 2017

S M T W T F S
 123456
78910111213
141516171819 20
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags