Searched refs:atmel_pwm (Results 1 – 1 of 1) sorted by relevance
197 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_calculate_cprd_and_pres() local210 shift = fls(cycles) - atmel_pwm->data->cfg.period_bits; in atmel_pwm_calculate_cprd_and_pres()242 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_update_cdty() local245 if (atmel_pwm->data->regs.duty_upd == in atmel_pwm_update_cdty()246 atmel_pwm->data->regs.period_upd) { in atmel_pwm_update_cdty()247 val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR); in atmel_pwm_update_cdty()249 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val); in atmel_pwm_update_cdty()252 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, in atmel_pwm_update_cdty()253 atmel_pwm->data->regs.duty_upd, cdty); in atmel_pwm_update_cdty()254 atmel_pwm_set_pending(atmel_pwm, pwm->hwpwm); in atmel_pwm_update_cdty()[all …]