I'm not sure which kernel you use, but for some time there has been GPIO
interrupt support that hides most of the lower level register accessing.
You should setup the PINMUXing to make sure your pin is GPIO mapped. You
can then use gpio_to_irq function to convert a GPIO number to an IRQ.
Afterwards, you request the irq normally.
Sorry, but I have difficutly in understanding everything below. It
sounds like you are trying to read the GPIO input and it doesn't change.
Check PINMUX and also make sure you call gpio_direction_input();.
Steve
On 05/19/2010 09:51 PM, liuyue18301 wrote:
hello everybody:
i want to take gpio1 in dm6446 as inpterrupt source, now i have
configure the gpio register.but i have some questions
first, in my driver i take a test.read the gpio interrupt status
register all the time, but when i press the button,it has make a
interrupt input,i have validated it by the Oscilloscope.but the status
is 0 not changed, i do not know the reason.
second. i have write my interrupt rountie,if i registe the isr by
request_irq successfully,if there is a interrupt input,my isr can be
called automaticlly
thank you
------------------------------------------------------------------------
?????????????????????????????????????????? <http://ym.163.com/?from=od3>
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source