Hi,
I wanted to configure the GPIO pin 9 on imx6 board as interrupt. I have added the following configurations
ret = gpio_request((unsigned int)bridge.nGpio,"Interrupt");
ret = gpio_direction_input((unsigned int)bridge.nGpio);
ret = gpio_export((unsigned int)bridge.nGpio, 1);
bridge.irq = gpio_to_irq((unsigned int)bridge.nGpio);
The interrupts keeps on coming on imx6 but even though my device does not generate any interrupt. Is anything else required to be added on my gpio config side.
Regards,
Amonica
Hi AGNES
please start with checking links below
http://android.serverbox.ch/?p=972 | GPIO interr Android |
http://blog.skerpa.com/dschnell/blog/2013/10/27/linux-and-gpio-userspace-interrupts/
Also it may be suefyl to check pad with oscilloscope for actual
signal state.
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------