Lines Matching defs:clk
17 * - The clk API doesn't expose the necessary calls to implement
27 #include <linux/clk.h>
32 struct clk *clk;
49 clk_disable(pcchip->clk);
54 ret = clk_enable(pcchip->clk);
61 * We have to enable the clk before setting the rate and duty_cycle,
62 * that however results in a window where the clk is on with a
68 ret = clk_set_rate(pcchip->clk, rate);
75 return clk_set_duty_cycle(pcchip->clk, duty_cycle, period);
92 pcchip->clk = devm_clk_get_prepared(&pdev->dev, NULL);
93 if (IS_ERR(pcchip->clk))
94 return dev_err_probe(&pdev->dev, PTR_ERR(pcchip->clk),
116 clk_disable(pcchip->clk);
120 { .compatible = "clk-pwm", },
127 .name = "pwm-clk",
135 MODULE_ALIAS("platform:pwm-clk");