Home
last modified time | relevance | path

Searched refs:TIMER_CTL_REG (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dtimer-sun4i.c30 #define TIMER_CTL_REG(val) (0x10 * val + 0x10) macro
58 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
59 writel(val & ~TIMER_CTL_ENABLE, base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
72 u32 val = readl(base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
80 base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
180 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
202 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
H A Dtimer-sun5i.c24 #define TIMER_CTL_REG(val) (0x20 * (val) + 0x10) macro
68 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
69 writel(val & ~TIMER_CTL_ENABLE, ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
81 u32 val = readl(ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
89 ce->base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_start()
181 base + TIMER_CTL_REG(1)); in sun5i_setup_clocksource()