Home
last modified time | relevance | path

Searched refs:pre_pdf (Results 1 – 2 of 2) 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
269 pre_pdf = (mpdr2 >> 24) & 0x7; in mxc_get_peri_clock()
274 ((pre_pdf + 1) * (pdf + 1)); in mxc_get_peri_clock()
277 pre_pdf = (mpdr2 >> 27) & 0x7; in mxc_get_peri_clock()
282 ((pre_pdf + 1) * (pdf + 1)); in mxc_get_peri_clock()
291 pre_pdf = readl(&ccm->pdr1); in mxc_get_peri_clock()
292 clk_sel = (pre_pdf & 0x80); in mxc_get_peri_clock()
293 pdf = (pre_pdf >> 22) & 0x3F; in mxc_get_peri_clock()
294 pre_pdf = (pre_pdf >> 28) & 0x7; in mxc_get_peri_clock()
297 ((pre_pdf + 1) * (pdf + 1)); in mxc_get_peri_clock()
[all …]
/external/u-boot/arch/arm/mach-imx/mx5/
Dclock.c368 u32 ret_val = 0, pdf, pre_pdf, clk_sel, freq; in imx_get_cspiclk() local
372 pre_pdf = MXC_CCM_CSCDR2_CSPI_CLK_PRED_RD(cscdr2); in imx_get_cspiclk()
376 ret_val = freq / ((pre_pdf + 1) * (pdf + 1)); in imx_get_cspiclk()