Searched refs:base_unit_range (Results 1 – 1 of 1) sorted by relevance
91 unsigned long c = lpwm->info->clk_rate, base_unit_range; in pwm_lpss_prepare() local101 base_unit_range = BIT(lpwm->info->base_unit_bits); in pwm_lpss_prepare()102 freq *= base_unit_range; in pwm_lpss_prepare()106 base_unit = clamp_val(base_unit, 1, base_unit_range - 1); in pwm_lpss_prepare()114 ctrl &= ~((base_unit_range - 1) << PWM_BASE_UNIT_SHIFT); in pwm_lpss_prepare()175 unsigned long base_unit_range; in pwm_lpss_get_state() local181 base_unit_range = BIT(lpwm->info->base_unit_bits); in pwm_lpss_get_state()185 base_unit = (ctrl >> PWM_BASE_UNIT_SHIFT) & (base_unit_range - 1); in pwm_lpss_get_state()188 do_div(freq, base_unit_range); in pwm_lpss_get_state()
Completed in 6 milliseconds