/u-boot/drivers/timer/ |
A D | timer-uclass.c | 46 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 D | tsc_timer.c | 404 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 D | omap-timer.c | 61 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 D | nomadik-mtu-timer.c | 80 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 D | sandbox_timer.c | 43 else if (!uc_priv->clock_rate) in sandbox_timer_probe() 44 uc_priv->clock_rate = SANDBOX_TIMER_RATE; in sandbox_timer_probe()
|
A D | sti-timer.c | 58 uc_priv->clock_rate = ret; in sti_timer_probe() 60 uc_priv->clock_rate = CONFIG_SYS_HZ_CLOCK; in sti_timer_probe()
|
A D | mtk_timer.c | 60 uc_priv->clock_rate = clk_get_rate(&clk); in mtk_timer_probe() 61 if (!uc_priv->clock_rate) in mtk_timer_probe()
|
A D | ostm_timer.c | 50 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 D | riscv_timer.c | 58 uc_priv->clock_rate = dev->driver_data; in riscv_timer_probe()
|
A D | ast_timer.c | 49 uc_priv->clock_rate = AST_TMC_RATE; in ast_timer_probe()
|
A D | atmel_pit_timer.c | 54 uc_priv->clock_rate = clk_rate / 16; in atmel_pit_probe()
|
A D | dw-apb-timer.c | 57 uc_priv->clock_rate = clk_get_rate(&clk); in dw_apb_timer_probe()
|
A D | mchp-pit64b-timer.c | 74 uc_priv->clock_rate = rate / 16; in mchp_pit64b_probe()
|
A D | stm32_timer.c | 104 uc_priv->clock_rate = CONFIG_SYS_HZ_CLOCK; in stm32_timer_probe()
|
A D | mpc83xx_timer.c | 228 uc_priv->clock_rate = (clk_get_rate(&clock) + 3L) / 4L; in mpc83xx_timer_probe()
|
A D | rockchip_timer.c | 146 uc_priv->clock_rate = plat->dtd.clock_frequency; in rockchip_timer_probe()
|
/u-boot/arch/x86/cpu/slimbootloader/ |
A D | slimbootloader.c | 43 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 D | imx_lpi2c.c | 281 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 D | dwc3-octeon-glue.c | 152 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 D | serial_stm32.c | 26 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 D | serial_stm32.h | 54 unsigned long int clock_rate; member
|
/u-boot/include/ |
A D | timer.h | 86 unsigned long clock_rate; member
|
/u-boot/drivers/ram/aspeed/ |
A D | sdram_ast2500.c | 74 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 D | stm32_qspi.c | 129 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 D | global_data.h | 96 unsigned long clock_rate; /* Clock rate of timer in Hz */ member
|