Home
last modified time | relevance | path

Searched refs:atmel_pwm (Results 1 – 1 of 1) sorted by relevance

/drivers/pwm/
Dpwm-atmel.c110 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); in atmel_pwm_config() local
123 div = (unsigned long long)clk_get_rate(atmel_pwm->clk) * period_ns; in atmel_pwm_config()
142 ret = clk_enable(atmel_pwm->clk); in atmel_pwm_config()
149 val = atmel_pwm_ch_readl(atmel_pwm, pwm->hwpwm, PWM_CMR); in atmel_pwm_config()
151 atmel_pwm_ch_writel(atmel_pwm, pwm->hwpwm, PWM_CMR, val); in atmel_pwm_config()
152 atmel_pwm->config(chip, pwm, dty, prd); in atmel_pwm_config()
153 mutex_lock(&atmel_pwm->isr_lock); in atmel_pwm_config()
154 atmel_pwm->updated_pwms |= atmel_pwm_readl(atmel_pwm, PWM_ISR); in atmel_pwm_config()
155 atmel_pwm->updated_pwms &= ~(1 << pwm->hwpwm); in atmel_pwm_config()
156 mutex_unlock(&atmel_pwm->isr_lock); in atmel_pwm_config()
[all …]