Lines Matching refs:pwmc0
49 u32 period, duty_cycle, pwmc0; in visconti_pwm_apply() local
89 pwmc0 = fls(period >> 16); in visconti_pwm_apply()
90 if (WARN_ON(pwmc0 > 3)) in visconti_pwm_apply()
93 period >>= pwmc0; in visconti_pwm_apply()
94 duty_cycle >>= pwmc0; in visconti_pwm_apply()
97 pwmc0 |= PIPGM_PWMC_PWMACT; in visconti_pwm_apply()
98 writel(pwmc0, priv->base + PIPGM_PWMC(pwm->hwpwm)); in visconti_pwm_apply()
109 u32 period, duty, pwmc0, pwmc0_clk; in visconti_pwm_get_state() local
113 pwmc0 = readl(priv->base + PIPGM_PWMC(pwm->hwpwm)); in visconti_pwm_get_state()
114 pwmc0_clk = pwmc0 & PIPGM_PWMC_CLK_MASK; in visconti_pwm_get_state()
118 if (pwmc0 & PIPGM_PWMC_POLARITY_MASK) in visconti_pwm_get_state()