Source
579
579
580
580
omap_dm_timer_write_reg(timer, OMAP_TIMER_TRIGGER_REG, 0);
581
581
/* Save the context */
582
582
timer->context.tclr = l;
583
583
timer->context.tldr = load;
584
584
omap_dm_timer_disable(timer);
585
585
return 0;
586
586
}
587
587
588
588
/* Optimized set_load which removes costly spin wait in timer_start */
589
-
int omap_dm_timer_set_load_start(struct omap_dm_timer *timer, int autoreload,
590
-
unsigned int load)
589
+
static int omap_dm_timer_set_load_start(struct omap_dm_timer *timer,
590
+
int autoreload, unsigned int load)
591
591
{
592
592
u32 l;
593
593
594
594
if (unlikely(!timer))
595
595
return -EINVAL;
596
596
597
597
omap_dm_timer_enable(timer);
598
598
599
599
l = omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG);
600
600
if (autoreload) {