Home
last modified time | relevance | path

Searched refs:clk_sel (Results 1 – 3 of 3) sorted by relevance

/external/u-boot/arch/arm/cpu/arm1136/mx35/
Dgeneric.c252 u32 ret_val = 0, pdf, pre_pdf, clk_sel; in mxc_get_peri_clock() local
263 clk_sel = mpdr3 & (1 << 14); in mxc_get_peri_clock()
265 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
271 clk_sel = mpdr2 & (1 << 6); in mxc_get_peri_clock()
272 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
279 clk_sel = mpdr2 & (1 << 6); in mxc_get_peri_clock()
280 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
285 clk_sel = mpdr2 & (1 << 7); in mxc_get_peri_clock()
287 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
292 clk_sel = (pre_pdf & 0x80); in mxc_get_peri_clock()
[all …]
/external/u-boot/arch/arm/mach-imx/mx5/
Dclock.c322 static u32 get_standard_pll_sel_clk(u32 clk_sel) in get_standard_pll_sel_clk() argument
326 switch (clk_sel & 0x3) { in get_standard_pll_sel_clk()
349 unsigned int clk_sel, freq, reg, pred, podf; in get_uart_clk() local
352 clk_sel = MXC_CCM_CSCMR1_UART_CLK_SEL_RD(reg); in get_uart_clk()
353 freq = get_standard_pll_sel_clk(clk_sel); in get_uart_clk()
368 u32 ret_val = 0, pdf, pre_pdf, clk_sel, freq; in imx_get_cspiclk() local
374 clk_sel = MXC_CCM_CSCMR1_CSPI_CLK_SEL_RD(cscmr1); in imx_get_cspiclk()
375 freq = get_standard_pll_sel_clk(clk_sel); in imx_get_cspiclk()
385 u32 clk_sel = 0, pred = 0, podf = 0, freq = 0; in get_esdhc_clk() local
391 clk_sel = MXC_CCM_CSCMR1_ESDHC1_MSHC1_CLK_SEL_RD(cscmr1); in get_esdhc_clk()
[all …]
/external/u-boot/arch/arm/mach-imx/mx6/
Dclock.c983 u32 root_freq = 0, usdhc_podf = 0, clk_sel = 0; in get_usdhc_clk() local
1001 clk_sel = cscmr1 & MXC_CCM_CSCMR1_USDHC1_CLK_SEL; in get_usdhc_clk()
1007 clk_sel = cscmr1 & MXC_CCM_CSCMR1_USDHC2_CLK_SEL; in get_usdhc_clk()
1013 clk_sel = cscmr1 & MXC_CCM_CSCMR1_USDHC3_CLK_SEL; in get_usdhc_clk()
1019 clk_sel = cscmr1 & MXC_CCM_CSCMR1_USDHC4_CLK_SEL; in get_usdhc_clk()
1026 if (clk_sel) in get_usdhc_clk()