Lines Matching refs:clock

750 	unsigned long clock = 0;  in get_clock_rate()  local
759 clock = osc_frequency(OSC_HSI); in get_clock_rate()
762 clock = osc_frequency(OSC_HSE); in get_clock_rate()
765 clock = stm32mp1_read_pll_freq(_PLL1, _DIV_P); in get_clock_rate()
770 clock = stm32mp1_read_pll_freq(_PLL1, _DIV_P) >> in get_clock_rate()
773 clock = 0; in get_clock_rate()
789 clock = osc_frequency(OSC_HSI); in get_clock_rate()
792 clock = osc_frequency(OSC_HSE); in get_clock_rate()
795 clock = stm32mp1_read_pll_freq(_PLL2, _DIV_P); in get_clock_rate()
803 clock /= stm32mp1_axi_div[reg & RCC_AXIDIV_MASK]; in get_clock_rate()
808 clock >>= stm32mp1_apbx_div[reg & RCC_APBXDIV_MASK]; in get_clock_rate()
812 clock >>= stm32mp1_apbx_div[reg & RCC_APBXDIV_MASK]; in get_clock_rate()
826 clock = osc_frequency(OSC_HSI); in get_clock_rate()
829 clock = osc_frequency(OSC_HSE); in get_clock_rate()
832 clock = osc_frequency(OSC_CSI); in get_clock_rate()
835 clock = stm32mp1_read_pll_freq(_PLL3, _DIV_P); in get_clock_rate()
843 clock >>= stm32mp1_mcu_div[reg & RCC_MCUDIV_MASK]; in get_clock_rate()
848 clock >>= stm32mp1_apbx_div[reg & RCC_APBXDIV_MASK]; in get_clock_rate()
852 clock >>= stm32mp1_apbx_div[reg & RCC_APBXDIV_MASK]; in get_clock_rate()
856 clock >>= stm32mp1_apbx_div[reg & RCC_APBXDIV_MASK]; in get_clock_rate()
867 clock = osc_frequency(OSC_HSI); in get_clock_rate()
870 clock = osc_frequency(OSC_HSE); in get_clock_rate()
873 clock = osc_frequency(OSC_CSI); in get_clock_rate()
881 clock = osc_frequency(OSC_HSI); in get_clock_rate()
885 clock = osc_frequency(OSC_CSI); in get_clock_rate()
889 clock = osc_frequency(OSC_HSE); in get_clock_rate()
892 clock = osc_frequency(OSC_HSE) >> 1; in get_clock_rate()
895 clock = osc_frequency(OSC_HSE); in get_clock_rate()
896 clock /= (io_read32(rcc_base + RCC_RTCDIVR) & in get_clock_rate()
900 clock = osc_frequency(OSC_LSI); in get_clock_rate()
903 clock = osc_frequency(OSC_LSE); in get_clock_rate()
907 clock = stm32mp1_read_pll_freq(_PLL1, _DIV_P); in get_clock_rate()
910 clock = stm32mp1_read_pll_freq(_PLL1, _DIV_Q); in get_clock_rate()
913 clock = stm32mp1_read_pll_freq(_PLL1, _DIV_R); in get_clock_rate()
916 clock = stm32mp1_read_pll_freq(_PLL2, _DIV_P); in get_clock_rate()
919 clock = stm32mp1_read_pll_freq(_PLL2, _DIV_Q); in get_clock_rate()
922 clock = stm32mp1_read_pll_freq(_PLL2, _DIV_R); in get_clock_rate()
925 clock = stm32mp1_read_pll_freq(_PLL3, _DIV_P); in get_clock_rate()
928 clock = stm32mp1_read_pll_freq(_PLL3, _DIV_Q); in get_clock_rate()
931 clock = stm32mp1_read_pll_freq(_PLL3, _DIV_R); in get_clock_rate()
934 clock = stm32mp1_read_pll_freq(_PLL4, _DIV_P); in get_clock_rate()
937 clock = stm32mp1_read_pll_freq(_PLL4, _DIV_Q); in get_clock_rate()
940 clock = stm32mp1_read_pll_freq(_PLL4, _DIV_R); in get_clock_rate()
944 clock = osc_frequency(OSC_USB_PHY_48); in get_clock_rate()
950 return clock; in get_clock_rate()