clk: renesas: rcar-gen3: Add RPC clocks
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 22 Jan 2019 19:59:35 +0000 (22:59 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 5 Feb 2019 09:40:05 +0000 (10:40 +0100)
commitdb4a0073cc82a95d8d1a9b05fde82355fcce77d8
tree1665ec55ec174a7d075fd77da2132efad343f435
parent875e8f6b0156c0ad56fd0c29c78e3f2f67ec0b16
clk: renesas: rcar-gen3: Add RPC clocks

The RPCSRC internal clock is controlled by the RPCCKCR.DIV[4:3] on all
the R-Car gen3 SoCs except V3M (R8A77970) but the encoding of this field
is different between SoCs; it makes sense to support the most common case
of this encoding in the R-Car gen3 CPG driver...

After adding the RPCSRC clock, we can add the RPC[D2] clocks derived from
it and controlled by the RPCCKCR register on all the R-Car gen3 SoCs except
V3M (R8A77970); the composite clock driver seems handy for this task, using
the spinlock added in the previous patch...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rcar-gen3-cpg.c
drivers/clk/renesas/rcar-gen3-cpg.h