Re[2]: [PATCH 05/13] ARM: clps711x: Using COMMON_CLK
Alexander Shiyan
shc_work at mail.ru
Mon Mar 11 07:26:59 EDT 2013
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 at mail.ru>
...
> > + /* 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.
---
More information about the barebox
mailing list