Home
last modified time | relevance | path

Searched refs:freqhz (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/espi/
Despi_saf_mchp_xec.c172 static uint32_t qmspi_freq_div(uint32_t freqhz) in qmspi_freq_div() argument
176 if (freqhz < (MCHP_QMSPI_MIN_FREQ_KHZ * 1000U)) { in qmspi_freq_div()
178 } else if (freqhz >= (MCHP_QMSPI_MAX_FREQ_KHZ * 1000U)) { in qmspi_freq_div()
182 fdiv = MCHP_QMSPI_INPUT_CLOCK_FREQ_HZ / freqhz; in qmspi_freq_div()
Despi_saf_mchp_xec_v2.c178 static int qmspi_freq_div(uint32_t freqhz, uint32_t *fdiv) in qmspi_freq_div() argument
194 if (freqhz) { in qmspi_freq_div()
195 *fdiv = clk / freqhz; in qmspi_freq_div()
203 uint32_t freqhz = freqmhz * 1000000u; in qmspi_freq_div_from_mhz() local
205 return qmspi_freq_div(freqhz, fdiv); in qmspi_freq_div_from_mhz()