Subject: [PATCH V5] ARM: OMAP5/DRA7: realtime_counter: Configure CNTFRQ register

From: [email-masked] (Santosh Shilimkar)
Date: Thu, 10 Oct 2013 09:12:14 -0400

On Thursday 10 October 2013 03:43 AM, Sricharan R wrote:
> From: R Sricharan <[email-masked]>
> 
> The realtime counter called master counter, produces the count
> used by the private timer peripherals in the MPU_CLUSTER. The
> CNTFRQ per cpu register is used to denote the frequency of the counter.
> Currently the frequency value is passed from the
> DT file, but this is not scalable when we have other non-DT guest
> OS. This register must be set to the right value by the
> secure rom code. Setting this register helps in propagating the right
> frequency value across OSes.
> 
> More discussions and the reason for adding this in a non-DT
> way can be seen from below.
> http://www.mail-archive.com/linux-omap at vger.kernel.org/msg93832.html
> 
> So configuring this secure register for all the cpus here.
> 
> Cc: Santosh Shilimkar <[email-masked]>
> Cc: Nishanth Menon <[email-masked]>
> Cc: Rajendra Nayak <[email-masked]>
> Cc: Marc Zyngier <[email-masked]>
> Cc: Mark Rutland <[email-masked]>
> Cc: Tony Lindgren <[email-masked]>
> Tested-by: Nishanth Menon <[email-masked]>
> Acked-by: Santosh Shilimkar <[email-masked]>
> Signed-off-by: Sricharan R <[email-masked]>
> ---
>  [V5] Removed the use of extern variable in omap-smp.c
>       as per suggestion from Santosh Shilimkar <[email-masked]>
> 
Thanks for the updates Sricharan. Looks fine now.

Tony, Can you apply this version if you are fine with it.

Regards,
Santosh