mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/timer: Adding watchdog for NPCM7XX Timer.
The watchdog is part of NPCM7XX's timer module. Its behavior is controlled by the WTCR register in the timer. When enabled, the watchdog issues an interrupt signal after a pre-set amount of cycles, and issues a reset signal shortly after that. Reviewed-by: Tyrone Ting <kfting@nuvoton.com> Signed-off-by: Hao Wu <wuhaotsh@google.com> Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: deleted blank line at end of npcm_watchdog_timer-test.c] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2ac88848cb
commit
7d378ed6e3
8 changed files with 624 additions and 54 deletions
|
@ -31,6 +31,8 @@
|
|||
*/
|
||||
#define NPCM7XX_CLK_NR_REGS (0x70 / sizeof(uint32_t))
|
||||
|
||||
#define NPCM7XX_WATCHDOG_RESET_GPIO_IN "npcm7xx-clk-watchdog-reset-gpio-in"
|
||||
|
||||
typedef struct NPCM7xxCLKState {
|
||||
SysBusDevice parent;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue