lib: sbi: Add timer frequency to struct sbi_timer_device
authorAnup Patel <anup.patel@wdc.com>
Tue, 14 Sep 2021 16:21:48 +0000 (21:51 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 26 Sep 2021 14:22:10 +0000 (19:52 +0530)
commit12e7af9ab7ef9adf61b9138e2c38e3aeef3c140b
tree67d388a1d7a4435060beace5dbaba32679adef41
parent72154f4708de79816f0178b16223afa352b20e30
lib: sbi: Add timer frequency to struct sbi_timer_device

Generic mdelay() and udelay() functions can be provided by the
sbi_timer framework if timer frequency is available in the timer
instance provided by the platform support or timer driver.

This patch adds timer frequency (timer_freq) member in the
struct sbi_timer_device for above purpose.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Xiang W <wxjstz@126.com>
include/sbi/sbi_timer.h
include/sbi_utils/timer/aclint_mtimer.h
lib/utils/timer/aclint_mtimer.c
lib/utils/timer/fdt_timer_mtimer.c
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/kendryte/k210/platform.c
platform/kendryte/k210/platform.h
platform/nuclei/ux600/platform.c
platform/template/platform.c