Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/pwm/
Dpwm-tegra.c102 unsigned long rate, required_clk_rate; in tegra_pwm_config() local
147 required_clk_rate = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC << PWM_DUTY_WIDTH, in tegra_pwm_config()
150 if (required_clk_rate > clk_round_rate(pc->clk, required_clk_rate)) in tegra_pwm_config()
159 required_clk_rate *= 2; in tegra_pwm_config()
161 err = dev_pm_opp_set_rate(pc->dev, required_clk_rate); in tegra_pwm_config()