u-boot/drivers/clk/renesas
Hai Pham 1b4ca865b2 clk: renesas: rcar-gen3: Factor out CPG library
R-Car V3U has a CPG different enough to not be a generic Gen3 CPG but
similar enough to reuse code. Introduce a new CPG library, factor out
the SD clock and RPC clock handling and hook them to the generic Gen3
CPG driver so we have an equal state.

Based on Linux commit [1] and [2] by Wolfram Sang

[1] 8bb67d87346a ("clk: renesas: rcar-gen3: Factor out CPG library")
[2] 6f21d145b90f ("clk: renesas: cpg-lib: Move RPC clock registration to
the library")

Signed-off-by: Hai Pham <hai.pham.ud@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Marek: - Add rcar_clk_* prefix to all functions
       - Rebase on changes to
         clk: renesas: Introduce and use rcar_clk_get_rate64_div_table function
       - Use u32_encode_bits/GENMASK bitfield ops
2023-02-02 01:49:20 +01:00
..
clk-rcar-gen2.c clk: renesas: Convert Gen2/Gen3 clock tables to clk-provider struct clk_div_table 2023-02-02 01:49:20 +01:00
clk-rcar-gen3.c clk: renesas: rcar-gen3: Factor out CPG library 2023-02-02 01:49:20 +01:00
Kconfig clk: renesas: rcar-gen3: Factor out CPG library 2023-02-02 01:49:20 +01:00
Makefile clk: renesas: rcar-gen3: Factor out CPG library 2023-02-02 01:49:20 +01:00
r8a774a1-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a774b1-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a774c0-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a774e1-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a779a0-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a7790-cpg-mssr.c clk: renesas: Make reset controller modemr register offset configurable 2021-05-21 15:00:17 +02:00
r8a7791-cpg-mssr.c clk: renesas: Make reset controller modemr register offset configurable 2021-05-21 15:00:17 +02:00
r8a7792-cpg-mssr.c clk: renesas: Make reset controller modemr register offset configurable 2021-05-21 15:00:17 +02:00
r8a7794-cpg-mssr.c clk: renesas: Make reset controller modemr register offset configurable 2021-05-21 15:00:17 +02:00
r8a7795-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a7796-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a77965-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a77970-cpg-mssr.c clk: renesas: Add R8A77970 SD0H/SD0 clocks for SDHI 2023-02-02 01:49:20 +01:00
r8a77980-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a77990-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
r8a77995-cpg-mssr.c clk: renesas: Add and enable CPG reset driver 2023-02-02 01:49:20 +01:00
rcar-cpg-lib.c clk: renesas: rcar-gen3: Factor out CPG library 2023-02-02 01:49:20 +01:00
rcar-cpg-lib.h clk: renesas: rcar-gen3: Factor out CPG library 2023-02-02 01:49:20 +01:00
rcar-gen2-cpg.h clk: renesas: Make reset controller modemr register offset configurable 2021-05-21 15:00:17 +02:00
rcar-gen3-cpg.h clk: renesas: Add R8A77970 SD0H/SD0 clocks for SDHI 2023-02-02 01:49:20 +01:00
renesas-cpg-mssr.c clk: renesas: Add R8A779A0 clock tables 2021-06-24 20:22:17 +02:00
renesas-cpg-mssr.h clk: renesas: Add R8A779A0 clock tables 2021-06-24 20:22:17 +02:00