Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/clock_control/
Dbeetle_clock_control.c158 static uint32_t beetle_round_freq(uint32_t mainclk) in beetle_round_freq() argument
166 if (mainclk <= BEETLE_PLL_FREQUENCY_12MHZ) { in beetle_round_freq()
168 } else if (mainclk <= BEETLE_PLL_FREQUENCY_24MHZ) { in beetle_round_freq()
170 } else if (mainclk <= BEETLE_PLL_FREQUENCY_36MHZ) { in beetle_round_freq()
179 static uint32_t beetle_get_prescaler(uint32_t mainclk) in beetle_get_prescaler() argument
187 if (mainclk <= BEETLE_PLL_FREQUENCY_12MHZ) { in beetle_get_prescaler()
189 } else if (mainclk <= BEETLE_PLL_FREQUENCY_24MHZ) { in beetle_get_prescaler()
191 } else if (mainclk <= BEETLE_PLL_FREQUENCY_36MHZ) { in beetle_get_prescaler()
200 static int beetle_pll_enable(uint32_t mainclk) in beetle_pll_enable() argument
203 uint32_t pre_mainclk = beetle_get_prescaler(mainclk); in beetle_pll_enable()
[all …]
/Zephyr-latest/soc/arm/beetle/
Dsoc_registers.h39 volatile uint32_t mainclk; member