* [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H
@ 2016-06-13 10:31 Geert Uytterhoeven
2016-06-16 5:19 ` Simon Horman
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2016-06-13 10:31 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Simon Horman, Magnus Damm, linux-renesas-soc, Geert Uytterhoeven
According to the datasheet, the frequency of the ARM architecture timer
on R-Car V2H depends on the frequency of the ZS clock, just like on
R-Car E2.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Against renesas-devel-20160613-v4.7-rc3 with "ARM: shmobile: rcar-gen2:
Obtain extal frequency from DT" applied.
Untested due to lack of hardware.
---
arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index ea092d5dd475042d..afb9fdcd3d9084e2 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -76,7 +76,8 @@ void __init rcar_gen2_timer_init(void)
void __iomem *base;
u32 freq;
- if (of_machine_is_compatible("renesas,r8a7794")) {
+ if (of_machine_is_compatible("renesas,r8a7792") ||
+ of_machine_is_compatible("renesas,r8a7794")) {
freq = 260000000 / 8; /* ZS / 8 */
/* CNTVOFF has to be initialized either from non-secure
* Hypervisor mode or secure Monitor mode with SCR.NS==1.
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H
2016-06-13 10:31 [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H Geert Uytterhoeven
@ 2016-06-16 5:19 ` Simon Horman
2016-06-17 20:24 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2016-06-16 5:19 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Sergei Shtylyov, Magnus Damm, linux-renesas-soc
On Mon, Jun 13, 2016 at 12:31:12PM +0200, Geert Uytterhoeven wrote:
> According to the datasheet, the frequency of the ARM architecture timer
> on R-Car V2H depends on the frequency of the ZS clock, just like on
> R-Car E2.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Against renesas-devel-20160613-v4.7-rc3 with "ARM: shmobile: rcar-gen2:
> Obtain extal frequency from DT" applied.
>
> Untested due to lack of hardware.
Sergei, could you test this?
> ---
> arch/arm/mach-shmobile/setup-rcar-gen2.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
> index ea092d5dd475042d..afb9fdcd3d9084e2 100644
> --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
> +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
> @@ -76,7 +76,8 @@ void __init rcar_gen2_timer_init(void)
> void __iomem *base;
> u32 freq;
>
> - if (of_machine_is_compatible("renesas,r8a7794")) {
> + if (of_machine_is_compatible("renesas,r8a7792") ||
> + of_machine_is_compatible("renesas,r8a7794")) {
> freq = 260000000 / 8; /* ZS / 8 */
> /* CNTVOFF has to be initialized either from non-secure
> * Hypervisor mode or secure Monitor mode with SCR.NS==1.
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H
2016-06-16 5:19 ` Simon Horman
@ 2016-06-17 20:24 ` Sergei Shtylyov
2016-06-20 8:40 ` Simon Horman
0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2016-06-17 20:24 UTC (permalink / raw)
To: Simon Horman, Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc
On 06/16/2016 08:19 AM, Simon Horman wrote:
>> According to the datasheet, the frequency of the ARM architecture timer
>> on R-Car V2H depends on the frequency of the ZS clock, just like on
>> R-Car E2.
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> ---
>> Against renesas-devel-20160613-v4.7-rc3 with "ARM: shmobile: rcar-gen2:
>> Obtain extal frequency from DT" applied.
>>
>> Untested due to lack of hardware.
>
> Sergei, could you test this?
Done, now 'sleep 5' takes 5 seconds indeed. :-)
Tested-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
MBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H
2016-06-17 20:24 ` Sergei Shtylyov
@ 2016-06-20 8:40 ` Simon Horman
0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-06-20 8:40 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Geert Uytterhoeven, Magnus Damm, linux-renesas-soc
On Fri, Jun 17, 2016 at 11:24:36PM +0300, Sergei Shtylyov wrote:
> On 06/16/2016 08:19 AM, Simon Horman wrote:
>
> >>According to the datasheet, the frequency of the ARM architecture timer
> >>on R-Car V2H depends on the frequency of the ZS clock, just like on
> >>R-Car E2.
> >>
> >>Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >>---
> >>Against renesas-devel-20160613-v4.7-rc3 with "ARM: shmobile: rcar-gen2:
> >>Obtain extal frequency from DT" applied.
> >>
> >>Untested due to lack of hardware.
> >
> >Sergei, could you test this?
>
> Done, now 'sleep 5' takes 5 seconds indeed. :-)
>
> Tested-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-20 8:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 10:31 [PATCH/RFC] ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H Geert Uytterhoeven
2016-06-16 5:19 ` Simon Horman
2016-06-17 20:24 ` Sergei Shtylyov
2016-06-20 8:40 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox