Skip to content

Commit 2477a35

Browse files
geertuhorms
authored andcommitted
ARM: shmobile: rcar-gen2: Correct arch timer frequency on R-Car V2H
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> Tested-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 9f5ce39 commit 2477a35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/mach-shmobile/setup-rcar-gen2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ void __init rcar_gen2_timer_init(void)
7676
void __iomem *base;
7777
u32 freq;
7878

79-
if (of_machine_is_compatible("renesas,r8a7794")) {
79+
if (of_machine_is_compatible("renesas,r8a7792") ||
80+
of_machine_is_compatible("renesas,r8a7794")) {
8081
freq = 260000000 / 8; /* ZS / 8 */
8182
/* CNTVOFF has to be initialized either from non-secure
8283
* Hypervisor mode or secure Monitor mode with SCR.NS==1.

0 commit comments

Comments
 (0)