Lines Matching refs:ccm
133 struct ccm_regs *ccm = in get_mcu_main_clk() local
135 arm_div = get_arm_div(readl(&ccm->pdr0), &fi, &fd); in get_mcu_main_clk()
136 fi *= decode_pll(readl(&ccm->mpctl), MXC_HCLK); in get_mcu_main_clk()
143 struct ccm_regs *ccm = in get_ipg_clk() local
145 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_clk()
153 struct ccm_regs *ccm = in get_ipg_per_clk() local
155 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_per_clk()
156 u32 pdr4 = readl(&ccm->pdr4); in get_ipg_per_clk()
174 struct ccm_regs *ccm = in imx_get_uartclk() local
176 u32 pdr4 = readl(&ccm->pdr4); in imx_get_uartclk()
178 if (readl(&ccm->pdr3) & MXC_CCM_PDR3_UART_M_U) in imx_get_uartclk()
181 freq = decode_pll(readl(&ccm->ppctl), MXC_HCLK); in imx_get_uartclk()
192 struct ccm_regs *ccm = in mxc_get_main_clock() local
195 u32 reg = readl(&ccm->pdr0); in mxc_get_main_clock()
196 u32 reg4 = readl(&ccm->pdr4); in mxc_get_main_clock()
239 pll = decode_pll(readl(&ccm->ppctl), MXC_HCLK); in mxc_get_main_clock()
253 struct ccm_regs *ccm = in mxc_get_peri_clock() local
255 u32 mpdr2 = readl(&ccm->pdr2); in mxc_get_peri_clock()
256 u32 mpdr3 = readl(&ccm->pdr3); in mxc_get_peri_clock()
257 u32 mpdr4 = readl(&ccm->pdr4); in mxc_get_peri_clock()
266 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / (pdf + 1); in mxc_get_peri_clock()
273 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / in mxc_get_peri_clock()
281 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / in mxc_get_peri_clock()
288 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / (pdf + 1); in mxc_get_peri_clock()
291 pre_pdf = readl(&ccm->pdr1); in mxc_get_peri_clock()
296 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / in mxc_get_peri_clock()
303 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / (pdf + 1); in mxc_get_peri_clock()
309 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / (pdf + 1); in mxc_get_peri_clock()
315 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / (pdf + 1); in mxc_get_peri_clock()
322 decode_pll(readl(&ccm->ppctl), MXC_HCLK)) / in mxc_get_peri_clock()
401 struct ccm_regs *ccm = in get_reset_cause() local
404 u32 cause = readl(&ccm->rcsr) & 0x0F; in get_reset_cause()
486 struct ccm_regs *ccm = in spl_boot_device() local
489 u32 rcsr = readl(&ccm->rcsr); in spl_boot_device()