Re: Finding Hardware Interrupt Number

Allon Stern <[email protected]> Wed, 11 Jun 2008 11:34:45 -0400
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
On Jun 11, 2008, at 2:49 AM, Greg Ungerer wrote:

> Hi Fahd,
>
> Fahd Abidi wrote:
>> I am wondering if some one can point me in the right direction. We  
>> have a platform where we are using Interrupt Pin 5 on our coldfire  
>> MCF5275, we are running a UCLinux kernel 2.4 and I am trying to  
>> figure out which IRQ number in the kernel maps to Hardware  
>> Interrupt 5? Is there an easy way to figure this out?
>
> The IRQ number that you pass to request_irq() in uClinux is the
> vector number. So figure out what vector number GPIO5 interrupts on
> and use that.

One potential gotcha - at least it got me on the 5282; I don't know  
how this maps to the 5275:
I had to set up the hardware to enable interrupts on the IRQ line  
(EPIER register) and unmask the interrupt (IMRL register).

Once those were done, I could request_irq.
In my linux environment (2.6), the interrupt# was IH_GPIO_BASE+4 (for  
IRQ pin 4)

Hope this helps.
-
allon
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.