6 #include <soc/ipq_timer.h>
9 #define GCNT_FREQ_MHZ 48
11 #define TIMER_TICKS(us) (GCNT_FREQ_MHZ * (us))
12 #define TIMER_USECS(ticks) ((ticks) / GCNT_FREQ_MHZ)
39 return ((((
uint64_t)hi) << 32) | lo);
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
static void mono_time_set_usecs(struct mono_time *mt, long us)
__weak void init_timer(void)
void udelay(unsigned int usec)
#define GCNT_GLB_CNTCV_HI
#define GCNT_GLB_CNTCV_LO
void timer_monotonic_get(struct mono_time *mt)
#define TIMER_USECS(ticks)
static uint64_t read_gcnt_val(void)
unsigned long long uint64_t