Thread (5 messages) flat view 5 messages, 2 authors, 2006-06-06

Re: snd-aoa: using feature calls for GPIOs

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2006-06-05 12:44:09

On Mon, 2006-06-05 at 13:11 +1000, Benjamin Herrenschmidt wrote:
The platform function write bit 0 of the register only afaik. Bit 0x4 is
"output enable" so if you clear it, your GPIOs won't do much :)
Aha! Yes, I had read the code wrongly, I figured the pmfs only wrote but
in fact there's a read/mask too. Thanks :)
Also, bit 0x2 is the input data, though it's only useful if "output
enable" is cleared (or it will just reflect the state of the outputs).
Yeah ok, I'll change/retest the patch during the week.

Thanks,
johannes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help