Skip to content

Commit e51fbc5

Browse files
committed
Merge branches 'clk-rockchip', 'clk-amlogic', 'clk-yaml', 'clk-zynq' and 'clk-socfpga' into clk-next
* clk-rockchip: clk: rockchip: export ACLK_VCODEC for RK3036 clk: rockchip: fix rk3568 cpll clk gate bits clk: rockchip: Optimize PLL table memory usage * clk-amlogic: clk: meson: g12a: Add missing NNA source clocks for g12b clk: meson: axg-audio: improve deferral handling clk: meson: g12a: fix gp0 and hifi ranges clk: meson: pll: switch to determine_rate for the PLL ops * clk-yaml: dt-bindings: clock: gpio-mux-clock: Convert to json-schema * clk-zynq: clk: zynqmp: Handle divider specific read only flag clk: zynqmp: Use firmware specific mux clock flags clk: zynqmp: Use firmware specific divider clock flags clk: zynqmp: Use firmware specific common clock flags clk: zynqmp: pll: Remove some dead code clk: zynqmp: fix compile testing without ZYNQMP_FIRMWARE * clk-socfpga: clk: socfpga: clk-pll: Remove unused variable 'rc' clk: agilex/stratix10/n5x: fix how the bypass_reg is handled clk: agilex/stratix10: add support for the 2nd bypass clk: agilex/stratix10: fix bypass representation clk: agilex/stratix10: remove noc_clk
6 parents 029eae2 + 14de023 + 686f225 + feb29cc + 03aea91 + 99c6fc6 commit e51fbc5

File tree

20 files changed

+494
-132
lines changed

20 files changed

+494
-132
lines changed

Documentation/devicetree/bindings/clock/gpio-mux-clock.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/gpio-mux-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Simple GPIO clock multiplexer
8+
9+
maintainers:
10+
- Sergej Sawazki <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: gpio-mux-clock
15+
16+
clocks:
17+
items:
18+
- description: First parent clock
19+
- description: Second parent clock
20+
21+
'#clock-cells':
22+
const: 0
23+
24+
select-gpios:
25+
description: GPIO reference for selecting the parent clock.
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- clocks
31+
- '#clock-cells'
32+
- select-gpios
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
#include <dt-bindings/gpio/gpio.h>
39+
40+
clock {
41+
compatible = "gpio-mux-clock";
42+
clocks = <&parentclk1>, <&parentclk2>;
43+
#clock-cells = <0>;
44+
select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
45+
};

drivers/clk/meson/axg-audio.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,8 +1665,7 @@ static int devm_clk_get_enable(struct device *dev, char *id)
16651665
clk = devm_clk_get(dev, id);
16661666
if (IS_ERR(clk)) {
16671667
ret = PTR_ERR(clk);
1668-
if (ret != -EPROBE_DEFER)
1669-
dev_err(dev, "failed to get %s", id);
1668+
dev_err_probe(dev, ret, "failed to get %s", id);
16701669
return ret;
16711670
}
16721671

@@ -1811,7 +1810,7 @@ static int axg_audio_clkc_probe(struct platform_device *pdev)
18111810

18121811
ret = device_reset(dev);
18131812
if (ret) {
1814-
dev_err(dev, "failed to reset device\n");
1813+
dev_err_probe(dev, ret, "failed to reset device\n");
18151814
return ret;
18161815
}
18171816

drivers/clk/meson/clk-pll.c

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,31 +242,35 @@ static int meson_clk_get_pll_settings(unsigned long rate,
242242
return best ? 0 : -EINVAL;
243243
}
244244

