Lines Matching refs:sysclk

594 static u32 stm32_get_timer_rate(struct stm32_clk *priv, u32 sysclk,  in stm32_get_timer_rate()  argument
609 return sysclk; in stm32_get_timer_rate()
611 return sysclk / 2; in stm32_get_timer_rate()
613 return sysclk / 4; in stm32_get_timer_rate()
621 return sysclk; in stm32_get_timer_rate()
626 return sysclk / psc; in stm32_get_timer_rate()
637 ulong sysclk = 0; in stm32_clk_get_rate() local
651 sysclk = stm32_get_PLL1_rate(regs, PLL1_P_CK); in stm32_clk_get_rate()
654 sysclk = stm32_get_rate(regs, HSE); in stm32_clk_get_rate()
658 sysclk = stm32_get_rate(regs, CSI); in stm32_clk_get_rate()
662 sysclk = stm32_get_rate(regs, HSI); in stm32_clk_get_rate()
667 if (!sysclk) in stm32_clk_get_rate()
668 return sysclk; in stm32_clk_get_rate()
671 source, sysclk); in stm32_clk_get_rate()
679 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate()
685 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate()
691 clk->id, gate_offset, sysclk); in stm32_clk_get_rate()
698 return sysclk; in stm32_clk_get_rate()
706 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate()
710 sysclk); in stm32_clk_get_rate()
712 return sysclk; in stm32_clk_get_rate()
721 sysclk = sysclk / prescaler_table[idx]; in stm32_clk_get_rate()
726 sysclk); in stm32_clk_get_rate()
728 return sysclk; in stm32_clk_get_rate()
744 return stm32_get_timer_rate(priv, sysclk, APB1); in stm32_clk_get_rate()
749 sysclk); in stm32_clk_get_rate()
751 return (sysclk / stm32_get_apb_psc(regs, APB1)); in stm32_clk_get_rate()
762 return stm32_get_timer_rate(priv, sysclk, APB2); in stm32_clk_get_rate()
767 sysclk); in stm32_clk_get_rate()
769 return (sysclk / stm32_get_apb_psc(regs, APB2)); in stm32_clk_get_rate()