Skip to contentSkip to conversation

Interrupts on PPC 405Gr

DISCUSSION MERRITT Nigel 2 participants 2 messages Feb 6, 2004

lore
Share & tools
lore
#1 lore raw
In reply to MERRITT Nigel
Quoted 7 lines · MERRITT Nigel

When calling request_irq, the irq number had to be 30, which is the bit in the UIC0_ER register that needs setting. I was passing it 5, which is the IRQ I wanted setting. When I changed the IRQ number to 30 it worked! I'm not sure if this is a screw up on my part for not passing the correct value in the first place, or an error in the Timesys kernel (surely the number passed in should be the IRQ required, not the bit position in the UIC registers).

It's your error, just think what you have to pass to request_irq if you want to hook UART0 interrupt...

IRQ5 - is _external_ (to the chip) interrupt line and NOT an interrupt number. _All_ UIC interrupts are external to the core (but not all of them are IRQx lines).

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#0 lore raw

Solved it. For your information...

When calling request_irq, the irq number had to be 30, which is the bit in the UIC0_ER register that needs setting. I was passing it 5, which is the IRQ I wanted setting. When I changed the IRQ number to 30 it worked! I'm not sure if this is a screw up on my part for not passing the correct value in the first place, or an error in the Timesys kernel (surely the number passed in should be the IRQ required, not the bit position in the UIC registers).

Nigel

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/