Home
last modified time | relevance | path

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

/f-stack/freebsd/arm/allwinner/
H A Daw_pwm.c251 uint64_t period_freq, duty_freq; in aw_pwm_channel_config() local
259 period_freq = NS_PER_SEC / period; in aw_pwm_channel_config()
260 if (period_freq > AW_PWM_MAX_FREQ) in aw_pwm_channel_config()
268 if (period_freq == 0) in aw_pwm_channel_config()
277 if (duty_freq < period_freq) { in aw_pwm_channel_config()
285 div = AW_PWM_MAX_FREQ / period_freq; in aw_pwm_channel_config()
291 div = AW_PWM_MAX_FREQ / aw_pwm_clk_prescaler[i] / period_freq; in aw_pwm_channel_config()
317 reg = ((clk_rate / period_freq - 1) << AW_PWM_PERIOD_TOTAL_SHIFT) | in aw_pwm_channel_config()
/f-stack/freebsd/arm64/rockchip/
H A Drk_pwm.c272 uint64_t period_freq, duty_freq; in rk_pwm_channel_config() local
282 period_freq = NS_PER_SEC / period; in rk_pwm_channel_config()
284 if (period_freq > (sc->clk_freq / 2)) in rk_pwm_channel_config()
287 if (duty_freq < period_freq) { in rk_pwm_channel_config()