Home
last modified time | relevance | path

Searched refs:clock_rate (Results 1 – 25 of 26) sorted by relevance

12

/u-boot/drivers/timer/
A Dtimer-uclass.c46 return uc_priv->clock_rate; in timer_get_rate()
66 uc_priv->clock_rate = ret; in timer_pre_probe()
68 uc_priv->clock_rate = in timer_pre_probe()
80 if (!uc_priv->clock_rate) in timer_post_probe()
98 if (uc_priv->clock_rate) in timer_timebase_fallback()
111 uc_priv->clock_rate = cpu_plat->timebase_freq; in timer_timebase_fallback()
A Dtsc_timer.c404 if (!gd->arch.clock_rate) { in tsc_timer_ensure_setup()
433 gd->arch.clock_rate = fast_calibrate * 1000000; in tsc_timer_ensure_setup()
444 if (!gd->arch.clock_rate) { in tsc_timer_probe()
449 if (!uc_priv->clock_rate) in tsc_timer_probe()
452 uc_priv->clock_rate = gd->arch.clock_rate; in tsc_timer_probe()
467 return gd->arch.clock_rate; in timer_early_get_rate()
A Domap-timer.c61 if (!uc_priv->clock_rate) in omap_timer_probe()
62 uc_priv->clock_rate = V_SCLK; in omap_timer_probe()
64 uc_priv->clock_rate /= (2 << CONFIG_SYS_PTV); in omap_timer_probe()
A Dnomadik-mtu-timer.c80 if (!uc_priv->clock_rate) in nomadik_mtu_probe()
84 if (uc_priv->clock_rate > 32000000) { in nomadik_mtu_probe()
85 uc_priv->clock_rate /= 16; in nomadik_mtu_probe()
A Dsandbox_timer.c43 else if (!uc_priv->clock_rate) in sandbox_timer_probe()
44 uc_priv->clock_rate = SANDBOX_TIMER_RATE; in sandbox_timer_probe()
A Dsti-timer.c58 uc_priv->clock_rate = ret; in sti_timer_probe()
60 uc_priv->clock_rate = CONFIG_SYS_HZ_CLOCK; in sti_timer_probe()
A Dmtk_timer.c60 uc_priv->clock_rate = clk_get_rate(&clk); in mtk_timer_probe()
61 if (!uc_priv->clock_rate) in mtk_timer_probe()
A Dostm_timer.c50 uc_priv->clock_rate = clk_get_rate(&clk); in ostm_probe()
54 uc_priv->clock_rate = CONFIG_SYS_CLK_FREQ / 2; in ostm_probe()
A Driscv_timer.c58 uc_priv->clock_rate = dev->driver_data; in riscv_timer_probe()
A Dast_timer.c49 uc_priv->clock_rate = AST_TMC_RATE; in ast_timer_probe()
A Datmel_pit_timer.c54 uc_priv->clock_rate = clk_rate / 16; in atmel_pit_probe()
A Ddw-apb-timer.c57 uc_priv->clock_rate = clk_get_rate(&clk); in dw_apb_timer_probe()
A Dmchp-pit64b-timer.c74 uc_priv->clock_rate = rate / 16; in mchp_pit64b_probe()
A Dstm32_timer.c104 uc_priv->clock_rate = CONFIG_SYS_HZ_CLOCK; in stm32_timer_probe()
A Dmpc83xx_timer.c228 uc_priv->clock_rate = (clk_get_rate(&clock) + 3L) / 4L; in mpc83xx_timer_probe()
A Drockchip_timer.c146 uc_priv->clock_rate = plat->dtd.clock_frequency; in rockchip_timer_probe()
/u-boot/arch/x86/cpu/slimbootloader/
A Dslimbootloader.c43 gd->arch.clock_rate = data->frequency * 1000; in tsc_init()
44 debug("freq=0x%lx\n", gd->arch.clock_rate); in tsc_init()
/u-boot/drivers/i2c/
A Dimx_lpi2c.c281 u32 clock_rate; in bus_i2c_set_bus_speed() local
286 clock_rate = clk_get_rate(&i2c_bus->per_clk); in bus_i2c_set_bus_speed()
287 if (clock_rate <= 0) { in bus_i2c_set_bus_speed()
288 dev_err(bus, "Failed to get i2c clk: %d\n", clock_rate); in bus_i2c_set_bus_speed()
289 return clock_rate; in bus_i2c_set_bus_speed()
292 clock_rate = imx_get_i2cclk(dev_seq(bus)); in bus_i2c_set_bus_speed()
293 if (!clock_rate) in bus_i2c_set_bus_speed()
306 rate = (clock_rate / preescale) / (1 + 3 + 2 + 2 / preescale); in bus_i2c_set_bus_speed()
308 rate = (clock_rate / preescale / (3 * clkhi + 2 + 2 / preescale)); in bus_i2c_set_bus_speed()
/u-boot/drivers/usb/host/
A Ddwc3-octeon-glue.c152 u32 clock_rate; in dwc3_octeon_clocks_start() local
160 i = dev_read_u32(dev, "refclk-frequency", &clock_rate); in dwc3_octeon_clocks_start()
203 clock_rate != CLOCK_100MHZ) in dwc3_octeon_clocks_start()
204 printf("Invalid UCTL clock rate of %u\n", clock_rate); in dwc3_octeon_clocks_start()
255 switch (clock_rate) { in dwc3_octeon_clocks_start()
258 clock_rate); in dwc3_octeon_clocks_start()
/u-boot/drivers/serial/
A Dserial_stm32.c26 u32 clock_rate, in _stm32_serial_setbrg() argument
32 int_div = DIV_ROUND_CLOSEST(clock_rate, baudrate); in _stm32_serial_setbrg()
53 plat->clock_rate, baudrate); in stm32_serial_setbrg()
205 plat->clock_rate = clk_get_rate(&clk); in stm32_serial_probe()
206 if (!plat->clock_rate) { in stm32_serial_probe()
A Dserial_stm32.h54 unsigned long int clock_rate; member
/u-boot/include/
A Dtimer.h86 unsigned long clock_rate; member
/u-boot/drivers/ram/aspeed/
A Dsdram_ast2500.c74 ulong clock_rate; member
349 clk_set_rate(&priv->ddr_clk, priv->clock_rate); in ast2500_sdrammc_probe()
403 priv->clock_rate = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in ast2500_sdrammc_of_to_plat()
406 if (!priv->clock_rate) { in ast2500_sdrammc_of_to_plat()
/u-boot/drivers/spi/
A Dstm32_qspi.c129 ulong clock_rate; member
373 priv->clock_rate = clk_get_rate(&clk); in stm32_qspi_probe()
374 if (!priv->clock_rate) { in stm32_qspi_probe()
452 u32 qspi_clk = priv->clock_rate; in stm32_qspi_set_speed()
/u-boot/arch/x86/include/asm/
A Dglobal_data.h96 unsigned long clock_rate; /* Clock rate of timer in Hz */ member

Completed in 22 milliseconds

12