AnsweredAssumed Answered

P2040: How to configure GPIO as an interrupt

Question asked by gourav jain on Dec 27, 2018
Latest reply on Jan 6, 2019 by ufedor

Hi,

In my custom board, based on P2040rdb, tired to configure GPIO22/IRQ04 as an interrupt.

Kept RCW bit[373]= 0 and GPICR = 0x00000200 and EIVPR2 = 0x80080002 (it must rigger on high to low).

 

While inserting module im getting error,

genirq: Setting trigger mode 0 for irq22 failed ((mpc8xxx_irq_set_type+0x0/0xec)).

And not able to catch interrupt.

 

root@hmd-modem::~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
16: 0 0 0 0 OpenPIC Edge mpic-error-int
22: 0 0 0 0 mpc8xxx-gpio Edge CYCLONE_GPIO_IRQ22

 

 

 

Pls let me know if i'm missing anything here.

Thanks in advance.

 

--

Gourav

Outcomes