Lines Matching refs:clkctrl_regs

38 	struct mxs_clkctrl_regs *clkctrl_regs =  in mxs_get_pclk()  local
44 clkctrl = readl(&clkctrl_regs->hw_clkctrl_cpu); in mxs_get_pclk()
52 clkseq = readl(&clkctrl_regs->hw_clkctrl_clkseq); in mxs_get_pclk()
62 clkfrac = readb(&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_CPU]); in mxs_get_pclk()
70 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_get_hclk() local
76 clkctrl = readl(&clkctrl_regs->hw_clkctrl_hbus); in mxs_get_hclk()
88 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_get_emiclk() local
94 clkseq = readl(&clkctrl_regs->hw_clkctrl_clkseq); in mxs_get_emiclk()
95 clkctrl = readl(&clkctrl_regs->hw_clkctrl_emi); in mxs_get_emiclk()
105 clkfrac = readb(&clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_EMI]); in mxs_get_emiclk()
113 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_get_gpmiclk() local
117 &clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_CPU]; in mxs_get_gpmiclk()
120 &clkctrl_regs->hw_clkctrl_frac1[CLKCTRL_FRAC1_GPMI]; in mxs_get_gpmiclk()
125 clkseq = readl(&clkctrl_regs->hw_clkctrl_clkseq); in mxs_get_gpmiclk()
126 clkctrl = readl(&clkctrl_regs->hw_clkctrl_gpmi); in mxs_get_gpmiclk()
146 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_set_ioclk() local
167 &clkctrl_regs->hw_clkctrl_frac0_set[io_reg]); in mxs_set_ioclk()
169 &clkctrl_regs->hw_clkctrl_frac0[io_reg]); in mxs_set_ioclk()
171 &clkctrl_regs->hw_clkctrl_frac0_clr[io_reg]); in mxs_set_ioclk()
179 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_get_ioclk() local
189 ret = readb(&clkctrl_regs->hw_clkctrl_frac0[io_reg]) & in mxs_get_ioclk()
200 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_set_sspclk() local
207 clkreg = (uint32_t)(&clkctrl_regs->hw_clkctrl_ssp0) + in mxs_set_sspclk()
233 &clkctrl_regs->hw_clkctrl_clkseq_set); in mxs_set_sspclk()
236 &clkctrl_regs->hw_clkctrl_clkseq_clr); in mxs_set_sspclk()
244 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_get_sspclk() local
252 tmp = readl(&clkctrl_regs->hw_clkctrl_clkseq); in mxs_get_sspclk()
256 clkreg = (uint32_t)(&clkctrl_regs->hw_clkctrl_ssp0) + in mxs_get_sspclk()
313 struct mxs_clkctrl_regs *clkctrl_regs = in mxs_set_lcdclk() local
322 writel(CLKCTRL_CLKSEQ_BYPASS_PIX, &clkctrl_regs->hw_clkctrl_clkseq_clr); in mxs_set_lcdclk()
324 writel(CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF, &clkctrl_regs->hw_clkctrl_clkseq_clr); in mxs_set_lcdclk()
371 &clkctrl_regs->hw_clkctrl_frac0_set[CLKCTRL_FRAC0_PIX]); in mxs_set_lcdclk()
373 &clkctrl_regs->hw_clkctrl_frac0[CLKCTRL_FRAC0_PIX]); in mxs_set_lcdclk()
375 &clkctrl_regs->hw_clkctrl_frac0_clr[CLKCTRL_FRAC0_PIX]); in mxs_set_lcdclk()
378 &clkctrl_regs->hw_clkctrl_pix_set); in mxs_set_lcdclk()
379 clrsetbits_le32(&clkctrl_regs->hw_clkctrl_pix, in mxs_set_lcdclk()
383 while (readl(&clkctrl_regs->hw_clkctrl_pix) & CLKCTRL_PIX_BUSY) in mxs_set_lcdclk()
387 &clkctrl_regs->hw_clkctrl_frac1_set[CLKCTRL_FRAC1_PIX]); in mxs_set_lcdclk()
389 &clkctrl_regs->hw_clkctrl_frac1[CLKCTRL_FRAC1_PIX]); in mxs_set_lcdclk()
391 &clkctrl_regs->hw_clkctrl_frac1_clr[CLKCTRL_FRAC1_PIX]); in mxs_set_lcdclk()
394 &clkctrl_regs->hw_clkctrl_lcdif_set); in mxs_set_lcdclk()
395 clrsetbits_le32(&clkctrl_regs->hw_clkctrl_lcdif, in mxs_set_lcdclk()
399 while (readl(&clkctrl_regs->hw_clkctrl_lcdif) & CLKCTRL_DIS_LCDIF_BUSY) in mxs_set_lcdclk()