Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/pwm/
Dpwm-lpss.c129 unsigned long long base_unit, freq = NSEC_PER_SEC; in pwm_lpss_prepare() local
141 base_unit = DIV_ROUND_CLOSEST_ULL(freq, c); in pwm_lpss_prepare()
143 base_unit = clamp_val(base_unit, 1, base_unit_range - 1); in pwm_lpss_prepare()
152 ctrl |= (u32) base_unit << PWM_BASE_UNIT_SHIFT; in pwm_lpss_prepare()
213 unsigned long long base_unit, freq, on_time_div; in pwm_lpss_get_state() local
222 base_unit = (ctrl >> PWM_BASE_UNIT_SHIFT) & (base_unit_range - 1); in pwm_lpss_get_state()
224 freq = base_unit * lpwm->info->clk_rate; in pwm_lpss_get_state()