Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/drivers/pwm/
Dpwm_mchp_xec.c109 static uint16_t xec_select_div(uint32_t freq, uint32_t max_freq[16]) in xec_select_div()
113 if (freq >= max_freq[3]) { in xec_select_div()
120 if (freq >= max_freq[i]) { in xec_select_div()
150 uint32_t max_freq[16], in xec_compare_div_on_off()
156 xec_compute_on_off(target_freq, dc, max_freq[div_a], in xec_compare_div_on_off()
159 freq_a = xec_compute_frequency(max_freq[div_a], *on_a, *off_a); in xec_compare_div_on_off()
161 xec_compute_on_off(target_freq, dc, max_freq[div_b], in xec_compare_div_on_off()
164 freq_b = xec_compute_frequency(max_freq[div_b], on_b, off_b); in xec_compare_div_on_off()
183 uint32_t max_freq[16], in xec_select_best_div_on_off()
189 div = xec_select_div(target_freq, max_freq); in xec_select_best_div_on_off()
[all …]
/Zephyr-Core-2.7.6/drivers/spi/
Dspi_nrfx_spim.c33 uint32_t max_freq; member
114 uint32_t max_freq = dev_config->max_freq; in configure() local
153 if (max_freq > 16000000 && in configure()
155 max_freq = 16000000; in configure()
163 max_freq)); in configure()
412 .max_freq = SPIM##idx##_MAX_DATARATE * 1000000, \
/Zephyr-Core-2.7.6/drivers/espi/
Despi_npcx.c476 uint8_t max_freq = 0; in espi_npcx_configure() local
480 switch (cfg->max_freq) { in espi_npcx_configure()
482 max_freq = NPCX_ESPI_MAXFREQ_20; in espi_npcx_configure()
485 max_freq = NPCX_ESPI_MAXFREQ_25; in espi_npcx_configure()
488 max_freq = NPCX_ESPI_MAXFREQ_33; in espi_npcx_configure()
491 max_freq = NPCX_ESPI_MAXFREQ_50; in espi_npcx_configure()
496 SET_FIELD(inst->ESPICFG, NPCX_ESPICFG_MAXFREQ_FIELD, max_freq); in espi_npcx_configure()
523 max_freq, io_mode, inst->ESPICFG); in espi_npcx_configure()
Despi_mchp_xec.c226 switch (cfg->max_freq) { in espi_xec_configure()
/Zephyr-Core-2.7.6/include/drivers/
Despi.h300 uint8_t max_freq; member
/Zephyr-Core-2.7.6/samples/drivers/espi/src/
Dmain.c896 .max_freq = ESPI_FREQ_20MHZ, in espi_init()
906 cfg.max_freq = ESPI_FREQ_25MHZ; in espi_init()