Hi Dan,
I'm in the middle of attempting this myself. The first thing to know is
that the current kernel doesn't have the GPIO IRQ supported because of
an oversight from Cirrus Logic. You need to either patch the kernel to
allow up to IRQ 59, or I can post the kernel I've built from ts8 with
that patch. So you need to at least start there. There's a bunch of
notes in the history that both describe how to build the kernel and the
details of the GPIO IRQ patch (look for an email from me and a reply a
couple of days later from Jesse).
Secondly, I haven't yet had success getting the IRQ to fire. I don't
know if I'm programming the GPIOs properly or not, but I think I am.
However, I haven't yet been able to see any evidence of it working.
I'll probably be working on it further tonight to double-check everything.
I'm willing to share what I've written once I get it working, but I
don't like to give out knowingly broken code. My driver is going to be
rather simplistic, and I've done things in a general sort of way, so it
should be useful as an example once I'm finished. If you want to give
me a hand in the meantime, I'd welcome it!
--Andy Gryc
Dan wrote:
>Before I decide to take the plunge and write an interrupt driven GPIO
>device driver for Linux I wanted to see if anyone else on this group
>has written one up that they wouldn't mind sharing. I'm looking for
>anything I can use as a base to attempt to write the driver with.
>
>-dan
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|