AT91 Advanced Interrupt Controller
Subsystems (2)
PATCH 3/14 AT91 Advanced Interrupt Controller
Emulation of AIC has 32 input pins corresponding to the input interrupt sources and two output pins corresponding to the IRQ and FIQ pins on the processor. All features of the controller with the exception of external interrupt handling are emulated according to the documentation. This includes emulation of the debug register, edge and level triggered interrupts, software interrupts and interrupt nesting.
External interrupt handling is not implemented because it differs between various AT91 family microcontrollers in the number of externally exposed pins. The only feature of the external interrupt processing that is not implemented is inverting the level of input signal. Should the need arise, adding proper implementation of external interrupt logic shouldn't be hard.
--- Makefile.target | 1 + hw/at91_aic.c | 364 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 365 insertions(+), 0 deletions(-) create mode 100644 hw/at91_aic.c
Makefile.target +1 -0
@@ -666,6 +666,7 @@ obj-y += framebuffer.o obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o obj-y += syborg_virtio.o +obj-y += at91_aic.o obj-y += gpio_rotary.o gpio_keypad.o CPPFLAGS += -DHAS_AUDIO endif
hw/at91_aic.c new file +364 -0
364 lines not on this page · raw message
Signature · 1 line
1.6.3.msysgit.0