245-
static long meson_clk_pll_round_rate(struct clk_hw *hw, unsigned long rate,
246-
unsigned long *parent_rate)
245+
static int meson_clk_pll_determine_rate(struct clk_hw *hw,
246+
struct clk_rate_request *req)
247247
{
248248
struct clk_regmap *clk = to_clk_regmap(hw);
249249
struct meson_clk_pll_data *pll = meson_clk_pll_data(clk);
250250
unsigned int m, n, frac;
251251
unsigned long round;
252252
int ret;
253253

254-
ret = meson_clk_get_pll_settings(rate, *parent_rate, &m, &n, pll);
254+
ret = meson_clk_get_pll_settings(req->rate, req->best_parent_rate,
255+
&m, &n, pll);
255256
if (ret)
256-
return meson_clk_pll_recalc_rate(hw, *parent_rate);
257+
return ret;
257258

258-
round = __pll_params_to_rate(*parent_rate, m, n, 0, pll);
259+
round = __pll_params_to_rate(req->best_parent_rate, m, n, 0, pll);
259260

260-
if (!MESON_PARM_APPLICABLE(&pll->frac) || rate == round)
261-
return round;
261+
if (!MESON_PARM_APPLICABLE(&pll->frac) || req->rate == round) {
262+
req->rate = round;
263+
return 0;
264+
}
262265

263266
/*
264267
* The rate provided by the setting is not an exact match, let's
265268
* try to improve the result using the fractional parameter
266269
*/
267-
frac = __pll_params_with_frac(rate, *parent_rate, m, n, pll);
270+
frac = __pll_params_with_frac(req->rate, req->best_parent_rate, m, n, pll);
271+
req->rate = __pll_params_to_rate(req->best_parent_rate, m, n, frac, pll);
268272

269-
return __pll_params_to_rate(*parent_rate, m, n, frac, pll);
273+
return 0;
270274
}
271275

