]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: renesas: r9a07g043: Fix HP clock source for RZ/Five
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 27 Jan 2025 17:31:59 +0000 (17:31 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 3 Feb 2025 10:07:06 +0000 (11:07 +0100)
commit7f22a298d926664b51fcfe2f8ea5feb7f8b79952
tree7f70a653bc2589bc95821350ce2e315cc26c4cd7
parent922c892834689939953c74bd34d01788b17feb7e
clk: renesas: r9a07g043: Fix HP clock source for RZ/Five

According to the Rev.1.20 hardware manual for the RZ/Five SoC, the clock
source for HP is derived from PLL6 divided by 2.  Correct the
implementation by configuring HP as a fixed clock source instead of a
MUX.

The `CPG_PL6_ETH_SSEL' register, which is available on the RZ/G2UL SoC,
is not present on the RZ/Five SoC, necessitating this change.

Fixes: 95d48d270305ad2c ("clk: renesas: r9a07g043: Add support for RZ/Five SoC")
Cc: stable@vger.kernel.org
Reported-by: Hien Huynh <hien.huynh.px@renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250127173159.34572-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a07g043-cpg.c