Searched refs:PWM_DUTY_WIDTH (Results 1 - 1 of 1) sorted by relevance

/linux-master/drivers/pwm/
H A Dpwm-tegra.c55 #define PWM_DUTY_WIDTH 8 macro
105 * per (1 << PWM_DUTY_WIDTH) cycles and make sure to round to the
108 c *= (1 << PWM_DUTY_WIDTH);
114 * min period = max clock limit >> PWM_DUTY_WIDTH
120 * Compute the prescaler value for which (1 << PWM_DUTY_WIDTH)
134 * Rate is multiplied with 2^PWM_DUTY_WIDTH so that it matches
144 required_clk_rate = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC << PWM_DUTY_WIDTH,
168 (u64)NSEC_PER_SEC << PWM_DUTY_WIDTH);
321 (NSEC_PER_SEC / (pc->soc->max_frequency >> PWM_DUTY_WIDTH)) + 1;

Completed in 91 milliseconds