]> git.proxmox.com Git - mirror_qemu.git/commit
aspeed/wdt: Check correct register for clock source
authorAmithash Prasad <amithash@fb.com>
Wed, 25 Sep 2019 14:32:26 +0000 (16:32 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:04 +0000 (18:09 +0100)
commit1ff68783f6e94b3c1ab909f92911a04d7183241c
treec3ee5e56804adc88a16c8416d3311f7968a6ce17
parent6ee18643770b360da0c8ee44aa07708caa516fa9
aspeed/wdt: Check correct register for clock source

When WDT_RESTART is written, the data is not the contents
of the WDT_CTRL register. Hence ensure we are looking at
WDT_CTRL to check if bit WDT_CTRL_1MHZ_CLK is set or not.

Signed-off-by: Amithash Prasad <amithash@fb.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20190925143248.10000-2-clg@kaod.org
[clg: improved Suject prefix ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/watchdog/wdt_aspeed.c