Interrupts on GPIO
Yann Pelletier
ypelletier at haivision.com
Tue Mar 31 02:57:27 EST 2009
Hi,
I'd like to add supports for interrupts handling from GPIO controller. Some of these interrupts are from I2C devices and some others are from SPI devices.
What is the best approach to enable interrupts handling for those devices through GPIO.
Note that I'm developing on a custom board based on mpc8313_rdb using linux 2.6.28.5
Also,
# cat /proc/interrupts
CPU0
16: 60 IPIC Level serial
17: 0 IPIC Level fpga
18: 4 IPIC Level mpc83xx_spi
21: 0 IPIC Level i2c-mpc
22: 7 IPIC Level i2c-mpc
According to my platform device tree, serial irq should be on int9, SPI on int16 and i2c on int14,15. This causes me some problems as I need int18 to map to external IRQ2.
Thanks for support.
Yann
More information about the Linuxppc-dev
mailing list