Home
last modified time | relevance | path

Searched refs:podf (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/arch/arm/mach-imx/mx5/
Dclock.c305 u32 freq, pred1, pred2, podf; in get_ipg_per_clk() local
314 podf = readl(&mxc_ccm->cbcdr); in get_ipg_per_clk()
315 pred1 = MXC_CCM_CBCDR_PERCLK_PRED1_RD(podf); in get_ipg_per_clk()
316 pred2 = MXC_CCM_CBCDR_PERCLK_PRED2_RD(podf); in get_ipg_per_clk()
317 podf = MXC_CCM_CBCDR_PERCLK_PODF_RD(podf); in get_ipg_per_clk()
318 return freq / ((pred1 + 1) * (pred2 + 1) * (podf + 1)); in get_ipg_per_clk()
349 unsigned int clk_sel, freq, reg, pred, podf; in get_uart_clk() local
357 podf = MXC_CCM_CSCDR1_UART_CLK_PODF_RD(reg); in get_uart_clk()
358 freq /= (pred + 1) * (podf + 1); in get_uart_clk()
385 u32 clk_sel = 0, pred = 0, podf = 0, freq = 0; in get_esdhc_clk() local
[all …]
/external/u-boot/arch/arm/mach-imx/mx6/
Dclock.c484 u32 freq, podf, per2_clk2_podf, pmu_misc2_audio_div; in get_mmdc_ch0_clk() local
488 podf = (cbcdr & MXC_CCM_CBCDR_MMDC_CH1_PODF_MASK) >> in get_mmdc_ch0_clk()
542 return freq / (podf + 1) / (per2_clk2_podf + 1); in get_mmdc_ch0_clk()
544 podf = (cbcdr & MXC_CCM_CBCDR_MMDC_CH0_PODF_MASK) >> in get_mmdc_ch0_clk()
546 return get_periph_clk() / (podf + 1); in get_mmdc_ch0_clk()