Lines Matching refs:i2s_reg_base
79 static void __iomem *i2s_reg_base; variable
103 writel(0, i2s_reg_base + SACR0); in pxa2xx_i2s_startup()
115 readl(i2s_reg_base + SADR); in pxa_i2s_wait()
175 writel(0, i2s_reg_base + SACR0); in pxa2xx_i2s_hw_params()
177 writel(readl(i2s_reg_base + SACR0) | (SACR0_BCKD), i2s_reg_base + SACR0); in pxa2xx_i2s_hw_params()
179 writel(readl(i2s_reg_base + SACR0) | (SACR0_RFTH(14) | SACR0_TFTH(1)), i2s_reg_base + SACR0); in pxa2xx_i2s_hw_params()
180 writel(readl(i2s_reg_base + SACR1) | (pxa_i2s.fmt), i2s_reg_base + SACR1); in pxa2xx_i2s_hw_params()
183 writel(readl(i2s_reg_base + SAIMR) | (SAIMR_TFS), i2s_reg_base + SAIMR); in pxa2xx_i2s_hw_params()
185 writel(readl(i2s_reg_base + SAIMR) | (SAIMR_RFS), i2s_reg_base + SAIMR); in pxa2xx_i2s_hw_params()
189 writel(0x48, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
192 writel(0x34, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
195 writel(0x24, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
198 writel(0x1a, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
201 writel(0xd, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
204 writel(0xc, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
207 writel(0x6, i2s_reg_base + SADIV); in pxa2xx_i2s_hw_params()
222 writel(readl(i2s_reg_base + SACR1) & (~SACR1_DRPL), i2s_reg_base + SACR1); in pxa2xx_i2s_trigger()
224 writel(readl(i2s_reg_base + SACR1) & (~SACR1_DREC), i2s_reg_base + SACR1); in pxa2xx_i2s_trigger()
225 writel(readl(i2s_reg_base + SACR0) | (SACR0_ENB), i2s_reg_base + SACR0); in pxa2xx_i2s_trigger()
244 writel(readl(i2s_reg_base + SACR1) | (SACR1_DRPL), i2s_reg_base + SACR1); in pxa2xx_i2s_shutdown()
245 writel(readl(i2s_reg_base + SAIMR) & (~SAIMR_TFS), i2s_reg_base + SAIMR); in pxa2xx_i2s_shutdown()
247 writel(readl(i2s_reg_base + SACR1) | (SACR1_DREC), i2s_reg_base + SACR1); in pxa2xx_i2s_shutdown()
248 writel(readl(i2s_reg_base + SAIMR) & (~SAIMR_RFS), i2s_reg_base + SAIMR); in pxa2xx_i2s_shutdown()
251 if ((readl(i2s_reg_base + SACR1) & (SACR1_DREC | SACR1_DRPL)) == (SACR1_DREC | SACR1_DRPL)) { in pxa2xx_i2s_shutdown()
252 writel(readl(i2s_reg_base + SACR0) & (~SACR0_ENB), i2s_reg_base + SACR0); in pxa2xx_i2s_shutdown()
265 pxa_i2s.sacr0 = readl(i2s_reg_base + SACR0); in pxa2xx_soc_pcm_suspend()
266 pxa_i2s.sacr1 = readl(i2s_reg_base + SACR1); in pxa2xx_soc_pcm_suspend()
267 pxa_i2s.saimr = readl(i2s_reg_base + SAIMR); in pxa2xx_soc_pcm_suspend()
268 pxa_i2s.sadiv = readl(i2s_reg_base + SADIV); in pxa2xx_soc_pcm_suspend()
271 writel(readl(i2s_reg_base + SACR0) & (~SACR0_ENB), i2s_reg_base + SACR0); in pxa2xx_soc_pcm_suspend()
280 writel(pxa_i2s.sacr0 & ~SACR0_ENB, i2s_reg_base + SACR0); in pxa2xx_soc_pcm_resume()
281 writel(pxa_i2s.sacr1, i2s_reg_base + SACR1); in pxa2xx_soc_pcm_resume()
282 writel(pxa_i2s.saimr, i2s_reg_base + SAIMR); in pxa2xx_soc_pcm_resume()
283 writel(pxa_i2s.sadiv, i2s_reg_base + SADIV); in pxa2xx_soc_pcm_resume()
285 writel(pxa_i2s.sacr0, i2s_reg_base + SACR0); in pxa2xx_soc_pcm_resume()
307 writel(SACR0_RST, i2s_reg_base + SACR0); in pxa2xx_i2s_probe()
308 writel(0, i2s_reg_base + SACR0); in pxa2xx_i2s_probe()
310 writel(SACR1_DRPL | SACR1_DREC, i2s_reg_base + SACR1); in pxa2xx_i2s_probe()
312 writel(readl(i2s_reg_base + SAIMR) & (~(SAIMR_RFS | SAIMR_TFS)), i2s_reg_base + SAIMR); in pxa2xx_i2s_probe()
380 i2s_reg_base = devm_ioremap_resource(&pdev->dev, res); in pxa2xx_i2s_drv_probe()
381 if (IS_ERR(i2s_reg_base)) { in pxa2xx_i2s_drv_probe()
383 return PTR_ERR(i2s_reg_base); in pxa2xx_i2s_drv_probe()