clk: renesas: rcar-gen2: Fix PLL0 on R-Car V2H and E2
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 29 Mar 2017 15:22:44 +0000 (17:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:57 +0000 (19:47 +0200)
commit0babe22bda12dee55de6a3ba306cdb925db12923
tree4d00b5740521557bb366783f22ffe249e61256d9
parentc019b6ef720f2fbc612969e817090be9f1b8865a
clk: renesas: rcar-gen2: Fix PLL0 on R-Car V2H and E2

[ Upstream commit b7c563c489e94417efbad68d057ea5d2030ae44c ]

R-Car V2H and E2 do not have the PLL0CR register, but use a fixed
multiplier (depending on mode pins) and divider.

This corrects the clock rate of "pll0" (PLL0 VCO after post divider) on
R-Car V2H and E2 from 1.5 GHz to 1 GHz.

Inspired by Sergei Shtylyov's work for the common R-Car Gen2 and RZ/G
Clock Pulse Generator support core.

Fixes: 7c4163aae3d8e5b9 ("ARM: dts: r8a7792: initial SoC device tree")
Fixes: 0dce5454d5c25858 ("ARM: shmobile: Initial r8a7794 SoC device tree")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/renesas/clk-rcar-gen2.c