summaryrefslogtreecommitdiff
path: root/platform/nuclei
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-09-14 19:21:48 +0300
committerAnup Patel <anup@brainfault.org>2021-09-26 17:22:10 +0300
commit12e7af9ab7ef9adf61b9138e2c38e3aeef3c140b (patch)
tree67d388a1d7a4435060beace5dbaba32679adef41 /platform/nuclei
parent72154f4708de79816f0178b16223afa352b20e30 (diff)
downloadopensbi-12e7af9ab7ef9adf61b9138e2c38e3aeef3c140b.tar.xz
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>
Diffstat (limited to 'platform/nuclei')
-rw-r--r--platform/nuclei/ux600/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c
index ab0becc..6bef4c4 100644
--- a/platform/nuclei/ux600/platform.c
+++ b/platform/nuclei/ux600/platform.c
@@ -74,6 +74,7 @@ static struct aclint_mswi_data mswi = {
};
static struct aclint_mtimer_data mtimer = {
+ .mtime_freq = UX600_TIMER_FREQ,
.mtime_addr = UX600_ACLINT_MTIMER_ADDR +
ACLINT_DEFAULT_MTIME_OFFSET,
.mtime_size = ACLINT_DEFAULT_MTIME_SIZE,