Home
last modified time | relevance | path

Searched refs:clk_rate (Results 1 – 25 of 44) sorted by relevance

12

/third_party/uboot/u-boot-2020.01/drivers/serial/
Dserial_uniphier.c97 unsigned int clk_rate; member
101 { .compatible = "socionext,uniphier-ld4", .clk_rate = 36864000 },
102 { .compatible = "socionext,uniphier-pro4", .clk_rate = 73728000 },
103 { .compatible = "socionext,uniphier-sld8", .clk_rate = 80000000 },
104 { .compatible = "socionext,uniphier-pro5", .clk_rate = 73728000 },
105 { .compatible = "socionext,uniphier-pxs2", .clk_rate = 88888888 },
106 { .compatible = "socionext,uniphier-ld6b", .clk_rate = 88888888 },
107 { .compatible = "socionext,uniphier-ld11", .clk_rate = 58823529 },
108 { .compatible = "socionext,uniphier-ld20", .clk_rate = 58823529 },
109 { .compatible = "socionext,uniphier-pxs3", .clk_rate = 58823529 },
[all …]
Datmel_usart.c236 ulong clk_rate; in atmel_serial_enable_clk() local
249 clk_rate = clk_get_rate(&clk); in atmel_serial_enable_clk()
250 if (!clk_rate) in atmel_serial_enable_clk()
253 priv->usart_clk_rate = clk_rate; in atmel_serial_enable_clk()
/third_party/uboot/u-boot-2020.01/drivers/clk/
Dclk_versal.c477 static u32 versal_clock_pll(u32 clk_id, u64 *clk_rate) in versal_clock_pll() argument
483 *clk_rate = versal_clock_get_pll_rate(clk_id); in versal_clock_pll()
493 u64 clk_rate; in versal_clock_calc() local
496 if (versal_clock_pll(clk_id, &clk_rate)) in versal_clock_calc()
497 return clk_rate; in versal_clock_calc()
504 clk_rate = versal_clock_calc(parent_id); in versal_clock_calc()
508 clk_rate = DIV_ROUND_CLOSEST(clk_rate, div); in versal_clock_calc()
511 return clk_rate; in versal_clock_calc()
514 static int versal_clock_get_rate(u32 clk_id, u64 *clk_rate) in versal_clock_get_rate() argument
518 *clk_rate = versal_clock_ref(clk_id); in versal_clock_get_rate()
[all …]
Dclk-composite.c53 struct clk *clk_rate = composite->rate; in clk_composite_set_rate() local
55 return rate_ops->set_rate(clk_rate, rate); in clk_composite_set_rate()
/third_party/uboot/u-boot-2020.01/drivers/clk/at91/
Dclk-plladiv.c24 ulong clk_rate; in at91_plladiv_clk_get_rate() local
31 clk_rate = clk_get_rate(&source); in at91_plladiv_clk_get_rate()
33 clk_rate /= 2; in at91_plladiv_clk_get_rate()
35 return clk_rate; in at91_plladiv_clk_get_rate()
Dclk-peripheral.c84 ulong clk_rate; in periph_get_rate() local
93 clk_rate = clk_get_rate(&clk_dev); in periph_get_rate()
97 return clk_rate; in periph_get_rate()
Dclk-utmi.c27 ulong clk_rate; in utmi_clk_enable() local
45 clk_rate = clk_get_rate(&clk_dev); in utmi_clk_enable()
46 switch (clk_rate) { in utmi_clk_enable()
Dclk-generated.c53 ulong clk_rate; in generic_clk_get_rate() local
69 clk_rate = clk_get_rate(&parent) / (gckdiv + 1); in generic_clk_get_rate()
73 return clk_rate; in generic_clk_get_rate()
/third_party/uboot/u-boot-2020.01/drivers/timer/
Datmel_pit_timer.c44 ulong clk_rate; in atmel_pit_probe() local
51 clk_rate = clk_get_rate(&clk); in atmel_pit_probe()
52 if (!clk_rate) in atmel_pit_probe()
55 uc_priv->clock_rate = clk_rate / 16; in atmel_pit_probe()
/third_party/uboot/u-boot-2020.01/drivers/phy/
Dphy-stm32-usbphyc.c64 static void stm32_usbphyc_get_pll_params(u32 clk_rate, in stm32_usbphyc_get_pll_params() argument
81 do_div(ndiv, (clk_rate * 2)); in stm32_usbphyc_get_pll_params()
85 do_div(frac, (clk_rate * 2)); in stm32_usbphyc_get_pll_params()
93 u32 clk_rate = clk_get_rate(&usbphyc->clk); in stm32_usbphyc_pll_init() local
96 if ((clk_rate < PLL_INFF_MIN_RATE) || (clk_rate > PLL_INFF_MAX_RATE)) { in stm32_usbphyc_pll_init()
98 __func__, clk_rate); in stm32_usbphyc_pll_init()
102 stm32_usbphyc_get_pll_params(clk_rate, &pll_params); in stm32_usbphyc_pll_init()
116 clk_rate, pll_params.ndiv, pll_params.frac); in stm32_usbphyc_pll_init()
/third_party/uboot/u-boot-2020.01/drivers/adc/
Drockchip-saradc.c32 unsigned long clk_rate; member
109 ret = clk_set_rate(&clk, priv->data->clk_rate); in rockchip_saradc_probe()
149 .clk_rate = 1000000,
155 .clk_rate = 50000,
161 .clk_rate = 1000000,
/third_party/uboot/u-boot-2020.01/drivers/watchdog/
Dorion_wdt.c32 unsigned long clk_rate; member
51 writel(priv->clk_rate * priv->timeout, in orion_wdt_reset()
70 writel(priv->clk_rate * priv->timeout, in orion_wdt_start()
164 priv->clk_rate = clk_get_rate(&priv->clk); in orion_wdt_probe()
166 priv->clk_rate = 25000000; in orion_wdt_probe()
Dbcm6345_wdt.c30 unsigned long clk_rate; member
46 u32 val = priv->clk_rate / 1000 * timeout; in bcm6345_wdt_start()
100 priv->clk_rate = clk_get_rate(&clk); in bcm6345_wdt_probe()
Darmada-37xx-wdt.c20 ulong clk_rate; member
128 priv->timeout = ms * priv->clk_rate / 1000 / CNTR_CTRL_PRESCALE_MIN; in a37xx_wdt_start()
166 priv->clk_rate = (ulong)get_ref_clk() * 1000000; in a37xx_wdt_probe()
/third_party/uboot/u-boot-2020.01/arch/arm/mach-imx/imx8/
Dmisc.c6 int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate) in sc_pm_setup_uart() argument
8 sc_pm_clock_rate_t rate = clk_rate; in sc_pm_setup_uart()
/third_party/uboot/u-boot-2020.01/drivers/video/
Datmel_hlcdfb.c259 ulong clk_rate; member
266 ulong clk_rate; in at91_hlcdc_enable_clk() local
277 clk_rate = clk_get_rate(&clk); in at91_hlcdc_enable_clk()
278 if (!clk_rate) { in at91_hlcdc_enable_clk()
283 priv->clk_rate = clk_rate; in at91_hlcdc_enable_clk()
326 value = priv->clk_rate / timing->pixelclock.typ; in atmel_hlcdc_init()
327 if (priv->clk_rate % timing->pixelclock.typ) in atmel_hlcdc_init()
/third_party/uboot/u-boot-2020.01/drivers/i2c/
Dmeson_i2c.c230 ulong clk_rate; in meson_i2c_set_bus_speed() local
233 clk_rate = clk_get_rate(&i2c->clk); in meson_i2c_set_bus_speed()
234 if (IS_ERR_VALUE(clk_rate)) in meson_i2c_set_bus_speed()
237 div = DIV_ROUND_UP(clk_rate, speed * i2c->data->div_factor); in meson_i2c_set_bus_speed()
251 debug("meson i2c: set clk %u, src %lu, div %u\n", speed, clk_rate, div); in meson_i2c_set_bus_speed()
Dat91_i2c.c181 ulong clk_rate; in at91_i2c_enable_clk() local
192 clk_rate = clk_get_rate(&clk); in at91_i2c_enable_clk()
193 if (!clk_rate) in at91_i2c_enable_clk()
196 bus->bus_clk_rate = clk_rate; in at91_i2c_enable_clk()
/third_party/uboot/u-boot-2020.01/product/hii2c/
Di2c_hibvt.c388 unsigned int clk_rate; in hibvt_i2c_set_freq() local
392 clk_rate = i2c->clk; in hibvt_i2c_set_freq()
393 max_freq = clk_rate >> 1; in hibvt_i2c_set_freq()
407 val = clk_rate / (freq * 2); in hibvt_i2c_set_freq()
412 val = (clk_rate * 36) / (freq * 100); in hibvt_i2c_set_freq()
415 val = (clk_rate * 64) / (freq * 100); in hibvt_i2c_set_freq()
/third_party/uboot/u-boot-2020.01/drivers/spi/
Datcspi200_spi.c345 ulong clk_rate; in atcspi200_spi_get_clk() local
352 clk_rate = clk_get_rate(&clk); in atcspi200_spi_get_clk()
353 if (!clk_rate) in atcspi200_spi_get_clk()
356 ns->clock = clk_rate; in atcspi200_spi_get_clk()
Datmel_spi.c438 ulong clk_rate; in atmel_spi_enable_clk() local
449 clk_rate = clk_get_rate(&clk); in atmel_spi_enable_clk()
450 if (!clk_rate) in atmel_spi_enable_clk()
453 priv->bus_clk_rate = clk_rate; in atmel_spi_enable_clk()
Dbcm63xx_hsspi.c98 ulong clk_rate; member
145 set = DIV_ROUND_UP(priv->clk_rate, priv->speed); in bcm63xx_hsspi_activate_cs()
364 priv->clk_rate = clk_get_rate(&clk); in bcm63xx_hsspi_probe()
/third_party/uboot/u-boot-2020.01/drivers/mtd/nand/raw/
Ddenali_dt.c121 denali->clk_rate = clk_get_rate(&clk); in denali_dt_probe()
130 denali->clk_rate = 50000000; in denali_dt_probe()
/third_party/uboot/u-boot-2020.01/arch/arm/include/asm/arch-imx8/
Dsys_proto.h23 int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);
/third_party/uboot/u-boot-2020.01/drivers/mmc/
Dmsm_sdhci.c53 uint clk_rate = fdtdec_get_uint(gd->fdt_blob, node, "clock-frequency", in msm_sdc_clk_init() local
78 ret = clk_set_rate(&clk, clk_rate); in msm_sdc_clk_init()

12