Lines Matching refs:ctrl
63 u32 ctrl; in rk_pwm_set_config() local
67 ctrl = readl(priv->base + regs->ctrl); in rk_pwm_set_config()
73 ctrl |= PWM_LOCK; in rk_pwm_set_config()
74 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_config()
86 ctrl &= ~(PWM_DUTY_MASK | PWM_INACTIVE_MASK); in rk_pwm_set_config()
87 ctrl |= priv->conf_polarity; in rk_pwm_set_config()
96 ctrl &= ~PWM_LOCK; in rk_pwm_set_config()
97 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_config()
108 u32 ctrl; in rk_pwm_set_enable() local
112 ctrl = readl(priv->base + regs->ctrl); in rk_pwm_set_enable()
113 ctrl &= ~priv->data->enable_conf_mask; in rk_pwm_set_enable()
116 ctrl |= priv->data->enable_conf; in rk_pwm_set_enable()
118 ctrl &= ~priv->data->enable_conf; in rk_pwm_set_enable()
120 writel(ctrl, priv->base + regs->ctrl); in rk_pwm_set_enable()
166 .ctrl = 0x0c,
180 .ctrl = 0x0c,
195 .ctrl = 0x0c,