1
linux/arch/mips/rb532
Phil Sutter 4aa0f4d726 MIPS: RB532: Add set_type() function to IRQ struct.
Interrupt Group 4 mapps the GPIO pins enabled as interrupt sources;
add defines to make this clear when addressing them later in code.

The mapped GPIOs support triggering on either level high or low. To
achieve this, the set_type() function calls rb532_gpio_set_ilevel() for
interrupts of the above mentioned group.

As there is no way to alter the triggering characteristics of the other
interrupts, accept level triggering on status high only. (This is just a
guess; but as the system boots fine and interrupt-driven devices (e.g.
serial console) work with no implications, it seems to be right.)

To clear a GPIO mapped IRQ, the source has to be cleared (i.e., the
interrupt status bit of the corresponding GPIO pin). This is done inside
rb532_disable_irq().

After applying these changes I could undo most of my former "fixes" to
pata-rb532-cf. Particularly all interrupt handling can be done
generically via set_irq_type() as it was before.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-01-30 21:32:59 +00:00
..
devices.c MIPS: RB532: GPIO register offsets are relative to GPIOBASE 2008-11-20 19:42:32 +00:00
gpio.c MIPS: RB532: Fix bit swapping in rb532_set_bit() 2009-01-30 21:32:59 +00:00
irq.c MIPS: RB532: Add set_type() function to IRQ struct. 2009-01-30 21:32:59 +00:00
Makefile
prom.c MIPS: RB532: Remove obsolute reference to setup_serial_port 2008-10-11 16:18:46 +01:00
serial.c MIPS: RB532: Cleanup the headers again 2008-10-11 16:18:46 +01:00
setup.c MIPS: RB532: Cleanup the headers again 2008-10-11 16:18:46 +01:00
time.c MIPS: Kill unused <asm/debug.h> inclusions 2008-10-15 12:46:52 +01:00