clk: renesas: rcar-gen3: Add support for ZG clock
authorAdam Ford <aford173@gmail.com>
Sat, 17 Jun 2023 15:02:59 +0000 (10:02 -0500)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 10 Jul 2023 07:31:29 +0000 (09:31 +0200)
commit1bc6f6dda0a3158af0703110656273958793f076
treed3719e5897acec6ad7241859c8cd4e2a4227a146
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
clk: renesas: rcar-gen3: Add support for ZG clock

A clock used for the 3D graphics appears to be common
among multiple SoC's, so add a generic gen3 clock
for clocking the graphics.  This is similar to the
cpg_z_clk, with a different frequency control register
and different flags.  Instead of duplicating the code,
make cpg_z_clk_register into a helper function and
call the help function with the FCR and flags as
a parameter.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230617150302.38477-1-aford173@gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rcar-gen3-cpg.c
drivers/clk/renesas/rcar-gen3-cpg.h