Lines Matching refs:sysclk
333 static u32 stm32_get_hclk_rate(struct stm32_rcc_regs *regs, u32 sysclk) in stm32_get_hclk_rate() argument
345 return sysclk >> shift; in stm32_get_hclk_rate()
365 static u32 stm32_get_timer_rate(struct stm32_clk *priv, u32 sysclk, in stm32_get_timer_rate() argument
380 return stm32_get_hclk_rate(regs, sysclk); in stm32_get_timer_rate()
382 return (sysclk >> shift) * 4; in stm32_get_timer_rate()
390 return sysclk; in stm32_get_timer_rate()
392 return (sysclk >> shift) * 2; in stm32_get_timer_rate()
399 u32 sysclk = 0; in stm32_clk_get_rate() local
416 sysclk = vco / pllp; in stm32_clk_get_rate()
427 return stm32_get_hclk_rate(regs, sysclk); in stm32_clk_get_rate()
441 return stm32_get_timer_rate(priv, sysclk, APB1); in stm32_clk_get_rate()
443 return (sysclk >> stm32_get_apb_shift(regs, APB1)); in stm32_clk_get_rate()
462 return sysclk; in stm32_clk_get_rate()
479 return stm32_get_timer_rate(priv, sysclk, APB2); in stm32_clk_get_rate()
491 return (sysclk >> stm32_get_apb_shift(regs, APB2)); in stm32_clk_get_rate()