AT91 Reset Controller
Subsystems (2)
PATCH 9/14 AT91 Reset Controller
This patch introduces emulation of the AT91 reset controller. The behavior and external interface to the reset controller is not emulated though and only the features necessary to start the system are implemented.
Internal registers are maintained and partially emulated. The NRST status bit is always asserted, even if a command to de-assert it is written to the control register.
This emulation is sufficient to support running FreeRTOS and a sample code from Atmel.
Signed-off-by Filip Navara <[email protected]>
--- Makefile.target | 1 + hw/at91_rstc.c | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+), 0 deletions(-) create mode 100644 hw/at91_rstc.c
Makefile.target +1 -0
@@ -667,6 +667,7 @@ 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 at91_dbgu.o at91_pio.o at91_pit.o at91_pmc.o at91_rtt.o +obj-y += at91_rstc.o obj-y += gpio_rotary.o gpio_keypad.o CPPFLAGS += -DHAS_AUDIO endif
hw/at91_rstc.c new file +155 -0
155 lines not on this page · raw message
Signature · 1 line
1.6.3.msysgit.0