Skip to content

Commit 56ce4e7

Browse files
Eddie Jamesbebarino
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 692678b commit 56ce4e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/clk/clk-ast2600.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* This includes the gates (configured from aspeed_g6_gates), plus the
2020
* explicitly-configured clocks (ASPEED_CLK_HPLL and up).
2121
*/
22-
#define ASPEED_G6_NUM_CLKS 72
22+
#define ASPEED_G6_NUM_CLKS 73
2323

2424
#define ASPEED_G6_SILICON_REV 0x014
2525
#define CHIP_REVISION_ID GENMASK(23, 16)
@@ -157,7 +157,7 @@ static const struct aspeed_gate_data aspeed_g6_gates[] = {
157157
[ASPEED_CLK_GATE_UART11CLK] = { 59, -1, "uart11clk-gate", "uartx", 0 }, /* UART11 */
158158
[ASPEED_CLK_GATE_UART12CLK] = { 60, -1, "uart12clk-gate", "uartx", 0 }, /* UART12 */
159159
[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 */
161161
};
162162

163163
static const struct clk_div_table ast2600_eclk_div_table[] = {
@@ -821,6 +821,9 @@ static void __init aspeed_g6_cc(struct regmap *map)
821821

822822
hw = clk_hw_register_fixed_factor(NULL, "i3cclk", "apll", 0, 1, 8);
823823
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;
824827
};
825828

826829
static void __init aspeed_g6_cc_init(struct device_node *np)

0 commit comments

Comments
 (0)