Searched refs:mainclk (Results 1 – 2 of 2) sorted by relevance
158 static uint32_t beetle_round_freq(uint32_t mainclk) in beetle_round_freq() argument166 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() argument187 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() argument203 uint32_t pre_mainclk = beetle_get_prescaler(mainclk); in beetle_pll_enable()[all …]
39 volatile uint32_t mainclk; member