Lines Matching refs:timer
27 static void lpc32xx_timer_reset(struct timer_regs *timer, u32 freq) in lpc32xx_timer_reset() argument
29 writel(TIMER_TCR_COUNTER_RESET, &timer->tcr); in lpc32xx_timer_reset()
30 writel(TIMER_TCR_COUNTER_DISABLE, &timer->tcr); in lpc32xx_timer_reset()
31 writel(0, &timer->tc); in lpc32xx_timer_reset()
32 writel(0, &timer->pr); in lpc32xx_timer_reset()
35 writel(TIMER_CTCR_MODE_TIMER, &timer->ctcr); in lpc32xx_timer_reset()
38 writel((get_periph_clk_rate() / freq) - 1, &timer->pr); in lpc32xx_timer_reset()
41 writel(0, &timer->mcr); in lpc32xx_timer_reset()
44 static void lpc32xx_timer_count(struct timer_regs *timer, int enable) in lpc32xx_timer_count() argument
47 writel(TIMER_TCR_COUNTER_ENABLE, &timer->tcr); in lpc32xx_timer_count()
49 writel(TIMER_TCR_COUNTER_DISABLE, &timer->tcr); in lpc32xx_timer_count()