Skip to contentSkip to conversation

AT91 Reset Controller

PATCH In review Filip Navara 1 participant 1 message Jul 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 8d7c7d1..40a4adb 100644
@@ -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