u-boot/drivers/clk/renesas
Geert Uytterhoeven 08806a6e52 clk: renesas: r8a779h0: Drop CLK_PLL2_DIV2 to clarify ZCn clocks
Early revisions of the R-Car V4M Series Hardware User’s Manual
contained an incorrect formula for the CPU core clocks:

    ZCnφ = (PLL2VCO x 1/2) x mult/32

Dang-san fixed this by using CLK_PLL2_DIV2 instead of CLK_PLL2 as the
parent clock.

In Rev.0.70 of the documentation, the formula was corrected to:

    ZCnφ = (PLL2VCO x 1/4) x mult/32

As the CPG Block Diagram now shows a separate 1/4 post-divider for PLL2,
the use of CLK_PLL2_DIV2 is a recurring source of confusion.  Hence get
rid of CLK_PLL2_DIV2, and include the proper 1/4 post-divider in the
invocation of the DEF_GEN4_Z() macro, like is done on other R-Car Gen4
(and Gen3) SoCs.

Ported from Linux commit
92850bed9d4d ("clk: renesas: r8a779h0: Drop CLK_PLL2_DIV2 to clarify ZCn clocks")

Reported-by: Vinh Nguyen <vinh.nguyen.xz@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/0d2789cac2bf306145fe0bbf269c2da5942bb68f.1728377724.git.geert+renesas@glider.be
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2024-12-20 22:20:37 +01:00
..
clk-rcar-gen2.c clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
clk-rcar-gen3.c clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
Kconfig clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
Makefile clk: renesas: Add R8A779H0 V4M clock tables 2024-02-10 17:08:06 +01:00
r8a774a1-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a774b1-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a774c0-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a774e1-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a779a0-cpg-mssr.c clk: renesas: Synchronize R-Car R8A779A0 V3U clock tables with Linux 6.10.9 2024-10-13 23:21:26 +02:00
r8a779f0-cpg-mssr.c clk: renesas: Synchronize R-Car R8A779F0 S4 clock tables with Linux 6.10.9 2024-10-13 23:21:26 +02:00
r8a779g0-cpg-mssr.c clk: renesas: Synchronize R-Car R8A779G0 V4H clock tables with Linux 6.10.9 2024-10-13 23:21:26 +02:00
r8a779h0-cpg-mssr.c clk: renesas: r8a779h0: Drop CLK_PLL2_DIV2 to clarify ZCn clocks 2024-12-20 22:20:37 +01:00
r8a7790-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a7791-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a7792-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a7794-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a7795-cpg-mssr.c clk: renesas: Synchronize R-Car R8A77951 H3 clock tables with Linux 6.9.3 2024-07-06 14:47:13 +02:00
r8a7796-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a77965-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a77970-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a77980-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a77990-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r8a77995-cpg-mssr.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r9a06g032-clocks.c clk: renesas: Drop include common.h 2024-01-27 20:16:39 +01:00
r9a07g044-cpg.c clk: rzg2l: Drop <common.h> 2023-11-02 11:30:18 +01:00
rcar-cpg-lib.c clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +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: Implement R8A779H0 V4M PLL7 support 2024-02-10 17:08:06 +01:00
renesas-cpg-mssr.c clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
renesas-cpg-mssr.h clk: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
rzg2l-cpg.c clk: rzg2l: Ignore enable for core clocks 2024-12-08 23:06:52 +01:00
rzg2l-cpg.h clk: renesas: Add RZ/G2L & RZ/G2LC CPG driver 2023-10-16 15:46:18 +02:00