Hello. > On 13:26 Mon 11 Mar , Alexander Shiyan wrote: > > This patch adds support for COMMON_CLK API for CLPS711X targets. > > > > Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> ... > > + /* Turn timers in free running mode */ > > tmp = readl(SYSCON1); > > - tmp &= ~SYSCON1_TC2M; /* Free running mode */ > > - tmp |= SYSCON1_TC2S; /* High frequency source */ > > + tmp &= ~(SYSCON1_TC1M | SYSCON1_TC2M); > > writel(tmp, SYSCON1); > this is timer configuration not clocks We need to read counter value for clocksource, so we need to ensure that we have full range of values (0x0 - 0xffff). It mean that timer/counters should not be in prescaler mode. All correct. Thanks. --- _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox