clk: renesas: r8a77965: Add OSC EXTAL predivider configuration
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Jul 2018 11:41:25 +0000 (13:41 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Aug 2018 15:00:18 +0000 (17:00 +0200)
commit979a2298a55a5b93d47b9479f7fbc977324f091f
treee527d2fa75d18f317398fd463eb0d0830d8c7eb2
parent7b8b9a4131221b5e9c460c0bbc107b8b018b05ca
clk: renesas: r8a77965: Add OSC EXTAL predivider configuration

R-Car Gen3 Hardware Manual Rev.0.52 documents the relation between the
MD13 and MD14 mode pins, and the OSC EXTAL predivider, as used by the
OSC and RINT RCLK clocks.  Hence augment the configuration structure
with all documented predivider values.

According to R-Car Gen3 Hardware Manual Rev.1.00, R-Car M3-N does not
have the CPG_RCKCR register.  Change the OSC and RINT clock definitions
to use the OSC EXTAL predivider instead, which is supported on all R-Car
M3-N SoC revisions.

Inspired by a patch in the BSP by Takeshi Kihara
<takeshi.kihara.df@renesas.com>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clk/renesas/r8a77965-cpg-mssr.c