Lines Matching refs:ccm
54 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_get_mpllclk() local
57 return imx_decode_pll(readl(&ccm->mpctl), fref); in imx_get_mpllclk()
62 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_get_upllclk() local
65 return imx_decode_pll(readl(&ccm->upctl), fref); in imx_get_upllclk()
70 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_get_armclk() local
71 ulong cctl = readl(&ccm->cctl); in imx_get_armclk()
86 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_get_ahbclk() local
87 ulong cctl = readl(&ccm->cctl); in imx_get_ahbclk()
104 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_get_perclk() local
105 ulong fref = readl(&ccm->mcr) & (1 << clk) ? imx_get_upllclk() : in imx_get_perclk()
109 div = readl(&ccm->pcdr[CCM_PERCLK_REG(clk)]); in imx_get_perclk()
117 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in imx_set_perclk() local
124 clrsetbits_le32(&ccm->pcdr[CCM_PERCLK_REG(clk)], in imx_set_perclk()
128 setbits_le32(&ccm->mcr, 1 << clk); in imx_set_perclk()
130 clrbits_le32(&ccm->mcr, 1 << clk); in imx_set_perclk()
183 struct ccm_regs *ccm = in get_reset_cause() local
186 u32 cause = readl(&ccm->rcsr) & 0x0f; in get_reset_cause()
232 struct ccm_regs *ccm = (struct ccm_regs *)IMX_CCM_BASE; in cpu_eth_init() local
235 val = readl(&ccm->cgr0); in cpu_eth_init()
237 writel(val, &ccm->cgr0); in cpu_eth_init()