Lines Matching refs:mmio_base
85 void __iomem *mmio_base; member
133 val = readl(imx->mmio_base + MX3_PWMCR); in pwm_imx27_get_state()
153 val = readl(imx->mmio_base + MX3_PWMPR); in pwm_imx27_get_state()
165 val = readl(imx->mmio_base + MX3_PWMSAR); in pwm_imx27_get_state()
182 writel(MX3_PWMCR_SWR, imx->mmio_base + MX3_PWMCR); in pwm_imx27_sw_reset()
185 cr = readl(imx->mmio_base + MX3_PWMCR); in pwm_imx27_sw_reset()
202 sr = readl(imx->mmio_base + MX3_PWMSR); in pwm_imx27_wait_fifo_slot()
209 sr = readl(imx->mmio_base + MX3_PWMSR); in pwm_imx27_wait_fifo_slot()
265 writel(duty_cycles, imx->mmio_base + MX3_PWMSAR); in pwm_imx27_apply()
266 writel(period_cycles, imx->mmio_base + MX3_PWMPR); in pwm_imx27_apply()
286 writel(cr, imx->mmio_base + MX3_PWMCR); in pwm_imx27_apply()
349 imx->mmio_base = devm_platform_ioremap_resource(pdev, 0); in pwm_imx27_probe()
350 if (IS_ERR(imx->mmio_base)) in pwm_imx27_probe()
351 return PTR_ERR(imx->mmio_base); in pwm_imx27_probe()
358 pwmcr = readl(imx->mmio_base + MX3_PWMCR); in pwm_imx27_probe()