ts-7000
[Top] [All Lists]

Re: [ts-7000] Skeleton GPIO device driver

To:
Subject: Re: [ts-7000] Skeleton GPIO device driver
From: Andy Gryc <>
Date: Mon, 02 May 2005 18:56:13 -0400
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/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU