clk: renesas: cpg-mssr: add generic support for read-only DIV6 clocks
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 30 Mar 2016 14:58:18 +0000 (16:58 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 6 Apr 2016 07:48:37 +0000 (09:48 +0200)
commit5d3927f655e58e644557a3dc8ee7af8884f59931
tree72a8c57e260b79794e6444e86898c08c04c87176
parentba8c1a81d4b7c22ac2d767265851ad77c4d01002
clk: renesas: cpg-mssr: add generic support for read-only DIV6 clocks

Gen3 has two clocks (OSC and R) which look like a DIV6 clock but their
divider value is read-only and depends on MD pins at bootup. Add support
for such clocks by reading the value and adding a fixed clock.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/renesas-cpg-mssr.c
drivers/clk/renesas/renesas-cpg-mssr.h