Home
last modified time | relevance | path

Searched refs:fsl_dev (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/fsl-dcu/ !
Dfsl_dcu_drm_drv.c55 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_irq_reset() local
57 regmap_write(fsl_dev->regmap, DCU_INT_STATUS, ~0); in fsl_dcu_irq_reset()
58 regmap_write(fsl_dev->regmap, DCU_INT_MASK, ~0); in fsl_dcu_irq_reset()
64 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_irq() local
68 ret = regmap_read(fsl_dev->regmap, DCU_INT_STATUS, &int_status); in fsl_dcu_drm_irq()
77 regmap_write(fsl_dev->regmap, DCU_INT_STATUS, int_status); in fsl_dcu_drm_irq()
94 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_irq_uninstall() local
97 free_irq(fsl_dev->irq, dev); in fsl_dcu_irq_uninstall()
102 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_load() local
105 ret = fsl_dcu_drm_modeset_init(fsl_dev); in fsl_dcu_load()
[all …]
Dfsl_dcu_drm_crtc.c27 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_flush() local
30 regmap_write(fsl_dev->regmap, in fsl_dcu_drm_crtc_atomic_flush()
51 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_disable() local
58 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_disable()
61 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_disable()
63 clk_disable_unprepare(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_disable()
70 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_enable() local
72 clk_prepare_enable(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_enable()
73 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_enable()
76 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_enable()
[all …]
Dfsl_dcu_drm_rgb.c21 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_drm_encoder_create() argument
24 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_drm_encoder_create()
30 if (fsl_dev->tcon) in fsl_dcu_drm_encoder_create()
31 fsl_tcon_bypass_enable(fsl_dev->tcon); in fsl_dcu_drm_encoder_create()
33 ret = drm_simple_encoder_init(fsl_dev->drm, encoder, in fsl_dcu_drm_encoder_create()
78 static int fsl_dcu_attach_panel(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_attach_panel() argument
81 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_attach_panel()
82 struct drm_connector *connector = &fsl_dev->connector.base; in fsl_dcu_attach_panel()
85 fsl_dev->connector.encoder = encoder; in fsl_dcu_attach_panel()
87 ret = drm_connector_init(fsl_dev->drm, connector, in fsl_dcu_attach_panel()
[all …]
Dfsl_dcu_drm_kms.c21 int fsl_dcu_drm_modeset_init(struct fsl_dcu_drm_device *fsl_dev) in fsl_dcu_drm_modeset_init() argument
25 drm_mode_config_init(fsl_dev->drm); in fsl_dcu_drm_modeset_init()
27 fsl_dev->drm->mode_config.min_width = 0; in fsl_dcu_drm_modeset_init()
28 fsl_dev->drm->mode_config.min_height = 0; in fsl_dcu_drm_modeset_init()
29 fsl_dev->drm->mode_config.max_width = 2031; in fsl_dcu_drm_modeset_init()
30 fsl_dev->drm->mode_config.max_height = 2047; in fsl_dcu_drm_modeset_init()
31 fsl_dev->drm->mode_config.funcs = &fsl_dcu_drm_mode_config_funcs; in fsl_dcu_drm_modeset_init()
33 ret = fsl_dcu_drm_crtc_create(fsl_dev); in fsl_dcu_drm_modeset_init()
37 ret = fsl_dcu_drm_encoder_create(fsl_dev, &fsl_dev->crtc); in fsl_dcu_drm_modeset_init()
41 ret = fsl_dcu_create_outputs(fsl_dev); in fsl_dcu_drm_modeset_init()
[all …]
Dfsl_dcu_drm_plane.c25 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_index() local
26 unsigned int total_layer = fsl_dev->soc->total_layer; in fsl_dcu_drm_plane_index()
33 dev_err(fsl_dev->dev, "No more layer left\n"); in fsl_dcu_drm_plane_index()
66 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_atomic_disable() local
74 regmap_read(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), &value); in fsl_dcu_drm_plane_atomic_disable()
76 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), value); in fsl_dcu_drm_plane_atomic_disable()
83 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_atomic_update() local
132 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 1), in fsl_dcu_drm_plane_atomic_update()
135 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 2), in fsl_dcu_drm_plane_atomic_update()
138 regmap_write(fsl_dev->regmap, in fsl_dcu_drm_plane_atomic_update()
[all …]
Dfsl_dcu_drm_output.h24 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev,
26 int fsl_dcu_create_outputs(struct fsl_dcu_drm_device *fsl_dev);
Dfsl_dcu_drm_crtc.h13 int fsl_dcu_drm_crtc_create(struct fsl_dcu_drm_device *fsl_dev);
Dfsl_dcu_drm_drv.h196 int fsl_dcu_drm_modeset_init(struct fsl_dcu_drm_device *fsl_dev);