Home
last modified time | relevance | path

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

/drivers/pwm/
Dpwm-img.c62 struct clk *pwm_clk; member
102 input_clk_hz = clk_get_rate(pwm_chip->pwm_clk); in img_pwm_config()
221 pwm->pwm_clk = devm_clk_get(&pdev->dev, "pwm"); in img_pwm_probe()
222 if (IS_ERR(pwm->pwm_clk)) { in img_pwm_probe()
224 return PTR_ERR(pwm->pwm_clk); in img_pwm_probe()
233 ret = clk_prepare_enable(pwm->pwm_clk); in img_pwm_probe()
239 clk_rate = clk_get_rate(pwm->pwm_clk); in img_pwm_probe()
270 clk_disable_unprepare(pwm->pwm_clk); in img_pwm_probe()
288 clk_disable_unprepare(pwm_chip->pwm_clk); in img_pwm_remove()
Dpwm-sti.c90 struct clk *pwm_clk; member
134 clk_rate = clk_get_rate(pc->pwm_clk); in sti_pwm_get_prescale()
199 ret = clk_enable(pc->pwm_clk); in sti_pwm_config()
249 clk_disable(pc->pwm_clk); in sti_pwm_config()
267 ret = clk_enable(pc->pwm_clk); in sti_pwm_enable()
303 clk_disable(pc->pwm_clk); in sti_pwm_disable()
605 pc->pwm_clk = of_clk_get_by_name(dev->of_node, "pwm"); in sti_pwm_probe()
606 if (IS_ERR(pc->pwm_clk)) { in sti_pwm_probe()
608 return PTR_ERR(pc->pwm_clk); in sti_pwm_probe()
611 ret = clk_prepare(pc->pwm_clk); in sti_pwm_probe()
[all …]
Dpwm-lpc18xx-sct.c98 struct clk *pwm_clk; member
350 lpc18xx_pwm->pwm_clk = devm_clk_get(&pdev->dev, "pwm"); in lpc18xx_pwm_probe()
351 if (IS_ERR(lpc18xx_pwm->pwm_clk)) { in lpc18xx_pwm_probe()
353 return PTR_ERR(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
356 ret = clk_prepare_enable(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
362 lpc18xx_pwm->clk_rate = clk_get_rate(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
444 clk_disable_unprepare(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_probe()
457 clk_disable_unprepare(lpc18xx_pwm->pwm_clk); in lpc18xx_pwm_remove()
/drivers/hwmon/
Dvt1211.c137 u8 pwm_clk; member
308 data->pwm_clk = vt1211_read8(data, VT1211_REG_PWM_CLK); in vt1211_update_device()
621 res = 90000 >> (data->pwm_clk & 7); in show_pwm()
699 data->pwm_clk = (reg & 0xf8) | tmp; in set_pwm()
700 vt1211_write8(data, VT1211_REG_PWM_CLK, data->pwm_clk); in set_pwm()