Home
last modified time | relevance | path

Searched refs:freq_hz (Results 1 – 4 of 4) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_bclink.c95 int mec_hal_bcl_get_freq(struct mec_bcl_regs *regs, uint32_t *freq_hz) in mec_hal_bcl_get_freq() argument
102 if (!freq_hz) { in mec_hal_bcl_get_freq()
108 *freq_hz = (uint32_t)(MEC_BCL_SOURCE_CLOCK_FREQ) / (fdiv + 1u); in mec_hal_bcl_get_freq()
129 int mec_hal_bcl_set_freq(struct mec_bcl_regs *regs, uint32_t freq_hz) in mec_hal_bcl_set_freq() argument
143 if ((freq_hz < MEC_BCL_MIN_CLK_FREQ) || (freq_hz > MEC_BCL_MAX_CLK_FREQ)) { in mec_hal_bcl_set_freq()
147 clkdiv = MEC_BCL_SOURCE_CLOCK_FREQ / freq_hz; in mec_hal_bcl_set_freq()
Dmec_bclink_api.h57 int mec_hal_bcl_get_freq(struct mec_bcl_regs *regs, uint32_t *freq_hz);
58 int mec_hal_bcl_set_freq(struct mec_bcl_regs *regs, uint32_t freq_hz);
Dmec_qspi.c204 static uint32_t compute_freq_divisor(uint32_t freq_hz) in compute_freq_divisor() argument
209 if (freq_hz < (src_freq / MEC_QSPI_M_FDIV_MAX)) { in compute_freq_divisor()
211 } else if (freq_hz > src_freq) { in compute_freq_divisor()
214 fdiv = src_freq / freq_hz; in compute_freq_divisor()
522 uint32_t freq_hz, in mec_hal_qspi_init() argument
535 qspi_set_freq(base, freq_hz); in mec_hal_qspi_init()
Dmec_qspi_api.h183 uint32_t freq_hz,