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>
Showing
- hw/arm/npcm7xx.c 5 additions, 0 deletionshw/arm/npcm7xx.c
- hw/timer/npcm7xx_timer.c 18 additions, 21 deletionshw/timer/npcm7xx_timer.c
- include/hw/misc/npcm7xx_clk.h 0 additions, 6 deletionsinclude/hw/misc/npcm7xx_clk.h
- include/hw/timer/npcm7xx_timer.h 1 addition, 0 deletionsinclude/hw/timer/npcm7xx_timer.h
Loading
Please register or sign in to comment