]> git.dujemihanovic.xyz Git - u-boot.git/commit
timer: npcm: Change counter source
authorJim Liu <jim.t90615@gmail.com>
Mon, 29 Jul 2024 09:04:06 +0000 (17:04 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 27 Aug 2024 21:37:18 +0000 (15:37 -0600)
commitb70865e6b94fe81ddc4eb48f45b574eae80ee035
treeb41b602aa52ce56bf3e7df1dd239efce26d82295
parent7c17f02283d57c529a5736a602050ec3524cd509
timer: npcm: Change counter source

The counter value read from TDR register may not be correct.
Read SECCNT and CNTR25M instead to get the correct timestamp.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
drivers/timer/npcm-timer.c