Searched refs:SPRD_PWM_MOD_MAX (Results 1 – 1 of 1) sorted by relevance
19 #define SPRD_PWM_MOD_MAX GENMASK(7, 0) macro105 tmp = (prescale + 1) * NSEC_PER_SEC * SPRD_PWM_MOD_MAX; in sprd_pwm_get_state()135 duty = duty_ns * SPRD_PWM_MOD_MAX / period_ns; in sprd_pwm_config()139 prescale = DIV_ROUND_CLOSEST_ULL(tmp, SPRD_PWM_MOD_MAX) - 1; in sprd_pwm_config()152 sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_MOD, SPRD_PWM_MOD_MAX); in sprd_pwm_config()
Completed in 3 milliseconds