]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:40 +0000 (07:50 +0200)
commit9549391bb64b72d12deb521794eaad7d3c4d9472
tree8923a2389350be630a396f28111840f212ac9d55
parent3b6f9b555d5bbfee2f3c68041f2e4c03f2a2d070
clk: renesas: r9a07g043: Fix HP clock source for RZ/Five

[ Upstream commit 7f22a298d926664b51fcfe2f8ea5feb7f8b79952 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/renesas/r9a07g043-cpg.c