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

/linux-4.4.14/drivers/pwm/
H A Dpwm-lpss.c88 unsigned long long base_unit, freq = NSECS_PER_SEC; pwm_lpss_config() local
93 /* The equation is: base_unit = ((freq / c) * 65536) + correction */ pwm_lpss_config()
94 base_unit = freq * 65536; pwm_lpss_config()
100 do_div(base_unit, c); pwm_lpss_config()
101 base_unit += PWM_DIVISION_CORRECTION; pwm_lpss_config()
102 if (base_unit > PWM_LIMIT) pwm_lpss_config()
113 ctrl |= (u16) base_unit << PWM_BASE_UNIT_SHIFT; pwm_lpss_config()

Completed in 208 milliseconds