272276
static int meson_clk_pll_wait_lock(struct clk_hw *hw)
@@ -419,7 +423,7 @@ static int meson_clk_pll_set_rate(struct clk_hw *hw, unsigned long rate,
419423
*/
420424
const struct clk_ops meson_clk_pcie_pll_ops = {
421425
.recalc_rate = meson_clk_pll_recalc_rate,
422-
.round_rate = meson_clk_pll_round_rate,
426+
.determine_rate = meson_clk_pll_determine_rate,
423427
.is_enabled = meson_clk_pll_is_enabled,
424428
.enable = meson_clk_pcie_pll_enable,
425429
.disable = meson_clk_pll_disable
@@ -429,7 +433,7 @@ EXPORT_SYMBOL_GPL(meson_clk_pcie_pll_ops);
429433
const struct clk_ops meson_clk_pll_ops = {
430434
.init = meson_clk_pll_init,
431435
.recalc_rate = meson_clk_pll_recalc_rate,
432-
.round_rate = meson_clk_pll_round_rate,
436+
.determine_rate = meson_clk_pll_determine_rate,
433437
.set_rate = meson_clk_pll_set_rate,
434438
.is_enabled = meson_clk_pll_is_enabled,
435439
.enable = meson_clk_pll_enable,

drivers/clk/meson/g12a.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ static struct clk_regmap g12b_cpub_clk_trace = {
16031603
};
16041604

16051605
static const struct pll_mult_range g12a_gp0_pll_mult_range = {
1606-
.min = 55,
1606+
.min = 125,
16071607
.max = 255,
16081608
};
16091609

@@ -4723,6 +4723,12 @@ static struct clk_hw_onecell_data g12b_hw_onecell_data = {
47234723
[CLKID_SPICC1_SCLK_SEL] = &g12a_spicc1_sclk_sel.hw,
47244724
[CLKID_SPICC1_SCLK_DIV] = &g12a_spicc1_sclk_div.hw,
47254725
[CLKID_SPICC1_SCLK] = &g12a_spicc1_sclk.hw,
4726+
[CLKID_NNA_AXI_CLK_SEL] = &sm1_nna_axi_clk_sel.hw,
4727+
[CLKID_NNA_AXI_CLK_DIV] = &sm1_nna_axi_clk_div.hw,
4728+
[CLKID_NNA_AXI_CLK] = &sm1_nna_axi_clk.hw,
4729+
[CLKID_NNA_CORE_CLK_SEL] = &sm1_nna_core_clk_sel.hw,
4730+
[CLKID_NNA_CORE_CLK_DIV] = &sm1_nna_core_clk_div.hw,
4731+
[CLKID_NNA_CORE_CLK] = &sm1_nna_core_clk.hw,
47264732
[CLKID_MIPI_DSI_PXCLK_SEL] = &g12a_mipi_dsi_pxclk_sel.hw,
47274733
[CLKID_MIPI_DSI_PXCLK_DIV] = &g12a_mipi_dsi_pxclk_div.hw,
47284734
[CLKID_MIPI_DSI_PXCLK] = &g12a_mipi_dsi_pxclk.hw,

drivers/clk/rockchip/clk-rk3036.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static struct rockchip_clk_branch rk3036_clk_branches[] __initdata = {
259259
RK2928_CLKGATE_CON(1), 13, GFLAGS,
260260
&rk3036_uart2_fracmux),
261261

262-
COMPOSITE(0, "aclk_vcodec", mux_pll_src_3plls_p, 0,
262+
COMPOSITE(ACLK_VCODEC, "aclk_vcodec", mux_pll_src_3plls_p, 0,
263263
RK2928_CLKSEL_CON(32), 14, 2, MFLAGS, 8, 5, DFLAGS,
264264
RK2928_CLKGATE_CON(3), 11, GFLAGS),
265265
FACTOR_GATE(HCLK_VCODEC, "hclk_vcodec", "aclk_vcodec", 0, 1, 4,

drivers/clk/rockchip/clk-rk3568.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,17 +454,17 @@ static struct rockchip_clk_branch rk3568_clk_branches[] __initdata = {
454454
COMPOSITE_NOMUX(CPLL_125M, "cpll_125m", "cpll", CLK_IGNORE_UNUSED,
455455
RK3568_CLKSEL_CON(80), 0, 5, DFLAGS,
456456
RK3568_CLKGATE_CON(35), 10, GFLAGS),
457+
COMPOSITE_NOMUX(CPLL_100M, "cpll_100m", "cpll", CLK_IGNORE_UNUSED,
458+
RK3568_CLKSEL_CON(82), 0, 5, DFLAGS,
459+
RK3568_CLKGATE_CON(35), 11, GFLAGS),
457460
COMPOSITE_NOMUX(CPLL_62P5M, "cpll_62p5", "cpll", CLK_IGNORE_UNUSED,
458461
RK3568_CLKSEL_CON(80), 8, 5, DFLAGS,
459-
RK3568_CLKGATE_CON(35), 11, GFLAGS),
462+
RK3568_CLKGATE_CON(35), 12, GFLAGS),
460463
COMPOSITE_NOMUX(CPLL_50M, "cpll_50m", "cpll", CLK_IGNORE_UNUSED,
461464
RK3568_CLKSEL_CON(81), 0, 5, DFLAGS,
462-
RK3568_CLKGATE_CON(35), 12, GFLAGS),
465+
RK3568_CLKGATE_CON(35), 13, GFLAGS),
463466
COMPOSITE_NOMUX(CPLL_25M, "cpll_25m", "cpll", CLK_IGNORE_UNUSED,
464467
RK3568_CLKSEL_CON(81), 8, 6, DFLAGS,
465-
RK3568_CLKGATE_CON(35), 13, GFLAGS),
466-
COMPOSITE_NOMUX(CPLL_100M, "cpll_100m", "cpll", CLK_IGNORE_UNUSED,
467-
RK3568_CLKSEL_CON(82), 0, 5, DFLAGS,
468468
RK3568_CLKGATE_CON(35), 14, GFLAGS),
469469
COMPOSITE_NOMUX(0, "clk_osc0_div_750k", "xin24m", CLK_IGNORE_UNUSED,
470470
RK3568_CLKSEL_CON(82), 8, 6, DFLAGS,

drivers/clk/rockchip/clk.h

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,24 @@ struct rockchip_clk_provider {
271271

272272
struct rockchip_pll_rate_table {
273273
unsigned long rate;
274-
unsigned int nr;
275-
unsigned int nf;
276-
unsigned int no;
277-
unsigned int nb;
278-
/* for RK3036/RK3399 */
279-
unsigned int fbdiv;
280-
unsigned int postdiv1;
281-
unsigned int refdiv;
282-
unsigned int postdiv2;
283-
unsigned int dsmpd;
284-
unsigned int frac;
274+
union {
275+
struct {
276+
/* for RK3066 */
277+
unsigned int nr;
278+
unsigned int nf;
279+
unsigned int no;
280+
unsigned int nb;
281+
};
282+
struct {
283+
/* for RK3036/RK3399 */
284+
unsigned int fbdiv;
285+
unsigned int postdiv1;
286+
unsigned int refdiv;
287+
unsigned int postdiv2;
288+
unsigned int dsmpd;
289+
unsigned int frac;
290+
};
291+
};
285292
};
286293

287294
/**

drivers/clk/socfpga/clk-agilex.c

Lines changed: 64 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ static const struct clk_parent_data emac_mux[] = {
177177
.name = "emaca_free_clk", },
178178
{ .fw_name = "emacb_free_clk",
179179
.name = "emacb_free_clk", },
180+
{ .fw_name = "boot_clk",
181+
.name = "boot_clk", },
180182
};
181183

182184
static const struct clk_parent_data noc_mux[] = {
@@ -186,6 +188,41 @@ static const struct clk_parent_data noc_mux[] = {
186188
.name = "boot_clk", },
187189
};
188190

191+
static const struct clk_parent_data sdmmc_mux[] = {
192+
{ .fw_name = "sdmmc_free_clk",
193+
.name = "sdmmc_free_clk", },
194+
{ .fw_name = "boot_clk",
195+
.name = "boot_clk", },
196+
};
197+
198+
static const struct clk_parent_data s2f_user1_mux[] = {
199+
{ .fw_name = "s2f_user1_free_clk",
200+
.name = "s2f_user1_free_clk", },
201+
{ .fw_name = "boot_clk",
202+
.name = "boot_clk", },
203+
};
204+
205+
static const struct clk_parent_data psi_mux[] = {
206+
{ .fw_name = "psi_ref_free_clk",
207+
.name = "psi_ref_free_clk", },
208+
{ .fw_name = "boot_clk",
209+
.name = "boot_clk", },
210+
};
211+
212+
static const struct clk_parent_data gpio_db_mux[] = {
213+
{ .fw_name = "gpio_db_free_clk",
214+
.name = "gpio_db_free_clk", },
215+
{ .fw_name = "boot_clk",
216+
.name = "boot_clk", },
217+
};
218+
219+
static const struct clk_parent_data emac_ptp_mux[] = {
220+
{ .fw_name = "emac_ptp_free_clk",
221+
.name = "emac_ptp_free_clk", },
222+
{ .fw_name = "boot_clk",
223+
.name = "boot_clk", },
224+
};
225+
189226
/* clocks in AO (always on) controller */
190227
static const struct stratix10_pll_clock agilex_pll_clks[] = {
191228
{ AGILEX_BOOT_CLK, "boot_clk", boot_mux, ARRAY_SIZE(boot_mux), 0,
@@ -222,11 +259,9 @@ static const struct stratix10_perip_cnt_clock agilex_main_perip_cnt_clks[] = {
222259
{ AGILEX_MPU_FREE_CLK, "mpu_free_clk", NULL, mpu_free_mux, ARRAY_SIZE(mpu_free_mux),
223260
0, 0x3C, 0, 0, 0},
224261
{ AGILEX_NOC_FREE_CLK, "noc_free_clk", NULL, noc_free_mux, ARRAY_SIZE(noc_free_mux),
225-
0, 0x40, 0, 0, 1},
226-
{ AGILEX_L4_SYS_FREE_CLK, "l4_sys_free_clk", "noc_free_clk", NULL, 1, 0,
227-
0, 4, 0, 0},
228-
{ AGILEX_NOC_CLK, "noc_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux),
229-
0, 0, 0, 0x30, 1},
262+
0, 0x40, 0, 0, 0},
263+
{ AGILEX_L4_SYS_FREE_CLK, "l4_sys_free_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0,
264+
0, 4, 0x30, 1},
230265
{ AGILEX_EMAC_A_FREE_CLK, "emaca_free_clk", NULL, emaca_free_mux, ARRAY_SIZE(emaca_free_mux),
231266
0, 0xD4, 0, 0x88, 0},
232267
{ AGILEX_EMAC_B_FREE_CLK, "emacb_free_clk", NULL, emacb_free_mux, ARRAY_SIZE(emacb_free_mux),
@@ -236,7 +271,7 @@ static const struct stratix10_perip_cnt_clock agilex_main_perip_cnt_clks[] = {
236271
{ AGILEX_GPIO_DB_FREE_CLK, "gpio_db_free_clk", NULL, gpio_db_free_mux,
237272
ARRAY_SIZE(gpio_db_free_mux), 0, 0xE0, 0, 0x88, 3},
238273
{ AGILEX_SDMMC_FREE_CLK, "sdmmc_free_clk", NULL, sdmmc_free_mux,
239-
ARRAY_SIZE(sdmmc_free_mux), 0, 0xE4, 0, 0x88, 4},
274+
ARRAY_SIZE(sdmmc_free_mux), 0, 0xE4, 0, 0, 0},
240275
{ AGILEX_S2F_USER0_FREE_CLK, "s2f_user0_free_clk", NULL, s2f_usr0_free_mux,
241276
ARRAY_SIZE(s2f_usr0_free_mux), 0, 0xE8, 0, 0, 0},
242277
{ AGILEX_S2F_USER1_FREE_CLK, "s2f_user1_free_clk", NULL, s2f_usr1_free_mux,
@@ -252,24 +287,24 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
252287
0, 0, 0, 0, 0, 0, 4},
253288
{ AGILEX_MPU_CCU_CLK, "mpu_ccu_clk", "mpu_clk", NULL, 1, 0, 0x24,
254289
0, 0, 0, 0, 0, 0, 2},
255-
{ AGILEX_L4_MAIN_CLK, "l4_main_clk", "noc_clk", NULL, 1, 0, 0x24,
256-
1, 0x44, 0, 2, 0, 0, 0},
257-
{ AGILEX_L4_MP_CLK, "l4_mp_clk", "noc_clk", NULL, 1, 0, 0x24,
258-
2, 0x44, 8, 2, 0, 0, 0},
290+
{ AGILEX_L4_MAIN_CLK, "l4_main_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0, 0x24,
291+
1, 0x44, 0, 2, 0x30, 1, 0},
292+
{ AGILEX_L4_MP_CLK, "l4_mp_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0, 0x24,
293+
2, 0x44, 8, 2, 0x30, 1, 0},
259294
/*
260295
* The l4_sp_clk feeds a 100 MHz clock to various peripherals, one of them
261296
* being the SP timers, thus cannot get gated.
262297
*/
263-
{ AGILEX_L4_SP_CLK, "l4_sp_clk", "noc_clk", NULL, 1, CLK_IS_CRITICAL, 0x24,
264-
3, 0x44, 16, 2, 0, 0, 0},
265-
{ AGILEX_CS_AT_CLK, "cs_at_clk", "noc_clk", NULL, 1, 0, 0x24,
266-
4, 0x44, 24, 2, 0, 0, 0},
267-
{ AGILEX_CS_TRACE_CLK, "cs_trace_clk", "noc_clk", NULL, 1, 0, 0x24,
268-
4, 0x44, 26, 2, 0, 0, 0},
298+
{ AGILEX_L4_SP_CLK, "l4_sp_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), CLK_IS_CRITICAL, 0x24,
299+
3, 0x44, 16, 2, 0x30, 1, 0},
300+
{ AGILEX_CS_AT_CLK, "cs_at_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0, 0x24,
301+
4, 0x44, 24, 2, 0x30, 1, 0},
302+
{ AGILEX_CS_TRACE_CLK, "cs_trace_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0, 0x24,
303+
4, 0x44, 26, 2, 0x30, 1, 0},
269304
{ AGILEX_CS_PDBG_CLK, "cs_pdbg_clk", "cs_at_clk", NULL, 1, 0, 0x24,
270305
4, 0x44, 28, 1, 0, 0, 0},
271-
{ AGILEX_CS_TIMER_CLK, "cs_timer_clk", "noc_clk", NULL, 1, 0, 0x24,
272-
5, 0, 0, 0, 0, 0, 0},
306+
{ AGILEX_CS_TIMER_CLK, "cs_timer_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0, 0x24,
307+
5, 0, 0, 0, 0x30, 1, 0},
273308
{ AGILEX_S2F_USER0_CLK, "s2f_user0_clk", NULL, s2f_usr0_mux, ARRAY_SIZE(s2f_usr0_mux), 0, 0x24,
274309
6, 0, 0, 0, 0, 0, 0},
275310
{ AGILEX_EMAC0_CLK, "emac0_clk", NULL, emac_mux, ARRAY_SIZE(emac_mux), 0, 0x7C,
@@ -278,16 +313,16 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = {
278313
1, 0, 0, 0, 0x94, 27, 0},
279314
{ AGILEX_EMAC2_CLK, "emac2_clk", NULL, emac_mux, ARRAY_SIZE(emac_mux), 0, 0x7C,
280315
2, 0, 0, 0, 0x94, 28, 0},
281-
{ AGILEX_EMAC_PTP_CLK, "emac_ptp_clk", "emac_ptp_free_clk", NULL, 1, 0, 0x7C,
282-
3, 0, 0, 0, 0, 0, 0},
283-
{ AGILEX_GPIO_DB_CLK, "gpio_db_clk", "gpio_db_free_clk", NULL, 1, 0, 0x7C,
284-
4, 0x98, 0, 16, 0, 0, 0},
285-
{ AGILEX_SDMMC_CLK, "sdmmc_clk", "sdmmc_free_clk", NULL, 1, 0, 0x7C,
286-
5, 0, 0, 0, 0, 0, 4},
287-
{ AGILEX_S2F_USER1_CLK, "s2f_user1_clk", "s2f_user1_free_clk", NULL, 1, 0, 0x7C,
288-
6, 0, 0, 0, 0, 0, 0},
289-
{ AGILEX_PSI_REF_CLK, "psi_ref_clk", "psi_ref_free_clk", NULL, 1, 0, 0x7C,
290-
7, 0, 0, 0, 0, 0, 0},
316+
{ AGILEX_EMAC_PTP_CLK, "emac_ptp_clk", NULL, emac_ptp_mux, ARRAY_SIZE(emac_ptp_mux), 0, 0x7C,
317+
3, 0, 0, 0, 0x88, 2, 0},
318+
{ AGILEX_GPIO_DB_CLK, "gpio_db_clk", NULL, gpio_db_mux, ARRAY_SIZE(gpio_db_mux), 0, 0x7C,
319+
4, 0x98, 0, 16, 0x88, 3, 0},
320+
{ AGILEX_SDMMC_CLK, "sdmmc_clk", NULL, sdmmc_mux, ARRAY_SIZE(sdmmc_mux), 0, 0x7C,
321+
5, 0, 0, 0, 0x88, 4, 4},
322+
{ AGILEX_S2F_USER1_CLK, "s2f_user1_clk", NULL, s2f_user1_mux, ARRAY_SIZE(s2f_user1_mux), 0, 0x7C,
323+
6, 0, 0, 0, 0x88, 5, 0},
324+
{ AGILEX_PSI_REF_CLK, "psi_ref_clk", NULL, psi_mux, ARRAY_SIZE(psi_mux), 0, 0x7C,
325+
7, 0, 0, 0, 0x88, 6, 0},
291326
{ AGILEX_USB_CLK, "usb_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
292327
8, 0, 0, 0, 0, 0, 0},
293328
{ AGILEX_SPI_M_CLK, "spi_m_clk", "l4_mp_clk", NULL, 1, 0, 0x7C,
@@ -366,7 +401,7 @@ static int agilex_clk_register_gate(const struct stratix10_gate_clock *clks,
366401
int i;
367402

368403
for (i = 0; i < nums; i++) {
369-
hw_clk = s10_register_gate(&clks[i], base);
404+
hw_clk = agilex_register_gate(&clks[i], base);
370405
if (IS_ERR(hw_clk)) {
371406
pr_err("%s: failed to register clock %s\n",
372407
__func__, clks[i].name);

0 commit comments

Comments
 (0)