Lines Matching defs:hlcdc
11 #include <linux/mfd/atmel-hlcdc.h>
32 struct atmel_hlcdc *hlcdc;
46 struct atmel_hlcdc *hlcdc = atmel->hlcdc;
51 struct clk *new_clk = hlcdc->slow_clk;
70 new_clk = hlcdc->sys_clk;
105 if (new_clk == hlcdc->sys_clk)
108 ret = regmap_update_bits(hlcdc->regmap,
132 ret = regmap_update_bits(hlcdc->regmap, ATMEL_HLCDC_CFG(6),
140 ret = regmap_write(hlcdc->regmap, ATMEL_HLCDC_EN,
145 ret = regmap_read_poll_timeout(hlcdc->regmap, ATMEL_HLCDC_SR,
152 ret = regmap_write(hlcdc->regmap, ATMEL_HLCDC_DIS,
157 ret = regmap_read_poll_timeout(hlcdc->regmap, ATMEL_HLCDC_SR,
191 clk_disable_unprepare(atmel->hlcdc->periph_clk);
206 ret = clk_prepare_enable(atmel->hlcdc->periph_clk);
221 .compatible = "atmel,at91sam9n12-hlcdc",
226 .compatible = "atmel,at91sam9x5-hlcdc",
230 .compatible = "atmel,sama5d2-hlcdc",
233 .compatible = "atmel,sama5d3-hlcdc",
237 .compatible = "atmel,sama5d4-hlcdc",
240 { .compatible = "microchip,sam9x60-hlcdc", },
250 struct atmel_hlcdc *hlcdc;
253 hlcdc = dev_get_drvdata(dev->parent);
259 ret = clk_prepare_enable(hlcdc->periph_clk);
267 atmel->hlcdc = hlcdc;
274 clk_disable_unprepare(hlcdc->periph_clk);
289 clk_disable_unprepare(atmel->hlcdc->periph_clk);
293 { .compatible = "atmel,hlcdc-pwm" },
299 .name = "atmel-hlcdc-pwm",
308 MODULE_ALIAS("platform:atmel-hlcdc-pwm");