/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
H A D | Makefile | 1 atmel-hlcdc-dc-y := atmel_hlcdc_crtc.o \ 7 obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc-dc.o
|
H A D | atmel_hlcdc_dc.c | 137 .compatible = "atmel,sama5d3-hlcdc", 180 regmap_read(dc->hlcdc->regmap, ATMEL_HLCDC_IMR, &imr); atmel_hlcdc_dc_irq_handler() 181 regmap_read(dc->hlcdc->regmap, ATMEL_HLCDC_ISR, &isr); atmel_hlcdc_dc_irq_handler() 292 dev_err(&pdev->dev, "invalid hlcdc description\n"); atmel_hlcdc_dc_load() 300 dc->wq = alloc_ordered_workqueue("atmel-hlcdc-dc", 0); atmel_hlcdc_dc_load() 305 dc->hlcdc = dev_get_drvdata(dev->dev->parent); atmel_hlcdc_dc_load() 308 ret = clk_prepare_enable(dc->hlcdc->periph_clk); atmel_hlcdc_dc_load() 331 ret = drm_irq_install(dev, dc->hlcdc->irq); atmel_hlcdc_dc_load() 349 clk_disable_unprepare(dc->hlcdc->periph_clk); atmel_hlcdc_dc_load() 375 clk_disable_unprepare(dc->hlcdc->periph_clk); atmel_hlcdc_dc_unload() 442 regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IER, cfg); atmel_hlcdc_dc_irq_postinstall() 452 regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IDR, 0xffffffff); atmel_hlcdc_dc_irq_uninstall() 453 regmap_read(dc->hlcdc->regmap, ATMEL_HLCDC_ISR, &isr); atmel_hlcdc_dc_irq_uninstall() 461 regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IER, ATMEL_HLCDC_SOF); atmel_hlcdc_dc_enable_vblank() 470 regmap_write(dc->hlcdc->regmap, ATMEL_HLCDC_IDR, ATMEL_HLCDC_SOF); atmel_hlcdc_dc_disable_vblank() 504 .name = "atmel-hlcdc", 598 { .compatible = "atmel,hlcdc-display-controller" }, 606 .name = "atmel-hlcdc-display-controller", 617 MODULE_ALIAS("platform:atmel-hlcdc-dc");
|
H A D | atmel_hlcdc_crtc.c | 38 * @hlcdc: pointer to the atmel_hlcdc structure provided by the MFD device 60 struct regmap *regmap = crtc->dc->hlcdc->regmap; atmel_hlcdc_crtc_mode_set_nofb() 90 prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); atmel_hlcdc_crtc_mode_set_nofb() 135 struct regmap *regmap = crtc->dc->hlcdc->regmap; atmel_hlcdc_crtc_disable() 160 clk_disable_unprepare(crtc->dc->hlcdc->sys_clk); atmel_hlcdc_crtc_disable() 174 struct regmap *regmap = crtc->dc->hlcdc->regmap; atmel_hlcdc_crtc_enable() 185 clk_prepare_enable(crtc->dc->hlcdc->sys_clk); atmel_hlcdc_crtc_enable()
|
H A D | atmel_hlcdc_layer.c | 90 struct regmap *regmap = layer->hlcdc->regmap; atmel_hlcdc_layer_update_apply() 181 struct regmap *regmap = layer->hlcdc->regmap; atmel_hlcdc_layer_irq() 305 struct regmap *regmap = layer->hlcdc->regmap; atmel_hlcdc_layer_disable() 350 struct regmap *regmap = layer->hlcdc->regmap; atmel_hlcdc_layer_update_start() 605 struct regmap *regmap = dc->hlcdc->regmap; atmel_hlcdc_layer_init() 610 layer->hlcdc = dc->hlcdc; atmel_hlcdc_layer_init() 657 struct regmap *regmap = layer->hlcdc->regmap; atmel_hlcdc_layer_cleanup()
|
H A D | atmel_hlcdc_dc.h | 125 * @hlcdc: pointer to the atmel_hlcdc structure provided by the MFD device 134 struct atmel_hlcdc *hlcdc; member in struct:atmel_hlcdc_dc
|
H A D | atmel_hlcdc_layer.h | 23 #include <linux/mfd/atmel-hlcdc.h> 354 * @hlcdc: pointer to the atmel_hlcdc structure provided by the MFD device 363 struct atmel_hlcdc *hlcdc; member in struct:atmel_hlcdc_layer
|
H A D | atmel_hlcdc_output.c | 140 regmap_update_bits(rgb->dc->hlcdc->regmap, ATMEL_HLCDC_CFG(5), atmel_hlcdc_rgb_encoder_mode_set()
|
H A D | atmel_hlcdc_plane.c | 803 struct regmap *regmap = plane->layer.hlcdc->regmap; atmel_hlcdc_plane_init_properties()
|
/linux-4.1.27/drivers/mfd/ |
H A D | atmel-hlcdc.c | 21 #include <linux/mfd/atmel-hlcdc.h> 31 .name = "atmel-hlcdc-pwm", 32 .of_compatible = "atmel,hlcdc-pwm", 35 .name = "atmel-hlcdc-dc", 36 .of_compatible = "atmel,hlcdc-display-controller", 50 struct atmel_hlcdc *hlcdc; atmel_hlcdc_probe() local 54 hlcdc = devm_kzalloc(dev, sizeof(*hlcdc), GFP_KERNEL); atmel_hlcdc_probe() 55 if (!hlcdc) atmel_hlcdc_probe() 63 hlcdc->irq = platform_get_irq(pdev, 0); atmel_hlcdc_probe() 64 if (hlcdc->irq < 0) atmel_hlcdc_probe() 65 return hlcdc->irq; atmel_hlcdc_probe() 67 hlcdc->periph_clk = devm_clk_get(dev, "periph_clk"); atmel_hlcdc_probe() 68 if (IS_ERR(hlcdc->periph_clk)) { atmel_hlcdc_probe() 70 return PTR_ERR(hlcdc->periph_clk); atmel_hlcdc_probe() 73 hlcdc->sys_clk = devm_clk_get(dev, "sys_clk"); atmel_hlcdc_probe() 74 if (IS_ERR(hlcdc->sys_clk)) { atmel_hlcdc_probe() 76 return PTR_ERR(hlcdc->sys_clk); atmel_hlcdc_probe() 79 hlcdc->slow_clk = devm_clk_get(dev, "slow_clk"); atmel_hlcdc_probe() 80 if (IS_ERR(hlcdc->slow_clk)) { atmel_hlcdc_probe() 82 return PTR_ERR(hlcdc->slow_clk); atmel_hlcdc_probe() 85 hlcdc->regmap = devm_regmap_init_mmio(dev, regs, atmel_hlcdc_probe() 87 if (IS_ERR(hlcdc->regmap)) atmel_hlcdc_probe() 88 return PTR_ERR(hlcdc->regmap); atmel_hlcdc_probe() 90 dev_set_drvdata(dev, hlcdc); atmel_hlcdc_probe() 105 { .compatible = "atmel,sama5d3-hlcdc" }, 113 .name = "atmel-hlcdc", 119 MODULE_ALIAS("platform:atmel-hlcdc");
|
H A D | Makefile | 163 obj-$(CONFIG_MFD_ATMEL_HLCDC) += atmel-hlcdc.o
|
/linux-4.1.27/drivers/pwm/ |
H A D | pwm-atmel-hlcdc.c | 22 #include <linux/mfd/atmel-hlcdc.h> 42 struct atmel_hlcdc *hlcdc; member in struct:atmel_hlcdc_pwm 57 struct atmel_hlcdc *hlcdc = chip->hlcdc; atmel_hlcdc_pwm_config() local 58 struct clk *new_clk = hlcdc->slow_clk; atmel_hlcdc_pwm_config() 77 new_clk = hlcdc->sys_clk; atmel_hlcdc_pwm_config() 111 if (new_clk == hlcdc->sys_clk) atmel_hlcdc_pwm_config() 114 ret = regmap_update_bits(hlcdc->regmap, ATMEL_HLCDC_CFG(0), atmel_hlcdc_pwm_config() 133 return regmap_update_bits(hlcdc->regmap, ATMEL_HLCDC_CFG(6), atmel_hlcdc_pwm_config() 144 struct atmel_hlcdc *hlcdc = chip->hlcdc; atmel_hlcdc_pwm_set_polarity() local 150 return regmap_update_bits(hlcdc->regmap, ATMEL_HLCDC_CFG(6), atmel_hlcdc_pwm_set_polarity() 157 struct atmel_hlcdc *hlcdc = chip->hlcdc; atmel_hlcdc_pwm_enable() local 161 ret = regmap_write(hlcdc->regmap, ATMEL_HLCDC_EN, ATMEL_HLCDC_PWM); atmel_hlcdc_pwm_enable() 166 ret = regmap_read(hlcdc->regmap, ATMEL_HLCDC_SR, &status); atmel_hlcdc_pwm_enable() 183 struct atmel_hlcdc *hlcdc = chip->hlcdc; atmel_hlcdc_pwm_disable() local 187 ret = regmap_write(hlcdc->regmap, ATMEL_HLCDC_DIS, ATMEL_HLCDC_PWM); atmel_hlcdc_pwm_disable() 192 ret = regmap_read(hlcdc->regmap, ATMEL_HLCDC_SR, &status); atmel_hlcdc_pwm_disable() 221 .compatible = "atmel,at91sam9x5-hlcdc", 225 .compatible = "atmel,sama5d3-hlcdc", 229 .compatible = "atmel,sama5d4-hlcdc", 240 struct atmel_hlcdc *hlcdc; atmel_hlcdc_pwm_probe() local 243 hlcdc = dev_get_drvdata(dev->parent); atmel_hlcdc_pwm_probe() 249 ret = clk_prepare_enable(hlcdc->periph_clk); atmel_hlcdc_pwm_probe() 257 chip->hlcdc = hlcdc; atmel_hlcdc_pwm_probe() 268 clk_disable_unprepare(hlcdc->periph_clk); atmel_hlcdc_pwm_probe() 286 clk_disable_unprepare(chip->hlcdc->periph_clk); atmel_hlcdc_pwm_remove() 292 { .compatible = "atmel,hlcdc-pwm" }, 298 .name = "atmel-hlcdc-pwm", 306 MODULE_ALIAS("platform:atmel-hlcdc-pwm");
|
/linux-4.1.27/include/linux/mfd/ |
H A D | atmel-hlcdc.h | 72 * @periph_clk: the hlcdc peripheral clock 73 * @sys_clk: the hlcdc system clock 75 * @irq: the hlcdc irq
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | Makefile | 59 obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc/
|