Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.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.c27 uint32_t clk_freq; member
101 return dw_wdt_calc_period((uint32_t)reg_base, dev_data->clk_freq, config,
182 &dev_data->clk_freq);
271 (.clk_freq = DT_INST_PROP(inst, clock_frequency)), \
273 (.clk_freq = 0), \
274 (.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()
233 (.clk_freq = DT_PROP(DEV_NODE, clock_frequency)),
234 (.clk_freq = DT_PROP_BY_PHANDLE(DEV_NODE, clocks, clock_frequency))
Dwdt_dw_common.c58 int dw_wdt_calc_period(const uint32_t base, const uint32_t clk_freq, in dw_wdt_calc_period() argument
70 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.6.0/drivers/i2c/
Di2c_rv32m1_lpi2c.c48 uint32_t clk_freq; in rv32m1_lpi2c_configure() local
86 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_configure()
92 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_configure()
213 uint32_t clk_freq, dev_cfg; in rv32m1_lpi2c_init() local
229 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clk_freq); in rv32m1_lpi2c_init()
236 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.6.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.6.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.6.0/drivers/pwm/
Dpwm_led_esp32.c254 uint64_t clk_freq; in pwm_led_esp32_set_cycles() local
265 ret = pwm_led_esp32_get_cycles_per_sec(dev, channel_idx, &clk_freq); in pwm_led_esp32_set_cycles()
270 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.6.0/drivers/can/
Dcan_tcan4x5x.c228 uint32_t clk_freq; member
398 *rate = tcan_config->clk_freq; in tcan4x5x_get_core_clock()
683 if (tcan_config->clk_freq == MHZ(20)) { in tcan4x5x_init()
781 .clk_freq = DT_INST_PROP(inst, clock_frequency), \
/Zephyr-Core-3.6.0/drivers/clock_control/
Dclock_control_litex.c1242 uint64_t m, clk_freq = 0; in litex_clk_calc_clkout_params() local
1252 clk_freq = vco_freq; in litex_clk_calc_clkout_params()
1253 clk_freq /= d; in litex_clk_calc_clkout_params()
1260 delta_f = clk_freq - lcko->ts_config.freq; in litex_clk_calc_clkout_params()
1263 lcko->config.freq = (uint32_t)clk_freq; in litex_clk_calc_clkout_params()