Commit 69562118 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[AVR32] Implement intc_get_pending()

intc_get_pending() returns a bitmask with pending interrupts in a
interrupt controller group (irq). This is used by the upcoming
oprofile implementation for avr32 and may also be useful for chained
interrupt controller drivers.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent acc9252a
......@@ -136,3 +136,7 @@ fail:
panic("Interrupt controller initialization failed!\n");
}
unsigned long intc_get_pending(int group)
{
return intc_readl(&intc0, INTREQ0 + 4 * group);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment