clk: renesas: r8a7796: Add OSC EXTAL predivider configuration
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Jul 2018 11:39:29 +0000 (13:39 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Aug 2018 15:00:18 +0000 (17:00 +0200)
commit7b8b9a4131221b5e9c460c0bbc107b8b018b05ca
tree57e376e976c8c3e17c571fc1135bfddce6ea153d
parentf23b866e20210d2ca8e6aa8506ff727dd9d03d03
clk: renesas: r8a7796: 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.0.53, the CPG_RCKCR
register was removed in R-Car M3-W ES1.1.  Change the OSC and RINT
clock definitions to use the OSC EXTAL predivider instead, which is
supported on all R-Car M3-W 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/r8a7796-cpg-mssr.c