Lines Matching +full:clk +full:- +full:delay +full:- +full:cycles

2  * linux/arch/arm/mach-omap1/time.c
38 #include <linux/delay.h>
41 #include <linux/clk.h>
77 return readl(&timer->read_tim); in omap_mpu_timer_read()
84 writel(readl(&timer->cntl) | MPU_TIMER_AR, &timer->cntl); in omap_mpu_set_autoreset()
91 writel(readl(&timer->cntl) & ~MPU_TIMER_AR, &timer->cntl); in omap_mpu_remove_autoreset()
103 writel(MPU_TIMER_CLOCK_ENABLE, &timer->cntl); in omap_mpu_timer_start()
105 writel(load_val, &timer->load_tim); in omap_mpu_timer_start()
107 writel(timerflags, &timer->cntl); in omap_mpu_timer_start()
114 writel(readl(&timer->cntl) & ~MPU_TIMER_ST, &timer->cntl); in omap_mpu_timer_stop()
118 * ---------------------------------------------------------------------------
120 * ---------------------------------------------------------------------------
122 static int omap_mpu_set_next_event(unsigned long cycles, in omap_mpu_set_next_event() argument
125 omap_mpu_timer_start(0, cycles, 0); in omap_mpu_set_next_event()
155 evt->event_handler(evt); in omap_mpu_timer1_interrupt()
165 omap_mpu_timer_start(0, (rate / HZ) - 1, 1); in omap_init_mpu_timer()
169 1, -1); in omap_init_mpu_timer()
174 * ---------------------------------------------------------------------------
175 * MPU timer 2 ... free running 32-bit clock source and scheduler clock
176 * ---------------------------------------------------------------------------
193 if (clocksource_mmio_init(&timer->read_tim, "mpu_timer2", rate, in omap_init_clocksource()
200 struct clk *ck_ref = clk_get(NULL, "ck_ref"); in omap_mpu_timer_init()
223 * ---------------------------------------------------------------------------
225 * ---------------------------------------------------------------------------