Searched refs:dd_freq (Results 1 – 1 of 1) sorted by relevance
60 u32 dd_freq, duty, mode0, mode1; in sunplus_pwm_apply() local92 dd_freq = mul_u64_u64_div_u64(clk_rate, state->period, (u64)SP7021_PWM_FREQ_SCALER in sunplus_pwm_apply()95 if (dd_freq == 0) in sunplus_pwm_apply()98 if (dd_freq > SP7021_PWM_FREQ_MAX) in sunplus_pwm_apply()99 dd_freq = SP7021_PWM_FREQ_MAX; in sunplus_pwm_apply()101 writel(dd_freq, priv->base + SP7021_PWM_FREQ(pwm->hwpwm)); in sunplus_pwm_apply()118 (u64)dd_freq * NSEC_PER_SEC); in sunplus_pwm_apply()132 u32 mode0, dd_freq, duty; in sunplus_pwm_get_state() local139 dd_freq = readl(priv->base + SP7021_PWM_FREQ(pwm->hwpwm)); in sunplus_pwm_get_state()146 state->period = DIV64_U64_ROUND_UP((u64)dd_freq * (u64)SP7021_PWM_FREQ_SCALER in sunplus_pwm_get_state()[all …]