Home
last modified time | relevance | path

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

/drivers/rng/
A Dstm32_rng.c235 uint clock_div = 0; in stm32_rng_clock_freq_restrain() local
244 while ((clock_rate >> clock_div) > pdata->data->max_clock_rate) in stm32_rng_clock_freq_restrain()
245 clock_div++; in stm32_rng_clock_freq_restrain()
247 log_debug("RNG clk rate : %lu\n", clk_get_rate(&pdata->clk) >> clock_div); in stm32_rng_clock_freq_restrain()
249 return clock_div; in stm32_rng_clock_freq_restrain()
267 uint clock_div = stm32_rng_clock_freq_restrain(pdata); in stm32_rng_init() local
271 (clock_div << RNG_CR_CLKDIV_SHIFT); in stm32_rng_init()

Completed in 4 milliseconds