Lines Matching full:drm
13 #include <drm/drm_aperture.h>
14 #include <drm/drm_atomic_helper.h>
15 #include <drm/drm_drv.h>
16 #include <drm/drm_ioctl.h>
17 #include <drm/drm_managed.h>
18 #include <drm/drm_prime.h>
19 #include <drm/drm_probe_helper.h>
20 #include <drm/drm_of.h>
21 #include <drm/drm_vblank.h>
28 #include <drm/armada_drm.h>
44 .name = "armada-drm",
45 .desc = "Armada SoC DRM",
82 "armada-drm")) in armada_drm_bind()
86 struct armada_private, drm); in armada_drm_bind()
101 dev_set_drvdata(dev, &priv->drm); in armada_drm_bind()
104 drm_mode_config_init(&priv->drm); in armada_drm_bind()
105 priv->drm.mode_config.min_width = 320; in armada_drm_bind()
106 priv->drm.mode_config.min_height = 200; in armada_drm_bind()
112 priv->drm.mode_config.max_width = 1920; in armada_drm_bind()
113 priv->drm.mode_config.max_height = 2048; in armada_drm_bind()
115 priv->drm.mode_config.preferred_depth = 24; in armada_drm_bind()
116 priv->drm.mode_config.funcs = &armada_drm_mode_config_funcs; in armada_drm_bind()
120 ret = component_bind_all(dev, &priv->drm); in armada_drm_bind()
124 ret = drm_vblank_init(&priv->drm, priv->drm.mode_config.num_crtc); in armada_drm_bind()
128 drm_mode_config_reset(&priv->drm); in armada_drm_bind()
130 drm_kms_helper_poll_init(&priv->drm); in armada_drm_bind()
132 ret = drm_dev_register(&priv->drm, 0); in armada_drm_bind()
137 armada_drm_debugfs_init(priv->drm.primary); in armada_drm_bind()
140 armada_fbdev_setup(&priv->drm); in armada_drm_bind()
145 drm_kms_helper_poll_fini(&priv->drm); in armada_drm_bind()
147 component_unbind_all(dev, &priv->drm); in armada_drm_bind()
149 drm_mode_config_cleanup(&priv->drm); in armada_drm_bind()
157 struct drm_device *drm = dev_get_drvdata(dev); in armada_drm_unbind() local
158 struct armada_private *priv = drm_to_armada_dev(drm); in armada_drm_unbind()
160 drm_kms_helper_poll_fini(&priv->drm); in armada_drm_unbind()
162 drm_dev_unregister(&priv->drm); in armada_drm_unbind()
164 drm_atomic_helper_shutdown(&priv->drm); in armada_drm_unbind()
166 component_unbind_all(dev, &priv->drm); in armada_drm_unbind()
168 drm_mode_config_cleanup(&priv->drm); in armada_drm_unbind()
241 .name = "armada-drm",
243 .name = "armada-510-drm",
254 .name = "armada-drm",
284 MODULE_DESCRIPTION("Armada DRM Driver");
286 MODULE_ALIAS("platform:armada-drm");