clk: renesas: r8a77990: Correct RCLK handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Jul 2018 12:04:51 +0000 (14:04 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Aug 2018 15:00:18 +0000 (17:00 +0200)
commitdc643a843b5d510c04b2e222a1a4bd735d387f50
treecce6fe4fd58e75f339f0dc6d8b2538b38cb06ed9
parentb9d0b84b3db8552f033d5051393b90852b977a76
clk: renesas: r8a77990: Correct RCLK handling

According to R-Car Gen3 Hardware Manual Rev.1.00, R-Car E3 has the
RCLK Frequency Control Register (RCKCR), which determines the OSC and
RINT predivider values, and selection of the RCLK clock source between
RINT and the On-Chip Oscillator.

Hence change the OSC and RINT clock definitions to use the RCKCR
divider, and add the missing On-Chip Oscillator and RCLK clock source
switching logic.

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