Lines Matching refs:freq
97 u32 freq = 0; in get_mcu_main_clk() local
109 freq = FIRC_CLK_FREQ; in get_mcu_main_clk()
112 freq = XOSC_CLK_FREQ; in get_mcu_main_clk()
116 freq = decode_pll(ARM_PLL, XOSC_CLK_FREQ, 0); in get_mcu_main_clk()
125 return freq / coreclk_div; in get_mcu_main_clk()
132 u32 freq = 0; in get_sys_clk() local
156 freq = FIRC_CLK_FREQ; in get_sys_clk()
159 freq = XOSC_CLK_FREQ; in get_sys_clk()
163 freq = decode_pll(ARM_PLL, XOSC_CLK_FREQ, 1); in get_sys_clk()
172 return freq / sysclk_div; in get_sys_clk()
178 u32 freq = 0; in get_peripherals_clk() local
186 freq = decode_pll(PERIPH_PLL, XOSC_CLK_FREQ, 0); in get_peripherals_clk()
188 return freq / aux5clk_div; in get_peripherals_clk()
194 u32 auxclk3_div, auxclk3_sel, freq = 0; in get_uart_clk() local
208 freq = FIRC_CLK_FREQ; in get_uart_clk()
211 freq = XOSC_CLK_FREQ; in get_uart_clk()
214 freq = get_peripherals_clk() / 3; in get_uart_clk()
217 freq = get_sys_clk(6); in get_uart_clk()
223 return freq / auxclk3_div; in get_uart_clk()
229 u32 freq = 0; in get_fec_clk() local
237 freq = decode_pll(ENET_PLL, XOSC_CLK_FREQ, 0); in get_fec_clk()
239 return freq / aux2clk_div; in get_fec_clk()
245 u32 freq = 0; in get_usdhc_clk() local
253 freq = decode_pll(ENET_PLL, XOSC_CLK_FREQ, 4); in get_usdhc_clk()
255 return freq / aux15clk_div; in get_usdhc_clk()