Home
last modified time | relevance | path

Searched refs:clk_freq (Results 1 – 14 of 14) sorted by relevance

/Zephyr-Core-3.5.0/drivers/watchdog/
Dwdt_ambiq.c23 uint8_t clk_freq; member
54 if (dev_cfg->clk_freq == 128) { in wdt_ambiq_setup()
56 } else if (dev_cfg->clk_freq == 16) { in wdt_ambiq_setup()
58 } else if (dev_cfg->clk_freq == 1) { in wdt_ambiq_setup()
93 data->timeout = cfg->window.max / 1000 * dev_cfg->clk_freq; in wdt_ambiq_install_timeout()
127 if (dev_cfg->clk_freq != 128 && dev_cfg->clk_freq != 16 && dev_cfg->clk_freq != 1) { in wdt_ambiq_init()
157 .clk_freq = DT_INST_PROP(n, clock_frequency), \
Dwdt_opentitan.c25 uint32_t clk_freq; member
91 const uint64_t max_window = (uint64_t) UINT32_MAX * 1000 / dev_cfg->clk_freq; in ot_aontimer_install_timeout()
127 bark_thold = ((uint64_t) cfg->window.max * dev_cfg->clk_freq / 1000); in ot_aontimer_install_timeout()
128 bite_thold = ((uint64_t) bite->window.max * dev_cfg->clk_freq / 1000); in ot_aontimer_install_timeout()
140 bite_thold = ((uint64_t) cfg->window.max * dev_cfg->clk_freq / 1000); in ot_aontimer_install_timeout()
204 .clk_freq = DT_INST_PROP(0, clock_frequency),
Dwdt_dw.c35 uint32_t clk_freq; member
80 return dw_wdt_calc_period(dev_config->base, dev_config->clk_freq, config,
160 (.clk_freq = DT_INST_PROP(inst, clock_frequency)), \
161 (.clk_freq = DT_INST_PROP_BY_PHANDLE(inst, clocks, clock_frequency)) \
Dwdt_intel_adsp.c60 uint32_t clk_freq; member
106 ret = dw_wdt_calc_period(dev_data->core_wdt[0], dev_config->clk_freq, config, in intel_adsp_wdt_install_timeout()
228 (.clk_freq = DT_PROP(DEV_NODE, clock_frequency)),
229 (.clk_freq = DT_PROP_BY_PHANDLE(DEV_NODE, clocks, clock_frequency))
Dwdt_dw_common.c60 int dw_wdt_calc_period(const uint32_t base, const uint32_t clk_freq, in dw_wdt_calc_period() argument
72 period64 = (uint64_t)clk_freq * config->window.max; in dw_wdt_calc_period()
Dwdt_dw_common.h43 int dw_wdt_calc_period(const uint32_t base, const uint32_t clk_freq,
/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_rv32m1_lpi2c.c47 uint32_t clk_freq; in rv32m1_lpi2c_configure() local
85 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_configure()
91 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_configure()
212 uint32_t clk_freq, dev_cfg; in rv32m1_lpi2c_init() local
228 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_init()
235 LPI2C_MasterInit(config->base, &master_config, clk_freq); in rv32m1_lpi2c_init()
Di2c_esp32.c113 static i2c_sclk_t i2c_get_clk_src(uint32_t clk_freq) in i2c_get_clk_src() argument
116 if (clk_freq <= i2c_clk_alloc[clk]) { in i2c_get_clk_src()
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_led_esp32.c243 uint64_t clk_freq; in pwm_led_esp32_set_cycles() local
254 pwm_led_esp32_get_cycles_per_sec(dev, channel_idx, &clk_freq); in pwm_led_esp32_set_cycles()
256 channel->freq = (uint32_t) (clk_freq/period_cycles); in pwm_led_esp32_set_cycles()
Dpwm_mc_esp32.c222 uint64_t clk_freq; in mcpwm_esp32_set_cycles() local
233 mcpwm_esp32_get_cycles_per_sec(dev, channel_idx, &clk_freq); in mcpwm_esp32_set_cycles()
235 channel->freq = (uint32_t)(clk_freq / period_cycles); in mcpwm_esp32_set_cycles()
/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_mcux_ctimer.c203 uint32_t clk_freq = 0; in mcux_lpc_ctimer_get_freq() local
206 &clk_freq)) { in mcux_lpc_ctimer_get_freq()
215 return (clk_freq / (config->prescale + 1)); in mcux_lpc_ctimer_get_freq()
/Zephyr-Core-3.5.0/drivers/serial/
Duart_xlnx_ps.c232 uint32_t clk_freq = dev_cfg->sys_clk_freq; in set_baudrate() local
237 if ((baud != 0) && (clk_freq != 0)) { in set_baudrate()
239 if (clk_freq < 1000000U && baud > 4800U) { in set_baudrate()
246 generator = clk_freq / (baud * (divisor + 1)); in set_baudrate()
250 tmpbaud = clk_freq / (generator * (divisor + 1)); in set_baudrate()
/Zephyr-Core-3.5.0/drivers/can/
Dcan_tcan4x5x.c228 uint32_t clk_freq; member
398 *rate = tcan_config->clk_freq; in tcan4x5x_get_core_clock()
679 if (tcan_config->clk_freq == MHZ(20)) { in tcan4x5x_init()
778 .clk_freq = DT_INST_PROP(inst, clock_frequency), \
/Zephyr-Core-3.5.0/drivers/clock_control/
Dclock_control_litex.c1240 uint64_t m, clk_freq = 0; in litex_clk_calc_clkout_params() local
1250 clk_freq = vco_freq; in litex_clk_calc_clkout_params()
1251 clk_freq /= d; in litex_clk_calc_clkout_params()
1258 delta_f = clk_freq - lcko->ts_config.freq; in litex_clk_calc_clkout_params()
1261 lcko->config.freq = (uint32_t)clk_freq; in litex_clk_calc_clkout_params()