Add rtc reset function.
commiteeb7c03c0f49a8678028a734f1d6575f36a44edc
authorGleb Natapov <gleb@redhat.com>
Mon, 8 Jun 2009 12:56:04 +0000 (8 15:56 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 15 Jun 2009 02:50:09 +0000 (14 21:50 -0500)
treed6dcca9f73faa611535a7cb35b6b6cc84b053395
parente19252d32c45e92c919109ec32616382eb2afe6b
Add rtc reset function.

On reset:
Periodic Interrupt Enable (PIE) bit is cleared to zero
Alarm Interrupt Enable (AIE) bit is cleared to zero
Update ended Interrupt Flag (UF) bit is cleared to zero
Interrupt Request status Flag (IRQF) bit is cleared to zero
Periodic Interrupt Flag (PF) bit is cleared to zero
Alarm Interrupt Flag (AF) bit is cleared to zero
Square Wave output Enable (SQWE) zero

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/mc146818rtc.c