wdt_i6300esb: register a reset function
commitfa82e9c300df6f7b8bd44a26ac752c4ea5da02c1
authorBernhard Kohl <bernhard.kohl@nsn.com>
Wed, 8 Dec 2010 14:59:55 +0000 (8 15:59 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Dec 2010 18:36:31 +0000 (11 18:36 +0000)
treebc9655e214243dc745d915521d19d54e183a5f53
parent74782223de16e30940630b2bdb488e650ece6cd4
wdt_i6300esb: register a reset function

The device shall set its default hardware state after each reset.
This includes that the timer is stopped which is especially important
if the guest does a reboot independantly of a watchdog bite. I moved
the initialization of the state variables completely from the init
to the reset function which is called right after init during the
first boot and afterwards during each reboot.

Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/wdt_i6300esb.c