]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: renesas: rzg2l: Add support for enabling PLLs
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 26 Mar 2026 11:06:36 +0000 (11:06 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Apr 2026 09:40:04 +0000 (11:40 +0200)
commit78db1faa6b681da20ec167268b28778ebb0f98b7
tree458ab5eaddf7a492b7bbc96ed9fc7f77f3aae562
parent79b5d6970b4e5b7b7ee4d7fdb18e950086b72bde
clk: renesas: rzg2l: Add support for enabling PLLs

Add support for enabling PLL clocks in the RZ/G3L CPG driver to turn off
some PLLs, if they are not in use (e.g. PLL6, PLL7).

Introduce .is_enabled() and .enable() callbacks to handle PLL state
transitions.  With the .enable() callback, the PLL will be turned ON
only when the PLL consumer device is enabled; otherwise, it will remain
off.  Define new macros for PLL standby and monitor registers to
facilitate this process.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260326110648.29389-3-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c
drivers/clk/renesas/rzg2l-cpg.h