Searched refs:osc (Results 1 – 5 of 5) sorted by relevance
37 static bool pmc_main_rc_osc_ready(struct main_rc_osc *osc) in pmc_main_rc_osc_ready() argument39 uint32_t status = io_read32(osc->base + AT91_PMC_SR); in pmc_main_rc_osc_ready()46 struct main_rc_osc *osc = clk->priv; in pmc_main_rc_osc_enable() local47 uint32_t mor = io_read32(osc->base + AT91_CKGR_MOR); in pmc_main_rc_osc_enable()51 io_clrsetbits32(osc->base + AT91_CKGR_MOR, in pmc_main_rc_osc_enable()56 while (!pmc_main_rc_osc_ready(osc)) in pmc_main_rc_osc_enable()64 struct main_rc_osc *osc = clk->priv; in pmc_main_rc_osc_disable() local65 uint32_t mor = io_read32(osc->base + AT91_CKGR_MOR); in pmc_main_rc_osc_disable()70 io_clrsetbits32(osc->base + AT91_CKGR_MOR, in pmc_main_rc_osc_disable()77 struct main_rc_osc *osc = clk->priv; in pmc_main_rc_osc_get_rate() local[all …]
201 atmel,osc-bypass;
1073 const int osc[] = { OSC_HSI, OSC_HSE, OSC_CSI }; in clk_stm32_pll_get_oscillator_rate() local1075 assert(sel >= 0 && sel < (int)ARRAY_SIZE(osc)); in clk_stm32_pll_get_oscillator_rate()1077 return clk_stm32_get_rate_oscillateur(osc[sel]); in clk_stm32_pll_get_oscillator_rate()
776 unsigned int osc[] = { OSC_HSI, OSC_HSE, OSC_MSI }; in clk_stm32_pll_get_oscillator_rate() local778 assert(sel < ARRAY_SIZE(osc)); in clk_stm32_pll_get_oscillator_rate()780 return clk_stm32_get_rate_oscillator(osc[sel]); in clk_stm32_pll_get_oscillator_rate()
784 unsigned int osc[] = { OSC_HSI, OSC_HSE, OSC_MSI }; in clk_stm32_pll_get_oscillator_rate() local786 assert(sel < ARRAY_SIZE(osc)); in clk_stm32_pll_get_oscillator_rate()788 return clk_stm32_get_rate_oscillator(osc[sel]); in clk_stm32_pll_get_oscillator_rate()