Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: ast2600: Add FSI parent clock with correct rate

In order to calculate correct FSI bus clocks, the FSI clock must
correctly calculate the rate from the parent (APLL / 4).

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20240215220759.976998-3-eajames@linux.ibm.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Eddie James and committed by
Stephen Boyd
56ce4e73 692678b6

+5 -2
+5 -2
drivers/clk/clk-ast2600.c
··· 19 19 * This includes the gates (configured from aspeed_g6_gates), plus the 20 20 * explicitly-configured clocks (ASPEED_CLK_HPLL and up). 21 21 */ 22 - #define ASPEED_G6_NUM_CLKS 72 22 + #define ASPEED_G6_NUM_CLKS 73 23 23 24 24 #define ASPEED_G6_SILICON_REV 0x014 25 25 #define CHIP_REVISION_ID GENMASK(23, 16) ··· 157 157 [ASPEED_CLK_GATE_UART11CLK] = { 59, -1, "uart11clk-gate", "uartx", 0 }, /* UART11 */ 158 158 [ASPEED_CLK_GATE_UART12CLK] = { 60, -1, "uart12clk-gate", "uartx", 0 }, /* UART12 */ 159 159 [ASPEED_CLK_GATE_UART13CLK] = { 61, -1, "uart13clk-gate", "uartx", 0 }, /* UART13 */ 160 - [ASPEED_CLK_GATE_FSICLK] = { 62, 59, "fsiclk-gate", NULL, 0 }, /* FSI */ 160 + [ASPEED_CLK_GATE_FSICLK] = { 62, 59, "fsiclk-gate", "fsiclk", 0 }, /* FSI */ 161 161 }; 162 162 163 163 static const struct clk_div_table ast2600_eclk_div_table[] = { ··· 821 821 822 822 hw = clk_hw_register_fixed_factor(NULL, "i3cclk", "apll", 0, 1, 8); 823 823 aspeed_g6_clk_data->hws[ASPEED_CLK_I3C] = hw; 824 + 825 + hw = clk_hw_register_fixed_factor(NULL, "fsiclk", "apll", 0, 1, 4); 826 + aspeed_g6_clk_data->hws[ASPEED_CLK_FSI] = hw; 824 827 }; 825 828 826 829 static void __init aspeed_g6_cc_init(struct device_node *np)