Searched refs:freq_hz (Results 1 – 4 of 4) sorted by relevance
95 int mec_hal_bcl_get_freq(struct mec_bcl_regs *regs, uint32_t *freq_hz) in mec_hal_bcl_get_freq() argument102 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() argument143 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()
57 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);
204 static uint32_t compute_freq_divisor(uint32_t freq_hz) in compute_freq_divisor() argument209 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() argument535 qspi_set_freq(base, freq_hz); in mec_hal_qspi_init()
183 uint32_t freq_hz,