ARM: shmobile: rcar-gen2: Correct arch timer frequency on RZ/G1E
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 18 Jul 2017 13:30:15 +0000 (15:30 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 27 Jul 2017 15:23:58 +0000 (17:23 +0200)
According to the datasheet, the frequency of the ARM architecture timer
on RZ/G1E depends on the frequency of the ZS clock, just like on R-Car
E2 and V2H.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-rcar-gen2.c

index 3bd505da317268696c9167c4b2f236142e77682f..7ab1690fab8299ebdc5d01221b5026422b2ddff5 100644 (file)
@@ -70,7 +70,8 @@ void __init rcar_gen2_timer_init(void)
        void __iomem *base;
        u32 freq;
 
-       if (of_machine_is_compatible("renesas,r8a7792") ||
+       if (of_machine_is_compatible("renesas,r8a7745") ||
+           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