clk: ast2600: Add full configs for I3C clocks
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 2 Mar 2023 00:58:31 +0000 (08:58 +0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 6 Mar 2023 22:11:18 +0000 (14:11 -0800)
commite9d230146f1521d24b286b75dfec96a66caf359b
tree649ffde954db796458dd6117bf03f4a1ab460523
parent1038b6978b438d954e2e827d4d553bed94cd83e0
clk: ast2600: Add full configs for I3C clocks

The current ast2600 I3C clock definitions are top-level (rather than
based on their actual hw sources: either HCLK or APLL), and include a
couple of definitions for (non-existent) i3c6 and i3c7.

Re-parent the individual I3C controller clocks to the main i3c clock,
explicitly sourced from the APLL rather than whatever G6_CLK_SELECTION5
was last set to.

While we're at it, remove the definitions for the i3c6 and i3c7 clock
lines; this hardware isn't present.

This is a partial cherry-pick and rework of ed44b8cdfdb and 1a35eb926d7
from Aspeed's own tree, originally by Dylan Hung
<dylan_hung@aspeedtech.com>.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20230302005834.13171-4-jk@codeconstruct.com.au
Reviewed-by: Joel Stanley <joel@jms.id.au>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-ast2600.c