mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-09-08 18:21:29 +01:00
Drivers and other library code sometimes need the timer frequency outside of lib/sbi/sbi_timer.c, but there is currently no accessor for it. Add sbi_timer_frequency() to expose the frequency of the registered timer device. Signed-off-by: Sunil V L <sunilvl@oss.qualcomm.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260703050530.2460037-2-sunilvl@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>