diff options
author | Hao Wu | 2021-01-08 20:09:41 +0100 |
---|---|---|
committer | Peter Maydell | 2021-01-12 22:19:02 +0100 |
commit | 0be12dc76aabda6399a28d9b5e450da2bb94cb22 (patch) | |
tree | adafafb14699cfbbcb537eef924ed9e71305f90f /include/hw/timer | |
parent | hw/misc: Add clock converter in NPCM7XX CLK module (diff) | |
download | qemu-0be12dc76aabda6399a28d9b5e450da2bb94cb22.tar.gz qemu-0be12dc76aabda6399a28d9b5e450da2bb94cb22.tar.xz qemu-0be12dc76aabda6399a28d9b5e450da2bb94cb22.zip |
hw/timer: Refactor NPCM7XX Timer to use CLK clock
This patch makes NPCM7XX Timer to use a the timer clock generated by the
CLK module instead of the magic number TIMER_REF_HZ.
Reviewed-by: Havard Skinnemoen <hskinnemoen@google.com>
Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20210108190945.949196-3-wuhaotsh@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/timer')
-rw-r--r-- | include/hw/timer/npcm7xx_timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/timer/npcm7xx_timer.h b/include/hw/timer/npcm7xx_timer.h index 6993fd723a..d45c051b56 100644 --- a/include/hw/timer/npcm7xx_timer.h +++ b/include/hw/timer/npcm7xx_timer.h @@ -101,6 +101,7 @@ struct NPCM7xxTimerCtrlState { uint32_t tisr; + Clock *clock; NPCM7xxTimer timer[NPCM7XX_TIMERS_PER_CTRL]; NPCM7xxWatchdogTimer watchdog_timer; }; |