hw/timer: Refactor NPCM7XX Timer to use CLK clock
commit0be12dc76aabda6399a28d9b5e450da2bb94cb22
authorHao Wu <wuhaotsh@google.com>
Fri, 8 Jan 2021 19:09:41 +0000 (8 11:09 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Jan 2021 21:19:02 +0000 (12 21:19 +0000)
treeadafafb14699cfbbcb537eef924ed9e71305f90f
parentbcda710f6c44098fc828b61630449cabcce0ae55
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>
hw/arm/npcm7xx.c
hw/timer/npcm7xx_timer.c
include/hw/misc/npcm7xx_clk.h
include/hw/timer/npcm7xx_timer.h