5 #include <soc/ipq_timer.h>
11 #define DGT_MHZ_NUM 25
14 #define TIMER_TICKS(us) ((DGT_MHZ_NUM*(us) + (DGT_MHZ_DEN - 1)) / DGT_MHZ_DEN)
15 #define TIMER_USECS(ticks) (DGT_MHZ_DEN*(ticks) / DGT_MHZ_NUM)
18 #define DGT_CLK_DIV_1 0
19 #define DGT_CLK_DIV_2 1
20 #define DGT_CLK_DIV_3 2
21 #define DGT_CLK_DIV_4 3
61 while (curr_ticks < ticks) {
63 curr_ticks += now - last;
static void mono_time_set_usecs(struct mono_time *mt, long us)
__weak void init_timer(void)
void udelay(unsigned int usec)
void timer_monotonic_get(struct mono_time *mt)
#define TIMER_USECS(ticks)