]> Git Repo - u-boot.git/commit
timer: Add helper for drivers using timebase fallback
authorSean Anderson <[email protected]>
Mon, 28 Sep 2020 14:52:22 +0000 (10:52 -0400)
committerAndes <[email protected]>
Wed, 30 Sep 2020 00:54:45 +0000 (08:54 +0800)
commit3576121687965ffe580fc44f5dd1d8e9ab434c5b
tree7c9b33bba348375cd647da2f7f03891b34b9622e
parentc33efafaf949ef11fc525cd5be018ea48c40898c
timer: Add helper for drivers using timebase fallback

This function is designed to be used when a timer used to be initialized by
the cpu (e.g. RISC-V timers), but now is initialized by dm_timer_init. In
such a case, the timer may prefer to use the clocks and clock-frequency
properties, but should be able to fall back on using the cpu's
timebase-frequency.

Signed-off-by: Sean Anderson <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
drivers/timer/timer-uclass.c
include/timer.h
This page took 0.033713 seconds and 4 git commands to generate.