summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_timer.h3
-rw-r--r--include/sbi_utils/timer/aclint_mtimer.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_timer.h b/include/sbi/sbi_timer.h
index 1ba6da05..211e83d7 100644
--- a/include/sbi/sbi_timer.h
+++ b/include/sbi/sbi_timer.h
@@ -17,6 +17,9 @@ struct sbi_timer_device {
/** Name of the timer operations */
char name[32];
+ /** Frequency of timer in HZ */
+ unsigned long timer_freq;
+
/** Get free-running timer value */
u64 (*timer_value)(void);
diff --git a/include/sbi_utils/timer/aclint_mtimer.h b/include/sbi_utils/timer/aclint_mtimer.h
index a9fe445a..f02cc62d 100644
--- a/include/sbi_utils/timer/aclint_mtimer.h
+++ b/include/sbi_utils/timer/aclint_mtimer.h
@@ -24,6 +24,7 @@
struct aclint_mtimer_data {
/* Public details */
+ unsigned long mtime_freq;
unsigned long mtime_addr;
unsigned long mtime_size;
unsigned long mtimecmp_addr;