Home
last modified time | relevance | path

Searched refs:max_freq (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_mchp_xec.c115 static uint16_t xec_select_div(uint32_t freq, const uint32_t max_freq[16]) in xec_select_div()
119 if (freq >= max_freq[3]) { in xec_select_div()
126 if (freq >= max_freq[i]) { in xec_select_div()
156 const uint32_t max_freq[16], in xec_compare_div_on_off()
162 xec_compute_on_off(target_freq, dc, max_freq[div_a], in xec_compare_div_on_off()
165 freq_a = xec_compute_frequency(max_freq[div_a], *on_a, *off_a); in xec_compare_div_on_off()
167 xec_compute_on_off(target_freq, dc, max_freq[div_b], in xec_compare_div_on_off()
170 freq_b = xec_compute_frequency(max_freq[div_b], on_b, off_b); in xec_compare_div_on_off()
189 const uint32_t max_freq[16], in xec_select_best_div_on_off()
195 div = xec_select_div(target_freq, max_freq); in xec_select_best_div_on_off()
[all …]
/Zephyr-Core-3.5.0/drivers/spi/
Dspi_nrfx_spim.c55 uint32_t max_freq; member
125 uint32_t max_freq = dev_config->max_freq; in configure() local
170 if (max_freq > 16000000 && in configure()
172 max_freq = 16000000; in configure()
180 max_freq)); in configure()
620 .max_freq = SPIM_PROP(idx, max_frequency), \
/Zephyr-Core-3.5.0/drivers/espi/
Despi_npcx.c542 uint8_t max_freq = 0; in espi_npcx_configure() local
546 switch (cfg->max_freq) { in espi_npcx_configure()
548 max_freq = NPCX_ESPI_MAXFREQ_20; in espi_npcx_configure()
551 max_freq = NPCX_ESPI_MAXFREQ_25; in espi_npcx_configure()
554 max_freq = NPCX_ESPI_MAXFREQ_33; in espi_npcx_configure()
557 max_freq = NPCX_ESPI_MAXFREQ_50; in espi_npcx_configure()
562 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_MAXFREQ_FIELD, max_freq); in espi_npcx_configure()
589 max_freq, io_mode, inst->ESPICFG); in espi_npcx_configure()
Despi_mchp_xec.c239 switch (cfg->max_freq) { in espi_xec_configure()
Despi_mchp_xec_v2.c187 switch (cfg->max_freq) { in espi_xec_configure()
Despi_it8xxx2.c621 switch (cfg->max_freq) { in espi_it8xxx2_configure()
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Despi.h341 uint8_t max_freq; member
/Zephyr-Core-3.5.0/samples/drivers/espi/src/
Dmain.c911 .max_freq = ESPI_FREQ_20MHZ, in espi_init()
921 cfg.max_freq = ESPI_FREQ_25MHZ; in espi_init()