Home
last modified time | relevance | path

Searched refs:clk_id (Results 1 – 25 of 29) sorted by relevance

12

/u-boot/drivers/clk/
A Dclk_versal.c96 u32 clk_id; member
285 ret = versal_pm_clock_get_topology(clock[clk_id].clk_id, j, in versal_clock_get_topology()
333 ret = versal_pm_clock_get_parents(clock[clk_id].clk_id, j, in versal_clock_get_parents()
517 if (!versal_clock_gate(clk_id) && !versal_clock_mux(clk_id)) in versal_clock_get_rate()
671 u32 clk_id; in versal_clk_get_rate() local
676 clk_id = priv->clk[id].clk_id; in versal_clk_get_rate()
687 u32 clk_id; in versal_clk_set_rate() local
694 clk_id = priv->clk[id].clk_id; in versal_clk_set_rate()
712 clk_id = versal_clock_get_parentid(clk_id); in versal_clk_set_rate()
724 u32 clk_id; in versal_clk_enable() local
[all …]
A Dclk_stm32h7.c787 unsigned long clk_id = clk->id; in stm32_clk_enable() local
789 gate_offset = clk_map[clk_id].gate_offset; in stm32_clk_enable()
790 gate_bit_index = clk_map[clk_id].gate_bit_idx; in stm32_clk_enable()
794 clk_map[clk_id].name); in stm32_clk_enable()
/u-boot/drivers/clk/rockchip/
A Dclk_px30.c294 switch (clk_id) { in px30_i2c_get_clk()
327 switch (clk_id) { in px30_i2c_set_clk()
427 switch (clk_id) { in px30_i2s_get_clk()
458 switch (clk_id) { in px30_i2s_set_clk()
517 switch (clk_id) { in px30_mmc_get_clk()
548 switch (clk_id) { in px30_mmc_set_clk()
589 switch (clk_id) { in px30_pwm_get_clk()
614 switch (clk_id) { in px30_pwm_set_clk()
694 switch (clk_id) { in px30_spi_get_clk()
719 switch (clk_id) { in px30_spi_set_clk()
[all …]
A Dclk_rk3128.c42 static int rkclk_set_pll(struct rk3128_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
45 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll()
243 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
247 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate()
261 shift = clk_shift[clk_id]; in rkclk_pll_get_rate()
262 mask = clk_mask[clk_id]; in rkclk_pll_get_rate()
354 switch (clk_id) { in rk3128_peri_get_pclk()
378 switch (clk_id) { in rk3128_peri_set_pclk()
428 switch (clk_id) { in rk3128_vop_set_clk()
459 static ulong rk3128_vop_get_rate(struct rk3128_cru *cru, ulong clk_id) in rk3128_vop_get_rate() argument
[all …]
A Dclk_rk3368.c167 switch (clk_id) { in rk3368_mmc_get_clk()
258 ulong clk_id = clk->id; in rk3368_mmc_set_clk() local
264 switch (clk_id) { in rk3368_mmc_set_clk()
282 return rk3368_mmc_get_clk(cru, clk_id); in rk3368_mmc_set_clk()
388 switch (clk_id) { in rk3368_spi_get_clk()
390 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3368_spi_get_clk()
394 pr_err("%s: SPI clk-id %ld not supported\n", __func__, clk_id); in rk3368_spi_get_clk()
413 switch (clk_id) { in rk3368_spi_set_clk()
415 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3368_spi_set_clk()
419 pr_err("%s: SPI clk-id %ld not supported\n", __func__, clk_id); in rk3368_spi_set_clk()
[all …]
A Dclk_rk3308.c550 switch (clk_id) { in rk3308_bus_get_clk()
584 switch (clk_id) { in rk3308_bus_set_clk()
606 return rk3308_bus_get_clk(priv, clk_id); in rk3308_bus_set_clk()
614 switch (clk_id) { in rk3308_peri_get_clk()
647 switch (clk_id) { in rk3308_peri_set_clk()
669 return rk3308_peri_get_clk(priv, clk_id); in rk3308_peri_set_clk()
677 switch (clk_id) { in rk3308_audio_get_clk()
706 switch (clk_id) { in rk3308_audio_set_clk()
724 return rk3308_peri_get_clk(priv, clk_id); in rk3308_audio_set_clk()
732 switch (clk_id) { in rk3308_crypto_get_clk()
[all …]
A Dclk_rk3399.c523 switch (clk_id) { in rk3399_i2c_get_clk()
564 switch (clk_id) { in rk3399_i2c_set_clk()
594 return rk3399_i2c_get_clk(cru, clk_id); in rk3399_i2c_set_clk()
638 switch (clk_id) { in rk3399_spi_get_clk()
663 switch (clk_id) { in rk3399_spi_set_clk()
689 switch (clk_id) { in rk3399_vop_set_clk()
730 switch (clk_id) { in rk3399_mmc_get_clk()
754 ulong clk_id, ulong set_rate) in rk3399_mmc_set_clk() argument
759 switch (clk_id) { in rk3399_mmc_set_clk()
1466 switch (clk_id) { in rk3399_i2c_get_pmuclk()
[all …]
A Dclk_rv1108.c50 static inline int rv1108_pll_id(enum rk_clk_id clk_id) in rv1108_pll_id() argument
54 switch (clk_id) { in rv1108_pll_id()
57 id = clk_id - 1; in rv1108_pll_id()
63 printf("invalid pll id:%d\n", clk_id); in rv1108_pll_id()
71 static int rkclk_set_pll(struct rv1108_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
74 int pll_id = rv1108_pll_id(clk_id); in rkclk_set_pll()
124 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
128 int pll_id = rv1108_pll_id(clk_id); in rkclk_pll_get_rate()
423 switch (clk_id) { in rv1108_i2c_get_clk()
460 switch (clk_id) { in rv1108_i2c_set_clk()
[all …]
A Dclk_rk3328.c211 static void rkclk_set_pll(struct rk3328_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
219 switch (clk_id) { in rkclk_set_pll()
336 static ulong rk3328_i2c_get_clk(struct rk3328_cru *cru, ulong clk_id) in rk3328_i2c_get_clk() argument
340 switch (clk_id) { in rk3328_i2c_get_clk()
365 static ulong rk3328_i2c_set_clk(struct rk3328_cru *cru, ulong clk_id, uint hz) in rk3328_i2c_set_clk() argument
372 switch (clk_id) { in rk3328_i2c_set_clk()
447 static ulong rk3328_mmc_get_clk(struct rk3328_cru *cru, uint clk_id) in rk3328_mmc_get_clk() argument
451 switch (clk_id) { in rk3328_mmc_get_clk()
474 ulong clk_id, ulong set_rate) in rk3328_mmc_set_clk() argument
479 switch (clk_id) { in rk3328_mmc_set_clk()
[all …]
A Dclk_rk3036.c49 static int rkclk_set_pll(struct rk3036_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
52 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll()
175 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
179 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate()
193 shift = clk_shift[clk_id]; in rkclk_pll_get_rate()
194 mask = clk_mask[clk_id]; in rkclk_pll_get_rate()
A Dclk_rk322x.c47 static int rkclk_set_pll(struct rk322x_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
50 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll()
177 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
181 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate()
195 shift = clk_shift[clk_id]; in rkclk_pll_get_rate()
196 mask = clk_mask[clk_id]; in rkclk_pll_get_rate()
A Dclk_rk3188.c90 static int rkclk_set_pll(struct rk3188_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
93 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll()
231 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
235 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate()
244 shift = clk_shift[clk_id]; in rkclk_pll_get_rate()
A Dclk_rk3288.c151 static int rkclk_set_pll(struct rockchip_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument
154 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll()
545 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument
549 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate()
558 shift = clk_shift[clk_id]; in rkclk_pll_get_rate()
/u-boot/arch/arm/include/asm/arch-rockchip/
A Dclock.h106 void __iomem *base, ulong clk_id,
109 void __iomem *base, ulong clk_id);
114 static inline int rk_pll_id(enum rk_clk_id clk_id) in rk_pll_id() argument
116 return clk_id - 1; in rk_pll_id()
/u-boot/drivers/misc/
A Dk3_avs.c45 int clk_id; member
189 int k3_avs_notify_freq(int dev_id, int clk_id, u32 freq) in k3_avs_notify_freq() argument
200 if (vd->dev_id != dev_id || vd->clk_id != clk_id) in k3_avs_notify_freq()
304 .clk_id = 0, /* main sysclk0 */
316 .clk_id = 0, /* ARM clock */
337 .clk_id = 0, /* ARM clock */
361 .clk_id = 2, /* ARM clock */
/u-boot/drivers/spi/
A Dmxs_spi.c52 int clk_id; /* ID of the SSP clock */ member
59 unsigned int clk_id; member
326 priv->clk_id = p1a->arg[0]; in mxs_spi_probe()
331 (unsigned int)priv->regs, priv->max_freq, priv->clk_id); in mxs_spi_probe()
337 priv->clk_id = plat->clk_id; in mxs_spi_probe()
398 int clkid = priv->clk_id - MXS_SSP_IMX28_CLKID_SSP0; in mxs_spi_set_speed()
400 int clkid = priv->clk_id - MXS_SSP_IMX23_CLKID_SSP0; in mxs_spi_set_speed()
467 plat->clk_id = prop[1]; in mxs_of_to_plat()
471 plat->dma_id, plat->clk_id); in mxs_of_to_plat()
/u-boot/drivers/firmware/
A Dti_sci.h317 u8 clk_id; member
338 u8 clk_id; member
376 u8 clk_id; member
393 u8 clk_id; member
424 u8 clk_id; member
467 u8 clk_id; member
523 u8 clk_id; member
541 u8 clk_id; member
A Dti_sci.c952 u32 dev_id, u8 clk_id, in ti_sci_set_clock_state() argument
977 req.clk_id = clk_id; in ti_sci_set_clock_state()
1035 req.clk_id = clk_id; in ti_sci_cmd_get_clock_state()
1096 u32 dev_id, u8 clk_id) in ti_sci_cmd_idle_clock() argument
1115 u32 dev_id, u8 clk_id) in ti_sci_cmd_put_clock() argument
1251 req.clk_id = clk_id; in ti_sci_cmd_clk_set_parent()
1304 req.clk_id = clk_id; in ti_sci_cmd_clk_get_parent()
1359 req.clk_id = clk_id; in ti_sci_cmd_clk_get_num_parents()
1424 req.clk_id = clk_id; in ti_sci_cmd_clk_get_match_freq()
1489 req.clk_id = clk_id; in ti_sci_cmd_clk_set_freq()
[all …]
/u-boot/include/
A Dk3-avs.h28 int k3_avs_notify_freq(int dev_id, int clk_id, u32 freq);
/u-boot/arch/arm/include/asm/arch-tegra/
A Dclock.h354 enum periph_id clk_id_to_periph_id(int clk_id);
421 int clock_external_output(int clk_id);
/u-boot/arch/arm/mach-tegra/
A Dclock.c819 int clock_external_output(int clk_id) in clock_external_output() argument
823 if (clk_id >= 1 && clk_id <= 3) { in clock_external_output()
826 val |= 1 << (2 + (clk_id - 1) * 8); in clock_external_output()
832 printf("%s: Unknown output clock id %d\n", __func__, clk_id); in clock_external_output()
/u-boot/drivers/sound/
A Dwm8994.c502 static int wm8994_set_sysclk(struct wm8994_priv *priv, int aif_id, int clk_id, in wm8994_set_sysclk() argument
508 priv->sysclk[aif_id - 1] = clk_id; in wm8994_set_sysclk()
510 switch (clk_id) { in wm8994_set_sysclk()
554 __func__, clk_id); in wm8994_set_sysclk()
/u-boot/drivers/mmc/
A Dmxsmmc.c65 int clk_id; member
593 clkid = plat->clk_id;
692 plat->clk_id = prop[1];
697 plat->dma_id, plat->clk_id);
/u-boot/arch/arm/mach-tegra/tegra20/
A Dclock.c553 enum periph_id clk_id_to_periph_id(int clk_id) in clk_id_to_periph_id() argument
555 if (clk_id > PERIPH_ID_COUNT) in clk_id_to_periph_id()
558 switch (clk_id) { in clk_id_to_periph_id()
576 return clk_id; in clk_id_to_periph_id()
/u-boot/arch/arm/mach-tegra/tegra114/
A Dclock.c628 enum periph_id clk_id_to_periph_id(int clk_id) in clk_id_to_periph_id() argument
630 if (clk_id > PERIPH_ID_COUNT) in clk_id_to_periph_id()
633 switch (clk_id) { in clk_id_to_periph_id()
652 return clk_id; in clk_id_to_periph_id()

Completed in 69 milliseconds

12