Lines Matching defs:atmel
11 #include <linux/mfd/atmel-hlcdc.h>
44 struct atmel_hlcdc_pwm *atmel = to_atmel_hlcdc_pwm(chip);
45 struct atmel_hlcdc *hlcdc = atmel->hlcdc;
57 if (!atmel->errata || !atmel->errata->slow_clk_erratum) {
67 if ((atmel->errata && atmel->errata->slow_clk_erratum) ||
80 if (!pres && atmel->errata &&
81 atmel->errata->div1_clk_erratum)
93 if (new_clk != atmel->cur_clk) {
101 clk_disable_unprepare(atmel->cur_clk);
102 atmel->cur_clk = new_clk;
163 clk_disable_unprepare(atmel->cur_clk);
164 atmel->cur_clk = NULL;
185 struct atmel_hlcdc_pwm *atmel = to_atmel_hlcdc_pwm(chip);
190 clk_disable_unprepare(atmel->hlcdc->periph_clk);
198 struct atmel_hlcdc_pwm *atmel = to_atmel_hlcdc_pwm(chip);
204 ret = clk_prepare_enable(atmel->hlcdc->periph_clk);
217 .compatible = "atmel,at91sam9n12-hlcdc",
222 .compatible = "atmel,at91sam9x5-hlcdc",
226 .compatible = "atmel,sama5d2-hlcdc",
229 .compatible = "atmel,sama5d3-hlcdc",
233 .compatible = "atmel,sama5d4-hlcdc",
246 struct atmel_hlcdc_pwm *atmel;
252 chip = devm_pwmchip_alloc(dev, 1, sizeof(*atmel));
255 atmel = to_atmel_hlcdc_pwm(chip);
263 atmel->errata = match->data;
265 atmel->hlcdc = hlcdc;
282 struct atmel_hlcdc_pwm *atmel = to_atmel_hlcdc_pwm(chip);
286 clk_disable_unprepare(atmel->hlcdc->periph_clk);
290 { .compatible = "atmel,hlcdc-pwm" },
296 .name = "atmel-hlcdc-pwm",
305 MODULE_ALIAS("platform:atmel-hlcdc-pwm");