[PATCH 05/13] ARM: clps711x: Using COMMON_CLK
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Mon Mar 11 07:58:07 EDT 2013
On 15:26 Mon 11 Mar , Alexander Shiyan wrote:
> 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.
as on ARM this timer config no clocks
> Thanks.
>
> ---
More information about the barebox
mailing list