This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to get AM335x ePWM interrupt



Hi

i'm writung a device driver which should handle the interrupt from a EPWM (ehrpwm1).

In the device driver i'm registering an interrupt handler

register_irq(87, ihandler, IRQF_TRIGGER_FALLING, "testdriver", NULL);

void*ptr = ioremap(0x48302000, 0x1000);

unsigned short* ETSEL = (unsigned short*)&ptr [0x200 + 0x32];

*ETSEL = 0x000F;   // see ATRM Table 15-81 ETSEL Register Field Descriptions

But no interrupts is triggered.

cat /proc/interrupts

shows

87:   0   4804c000.gpio   30 Edge   testdriver


What can i do ?

Best regards

Erich