
26 Feb
2022
26 Feb
'22
7:37 p.m.
On Mon, 14 Feb 2022 at 19:34, Stanley Chu stanley.chuys@gmail.com wrote:
Enable a periodic timer on NPCM SoCs and implement the get_count timer ops.
Signed-off-by: Stanley Chu yschu@nuvoton.com
v3:
- use driver data for clock setting on different chips
- remove unnecessary code of zeroing priv variables
- more help description in Kconfig
v2:
- calculate the prescale value, not hardcode
drivers/timer/Kconfig | 9 +++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 115 +++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 drivers/timer/npcm-timer.c
Reviewed-by: Simon Glass sjg@chromium.org