82xx IRQ handling

Dmytro Bablinyuk dmytro.bablinyuk at rftechnology.com.au
Mon Dec 12 13:42:42 EST 2005


Hi everybody,

I am trying to setup an IRQ handler for IRQ4:

#define IRQ          SIU_INT_IRQ4

volatile cpm2_map_t *immap;
int irq_flags = 0;

immap = (cpm2_map_t *)CPM_MAP_ADDR;

immap->im_intctl.ic_simrh &= ~(0x0800);

request_irq(IRQ,	
             &irq_handler,	/* our handler */
             irq_flags,
             "interrupt_test",
             NULL);

immap->im_intctl.ic_simrh |= 0x0800;

I can see on a scope that IRQ line pulls up/down but handler get never
called. I am sure I made some very stupid mistake here but I will really
appreciate if somebody can help me with this.

Thank you

Dmytro





More information about the Linuxppc-embedded mailing list