Welcome! Log In Create A New Profile


Assign an IRQ to a GPIO

Posted by Maurus 
Assign an IRQ to a GPIO
June 11, 2009 04:09AM

I'm currently developing on a DMP Vortex86DX cpu board. My next aim is to receive and handle an interrupt if there are new signals from certain GPIO Ports.

The Board is using two 8259 compatible interrupt controllers. In the BIOS I can switch the pins from
GPIO to 8051 PO mode.

My questions:
- How to assign an IRQ in my Linux device driver to a single i/o pin?
- Do I have to program (somehow) the 8259 interrupt controller in order to route an interrupt to a single pin or a bank of pins?
- Do I have to set the pins into 8051 PO mode?
- In General: Does Linux reserves all IRQs for its self on the 8259 and dispatch them to the several device drivers instances?
- How much depends this task on the used hardware. Means: Do I need a solder gun?

thanks for your help.

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 19 plus 25?