diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/qualcomm/ipq806x/timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/qualcomm/ipq806x/timer.c b/src/soc/qualcomm/ipq806x/timer.c index 0d44e4a07d..676c7f53e8 100644 --- a/src/soc/qualcomm/ipq806x/timer.c +++ b/src/soc/qualcomm/ipq806x/timer.c @@ -76,6 +76,11 @@ void udelay(unsigned usec) } while (runcount < val); } +void timer_monotonic_get(struct mono_time *mt) +{ + mono_time_set_usecs(mt, (readl(GPT_COUNT_VAL) * 1000) / GPT_FREQ_KHZ); +} + #if 0 /* |