GPIO interrupt on AMCC 460EX

Stefan Roese sr at denx.de
Fri Aug 29 01:20:13 EST 2008


Felix,

On Thursday 28 August 2008, Felix Radensky wrote:
> I'm writing a Linux driver for CPLD access on custom
> 460EX based board. CPLD generates interrupt, which
> is connected to GPIO pin 45. According to 460EX user
> manual, this pin, if configured as alternate function 3,
> will generate external interrupt 12, which is mapped into
> irq 20 on UIC3.  My question is - how do I get irq number
> suitable for passing to request_irq().

arch/powerpc now used virtual interrupts. You need to include this hardware 
interrupt number into your device-tree (create a new node for your CPLD) and 
extract the virtual irq number from there by calling irq_of_parse_and_map().

Best regards,
Stefan


More information about the Linuxppc-embedded mailing list