2 * drivers/gpu/drm/omapdrm/omap_drv.c
4 * Copyright (C) 2011 Texas Instruments
5 * Author: Rob Clark <rob@ti.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <linux/wait.h>
22 #include <drm/drm_atomic.h>
23 #include <drm/drm_atomic_helper.h>
24 #include <drm/drm_crtc_helper.h>
25 #include <drm/drm_fb_helper.h>
27 #include "omap_dmm_tiler.h"
30 #define DRIVER_NAME MODULE_NAME
31 #define DRIVER_DESC "OMAP DRM"
32 #define DRIVER_DATE "20110917"
33 #define DRIVER_MAJOR 1
34 #define DRIVER_MINOR 0
35 #define DRIVER_PATCHLEVEL 0
37 static int num_crtc = CONFIG_DRM_OMAP_NUM_CRTCS;
39 MODULE_PARM_DESC(num_crtc, "Number of overlays to use as CRTCs");
40 module_param(num_crtc, int, 0600);
46 /* Notes about mapping DSS and DRM entities:
48 * encoder: manager.. with some extension to allow one primary CRTC
49 * and zero or more video CRTC's to be mapped to one encoder?
50 * connector: dssdev.. manager can be attached/detached from different
54 static void omap_fb_output_poll_changed(struct drm_device *dev)
56 struct omap_drm_private *priv = dev->dev_private;
59 drm_fb_helper_hotplug_event(priv->fbdev);
62 struct omap_atomic_state_commit {
63 struct work_struct work;
64 struct drm_device *dev;
65 struct drm_atomic_state *state;
69 static void omap_atomic_wait_for_completion(struct drm_device *dev,
70 struct drm_atomic_state *old_state)
72 struct drm_crtc_state *old_crtc_state;
73 struct drm_crtc *crtc;
77 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) {
78 if (!crtc->state->enable)
81 ret = omap_crtc_wait_pending(crtc);
85 "atomic complete timeout (pipe %u)!\n", i);
89 static void omap_atomic_complete(struct omap_atomic_state_commit *commit)
91 struct drm_device *dev = commit->dev;
92 struct omap_drm_private *priv = dev->dev_private;
93 struct drm_atomic_state *old_state = commit->state;
95 /* Apply the atomic update. */
98 drm_atomic_helper_commit_modeset_disables(dev, old_state);
99 drm_atomic_helper_commit_planes(dev, old_state,
100 DRM_PLANE_COMMIT_ACTIVE_ONLY);
101 drm_atomic_helper_commit_modeset_enables(dev, old_state);
103 omap_atomic_wait_for_completion(dev, old_state);
105 drm_atomic_helper_cleanup_planes(dev, old_state);
109 drm_atomic_state_put(old_state);
111 /* Complete the commit, wake up any waiter. */
112 spin_lock(&priv->commit.lock);
113 priv->commit.pending &= ~commit->crtcs;
114 spin_unlock(&priv->commit.lock);
116 wake_up_all(&priv->commit.wait);
121 static void omap_atomic_work(struct work_struct *work)
123 struct omap_atomic_state_commit *commit =
124 container_of(work, struct omap_atomic_state_commit, work);
126 omap_atomic_complete(commit);
129 static bool omap_atomic_is_pending(struct omap_drm_private *priv,
130 struct omap_atomic_state_commit *commit)
134 spin_lock(&priv->commit.lock);
135 pending = priv->commit.pending & commit->crtcs;
136 spin_unlock(&priv->commit.lock);
141 static int omap_atomic_commit(struct drm_device *dev,
142 struct drm_atomic_state *state, bool nonblock)
144 struct omap_drm_private *priv = dev->dev_private;
145 struct omap_atomic_state_commit *commit;
146 struct drm_crtc *crtc;
147 struct drm_crtc_state *crtc_state;
150 ret = drm_atomic_helper_prepare_planes(dev, state);
154 /* Allocate the commit object. */
155 commit = kzalloc(sizeof(*commit), GFP_KERNEL);
156 if (commit == NULL) {
161 INIT_WORK(&commit->work, omap_atomic_work);
163 commit->state = state;
165 /* Wait until all affected CRTCs have completed previous commits and
166 * mark them as pending.
168 for_each_crtc_in_state(state, crtc, crtc_state, i)
169 commit->crtcs |= drm_crtc_mask(crtc);
171 wait_event(priv->commit.wait, !omap_atomic_is_pending(priv, commit));
173 spin_lock(&priv->commit.lock);
174 priv->commit.pending |= commit->crtcs;
175 spin_unlock(&priv->commit.lock);
177 /* Swap the state, this is the point of no return. */
178 drm_atomic_helper_swap_state(state, true);
180 drm_atomic_state_get(state);
182 schedule_work(&commit->work);
184 omap_atomic_complete(commit);
189 drm_atomic_helper_cleanup_planes(dev, state);
193 static const struct drm_mode_config_funcs omap_mode_config_funcs = {
194 .fb_create = omap_framebuffer_create,
195 .output_poll_changed = omap_fb_output_poll_changed,
196 .atomic_check = drm_atomic_helper_check,
197 .atomic_commit = omap_atomic_commit,
200 static int get_connector_type(struct omap_dss_device *dssdev)
202 switch (dssdev->type) {
203 case OMAP_DISPLAY_TYPE_HDMI:
204 return DRM_MODE_CONNECTOR_HDMIA;
205 case OMAP_DISPLAY_TYPE_DVI:
206 return DRM_MODE_CONNECTOR_DVID;
207 case OMAP_DISPLAY_TYPE_DSI:
208 return DRM_MODE_CONNECTOR_DSI;
210 return DRM_MODE_CONNECTOR_Unknown;
214 static bool channel_used(struct drm_device *dev, enum omap_channel channel)
216 struct omap_drm_private *priv = dev->dev_private;
219 for (i = 0; i < priv->num_crtcs; i++) {
220 struct drm_crtc *crtc = priv->crtcs[i];
222 if (omap_crtc_channel(crtc) == channel)
228 static void omap_disconnect_dssdevs(void)
230 struct omap_dss_device *dssdev = NULL;
232 for_each_dss_dev(dssdev)
233 dssdev->driver->disconnect(dssdev);
236 static int omap_connect_dssdevs(void)
239 struct omap_dss_device *dssdev = NULL;
240 bool no_displays = true;
242 for_each_dss_dev(dssdev) {
243 r = dssdev->driver->connect(dssdev);
244 if (r == -EPROBE_DEFER) {
245 omap_dss_put_device(dssdev);
248 dev_warn(dssdev->dev, "could not connect display: %s\n",
256 return -EPROBE_DEFER;
262 * if we are deferring probe, we disconnect the devices we previously
265 omap_disconnect_dssdevs();
270 static int omap_modeset_create_crtc(struct drm_device *dev, int id,
271 enum omap_channel channel,
274 struct omap_drm_private *priv = dev->dev_private;
275 struct drm_plane *plane;
276 struct drm_crtc *crtc;
278 plane = omap_plane_init(dev, id, DRM_PLANE_TYPE_PRIMARY,
281 return PTR_ERR(plane);
283 crtc = omap_crtc_init(dev, plane, channel, id);
285 BUG_ON(priv->num_crtcs >= ARRAY_SIZE(priv->crtcs));
286 priv->crtcs[id] = crtc;
289 priv->planes[id] = plane;
295 static int omap_modeset_init_properties(struct drm_device *dev)
297 struct omap_drm_private *priv = dev->dev_private;
299 priv->zorder_prop = drm_property_create_range(dev, 0, "zorder", 0, 3);
300 if (!priv->zorder_prop)
306 static int omap_modeset_init(struct drm_device *dev)
308 struct omap_drm_private *priv = dev->dev_private;
309 struct omap_dss_device *dssdev = NULL;
310 int num_ovls = dss_feat_get_num_ovls();
311 int num_mgrs = dss_feat_get_num_mgrs();
317 drm_mode_config_init(dev);
319 ret = omap_modeset_init_properties(dev);
324 * We usually don't want to create a CRTC for each manager, at least
325 * not until we have a way to expose private planes to userspace.
326 * Otherwise there would not be enough video pipes left for drm planes.
327 * We use the num_crtc argument to limit the number of crtcs we create.
329 num_crtcs = min3(num_crtc, num_mgrs, num_ovls);
330 possible_crtcs = (1 << num_crtcs) - 1;
334 for_each_dss_dev(dssdev) {
335 struct drm_connector *connector;
336 struct drm_encoder *encoder;
337 enum omap_channel channel;
338 struct omap_dss_device *out;
340 if (!omapdss_device_is_connected(dssdev))
343 encoder = omap_encoder_init(dev, dssdev);
346 dev_err(dev->dev, "could not create encoder: %s\n",
351 connector = omap_connector_init(dev,
352 get_connector_type(dssdev), dssdev, encoder);
355 dev_err(dev->dev, "could not create connector: %s\n",
360 BUG_ON(priv->num_encoders >= ARRAY_SIZE(priv->encoders));
361 BUG_ON(priv->num_connectors >= ARRAY_SIZE(priv->connectors));
363 priv->encoders[priv->num_encoders++] = encoder;
364 priv->connectors[priv->num_connectors++] = connector;
366 drm_mode_connector_attach_encoder(connector, encoder);
369 * if we have reached the limit of the crtcs we are allowed to
370 * create, let's not try to look for a crtc for this
371 * panel/encoder and onwards, we will, of course, populate the
372 * the possible_crtcs field for all the encoders with the final
373 * set of crtcs we create
379 * get the recommended DISPC channel for this encoder. For now,
380 * we only try to get create a crtc out of the recommended, the
381 * other possible channels to which the encoder can connect are
385 out = omapdss_find_output_from_display(dssdev);
386 channel = out->dispc_channel;
387 omap_dss_put_device(out);
390 * if this channel hasn't already been taken by a previously
391 * allocated crtc, we create a new crtc for it
393 if (!channel_used(dev, channel)) {
394 ret = omap_modeset_create_crtc(dev, id, channel,
398 "could not create CRTC (channel %u)\n",
408 * we have allocated crtcs according to the need of the panels/encoders,
409 * adding more crtcs here if needed
411 for (; id < num_crtcs; id++) {
413 /* find a free manager for this crtc */
414 for (i = 0; i < num_mgrs; i++) {
415 if (!channel_used(dev, i))
420 /* this shouldn't really happen */
421 dev_err(dev->dev, "no managers left for crtc\n");
425 ret = omap_modeset_create_crtc(dev, id, i,
429 "could not create CRTC (channel %u)\n", i);
435 * Create normal planes for the remaining overlays:
437 for (; id < num_ovls; id++) {
438 struct drm_plane *plane;
440 plane = omap_plane_init(dev, id, DRM_PLANE_TYPE_OVERLAY,
443 return PTR_ERR(plane);
445 BUG_ON(priv->num_planes >= ARRAY_SIZE(priv->planes));
446 priv->planes[priv->num_planes++] = plane;
449 for (i = 0; i < priv->num_encoders; i++) {
450 struct drm_encoder *encoder = priv->encoders[i];
451 struct omap_dss_device *dssdev =
452 omap_encoder_get_dssdev(encoder);
453 struct omap_dss_device *output;
455 output = omapdss_find_output_from_display(dssdev);
457 /* figure out which crtc's we can connect the encoder to: */
458 encoder->possible_crtcs = 0;
459 for (id = 0; id < priv->num_crtcs; id++) {
460 struct drm_crtc *crtc = priv->crtcs[id];
461 enum omap_channel crtc_channel;
463 crtc_channel = omap_crtc_channel(crtc);
465 if (output->dispc_channel == crtc_channel) {
466 encoder->possible_crtcs |= (1 << id);
471 omap_dss_put_device(output);
474 DBG("registered %d planes, %d crtcs, %d encoders and %d connectors\n",
475 priv->num_planes, priv->num_crtcs, priv->num_encoders,
476 priv->num_connectors);
478 dev->mode_config.min_width = 32;
479 dev->mode_config.min_height = 32;
481 /* note: eventually will need some cpu_is_omapXYZ() type stuff here
482 * to fill in these limits properly on different OMAP generations..
484 dev->mode_config.max_width = 2048;
485 dev->mode_config.max_height = 2048;
487 dev->mode_config.funcs = &omap_mode_config_funcs;
489 drm_mode_config_reset(dev);
491 omap_drm_irq_install(dev);
501 static int ioctl_get_param(struct drm_device *dev, void *data,
502 struct drm_file *file_priv)
504 struct omap_drm_private *priv = dev->dev_private;
505 struct drm_omap_param *args = data;
507 DBG("%p: param=%llu", dev, args->param);
509 switch (args->param) {
510 case OMAP_PARAM_CHIPSET_ID:
511 args->value = priv->omaprev;
514 DBG("unknown parameter %lld", args->param);
521 static int ioctl_set_param(struct drm_device *dev, void *data,
522 struct drm_file *file_priv)
524 struct drm_omap_param *args = data;
526 switch (args->param) {
528 DBG("unknown parameter %lld", args->param);
535 #define OMAP_BO_USER_MASK 0x00ffffff /* flags settable by userspace */
537 static int ioctl_gem_new(struct drm_device *dev, void *data,
538 struct drm_file *file_priv)
540 struct drm_omap_gem_new *args = data;
541 u32 flags = args->flags & OMAP_BO_USER_MASK;
543 VERB("%p:%p: size=0x%08x, flags=%08x", dev, file_priv,
544 args->size.bytes, flags);
546 return omap_gem_new_handle(dev, file_priv, args->size, flags,
550 static int ioctl_gem_cpu_prep(struct drm_device *dev, void *data,
551 struct drm_file *file_priv)
553 struct drm_omap_gem_cpu_prep *args = data;
554 struct drm_gem_object *obj;
557 VERB("%p:%p: handle=%d, op=%x", dev, file_priv, args->handle, args->op);
559 obj = drm_gem_object_lookup(file_priv, args->handle);
563 ret = omap_gem_op_sync(obj, args->op);
566 ret = omap_gem_op_start(obj, args->op);
568 drm_gem_object_unreference_unlocked(obj);
573 static int ioctl_gem_cpu_fini(struct drm_device *dev, void *data,
574 struct drm_file *file_priv)
576 struct drm_omap_gem_cpu_fini *args = data;
577 struct drm_gem_object *obj;
580 VERB("%p:%p: handle=%d", dev, file_priv, args->handle);
582 obj = drm_gem_object_lookup(file_priv, args->handle);
586 /* XXX flushy, flushy */
590 ret = omap_gem_op_finish(obj, args->op);
592 drm_gem_object_unreference_unlocked(obj);
597 static int ioctl_gem_info(struct drm_device *dev, void *data,
598 struct drm_file *file_priv)
600 struct drm_omap_gem_info *args = data;
601 struct drm_gem_object *obj;
604 VERB("%p:%p: handle=%d", dev, file_priv, args->handle);
606 obj = drm_gem_object_lookup(file_priv, args->handle);
610 args->size = omap_gem_mmap_size(obj);
611 args->offset = omap_gem_mmap_offset(obj);
613 drm_gem_object_unreference_unlocked(obj);
618 static const struct drm_ioctl_desc ioctls[DRM_COMMAND_END - DRM_COMMAND_BASE] = {
619 DRM_IOCTL_DEF_DRV(OMAP_GET_PARAM, ioctl_get_param, DRM_AUTH),
620 DRM_IOCTL_DEF_DRV(OMAP_SET_PARAM, ioctl_set_param, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
621 DRM_IOCTL_DEF_DRV(OMAP_GEM_NEW, ioctl_gem_new, DRM_AUTH),
622 DRM_IOCTL_DEF_DRV(OMAP_GEM_CPU_PREP, ioctl_gem_cpu_prep, DRM_AUTH),
623 DRM_IOCTL_DEF_DRV(OMAP_GEM_CPU_FINI, ioctl_gem_cpu_fini, DRM_AUTH),
624 DRM_IOCTL_DEF_DRV(OMAP_GEM_INFO, ioctl_gem_info, DRM_AUTH),
631 static int dev_open(struct drm_device *dev, struct drm_file *file)
633 file->driver_priv = NULL;
635 DBG("open: dev=%p, file=%p", dev, file);
641 * lastclose - clean up after all DRM clients have exited
644 * Take care of cleaning up after all DRM clients have exited. In the
645 * mode setting case, we want to restore the kernel's initial mode (just
646 * in case the last client left us in a bad state).
648 static void dev_lastclose(struct drm_device *dev)
652 /* we don't support vga_switcheroo.. so just make sure the fbdev
655 struct omap_drm_private *priv = dev->dev_private;
658 DBG("lastclose: dev=%p", dev);
660 /* need to restore default rotation state.. not sure
661 * if there is a cleaner way to restore properties to
662 * default state? Maybe a flag that properties should
663 * automatically be restored to default state on
666 for (i = 0; i < priv->num_crtcs; i++) {
667 struct drm_crtc *crtc = priv->crtcs[i];
669 if (!crtc->primary->rotation_property)
672 drm_object_property_set_value(&crtc->base,
673 crtc->primary->rotation_property,
677 for (i = 0; i < priv->num_planes; i++) {
678 struct drm_plane *plane = priv->planes[i];
680 if (!plane->rotation_property)
683 drm_object_property_set_value(&plane->base,
684 plane->rotation_property,
689 ret = drm_fb_helper_restore_fbdev_mode_unlocked(priv->fbdev);
691 DBG("failed to restore crtc mode");
695 static const struct vm_operations_struct omap_gem_vm_ops = {
696 .fault = omap_gem_fault,
697 .open = drm_gem_vm_open,
698 .close = drm_gem_vm_close,
701 static const struct file_operations omapdriver_fops = {
702 .owner = THIS_MODULE,
704 .unlocked_ioctl = drm_ioctl,
705 .release = drm_release,
706 .mmap = omap_gem_mmap,
709 .llseek = noop_llseek,
712 static struct drm_driver omap_drm_driver = {
713 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME |
716 .lastclose = dev_lastclose,
717 .get_vblank_counter = drm_vblank_no_hw_counter,
718 .enable_vblank = omap_irq_enable_vblank,
719 .disable_vblank = omap_irq_disable_vblank,
720 #ifdef CONFIG_DEBUG_FS
721 .debugfs_init = omap_debugfs_init,
723 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
724 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
725 .gem_prime_export = omap_gem_prime_export,
726 .gem_prime_import = omap_gem_prime_import,
727 .gem_free_object = omap_gem_free_object,
728 .gem_vm_ops = &omap_gem_vm_ops,
729 .dumb_create = omap_gem_dumb_create,
730 .dumb_map_offset = omap_gem_dumb_map_offset,
731 .dumb_destroy = drm_gem_dumb_destroy,
733 .num_ioctls = DRM_OMAP_NUM_IOCTLS,
734 .fops = &omapdriver_fops,
738 .major = DRIVER_MAJOR,
739 .minor = DRIVER_MINOR,
740 .patchlevel = DRIVER_PATCHLEVEL,
743 static int pdev_probe(struct platform_device *pdev)
745 struct omap_drm_platform_data *pdata = pdev->dev.platform_data;
746 struct omap_drm_private *priv;
747 struct drm_device *ddev;
751 DBG("%s", pdev->name);
753 if (omapdss_is_initialized() == false)
754 return -EPROBE_DEFER;
756 omap_crtc_pre_init();
758 ret = omap_connect_dssdevs();
760 goto err_crtc_uninit;
762 /* Allocate and initialize the driver private structure. */
763 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
766 goto err_disconnect_dssdevs;
769 priv->omaprev = pdata->omaprev;
770 priv->wq = alloc_ordered_workqueue("omapdrm", 0);
772 init_waitqueue_head(&priv->commit.wait);
773 spin_lock_init(&priv->commit.lock);
774 spin_lock_init(&priv->list_lock);
775 INIT_LIST_HEAD(&priv->obj_list);
777 /* Allocate and initialize the DRM device. */
778 ddev = drm_dev_alloc(&omap_drm_driver, &pdev->dev);
784 ddev->dev_private = priv;
785 platform_set_drvdata(pdev, ddev);
789 ret = omap_modeset_init(ddev);
791 dev_err(&pdev->dev, "omap_modeset_init failed: ret=%d\n", ret);
792 goto err_free_drm_dev;
795 /* Initialize vblank handling, start with all CRTCs disabled. */
796 ret = drm_vblank_init(ddev, priv->num_crtcs);
798 dev_err(&pdev->dev, "could not init vblank\n");
799 goto err_cleanup_modeset;
802 for (i = 0; i < priv->num_crtcs; i++)
803 drm_crtc_vblank_off(priv->crtcs[i]);
805 priv->fbdev = omap_fbdev_init(ddev);
807 drm_kms_helper_poll_init(ddev);
810 * Register the DRM device with the core and the connectors with
813 ret = drm_dev_register(ddev, 0);
815 goto err_cleanup_helpers;
820 drm_kms_helper_poll_fini(ddev);
822 omap_fbdev_free(ddev);
824 drm_mode_config_cleanup(ddev);
825 omap_drm_irq_uninstall(ddev);
827 omap_gem_deinit(ddev);
830 destroy_workqueue(priv->wq);
832 err_disconnect_dssdevs:
833 omap_disconnect_dssdevs();
835 omap_crtc_pre_uninit();
839 static int pdev_remove(struct platform_device *pdev)
841 struct drm_device *ddev = platform_get_drvdata(pdev);
842 struct omap_drm_private *priv = ddev->dev_private;
846 drm_dev_unregister(ddev);
848 drm_kms_helper_poll_fini(ddev);
851 omap_fbdev_free(ddev);
853 drm_mode_config_cleanup(ddev);
855 omap_drm_irq_uninstall(ddev);
856 omap_gem_deinit(ddev);
860 destroy_workqueue(priv->wq);
863 omap_disconnect_dssdevs();
864 omap_crtc_pre_uninit();
869 #ifdef CONFIG_PM_SLEEP
870 static int omap_drm_suspend_all_displays(void)
872 struct omap_dss_device *dssdev = NULL;
874 for_each_dss_dev(dssdev) {
878 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
879 dssdev->driver->disable(dssdev);
880 dssdev->activate_after_resume = true;
882 dssdev->activate_after_resume = false;
889 static int omap_drm_resume_all_displays(void)
891 struct omap_dss_device *dssdev = NULL;
893 for_each_dss_dev(dssdev) {
897 if (dssdev->activate_after_resume) {
898 dssdev->driver->enable(dssdev);
899 dssdev->activate_after_resume = false;
906 static int omap_drm_suspend(struct device *dev)
908 struct drm_device *drm_dev = dev_get_drvdata(dev);
910 drm_kms_helper_poll_disable(drm_dev);
912 drm_modeset_lock_all(drm_dev);
913 omap_drm_suspend_all_displays();
914 drm_modeset_unlock_all(drm_dev);
919 static int omap_drm_resume(struct device *dev)
921 struct drm_device *drm_dev = dev_get_drvdata(dev);
923 drm_modeset_lock_all(drm_dev);
924 omap_drm_resume_all_displays();
925 drm_modeset_unlock_all(drm_dev);
927 drm_kms_helper_poll_enable(drm_dev);
929 return omap_gem_resume(dev);
933 static SIMPLE_DEV_PM_OPS(omapdrm_pm_ops, omap_drm_suspend, omap_drm_resume);
935 static struct platform_driver pdev = {
938 .pm = &omapdrm_pm_ops,
941 .remove = pdev_remove,
944 static struct platform_driver * const drivers[] = {
949 static int __init omap_drm_init(void)
953 return platform_register_drivers(drivers, ARRAY_SIZE(drivers));
956 static void __exit omap_drm_fini(void)
960 platform_unregister_drivers(drivers, ARRAY_SIZE(drivers));
963 /* need late_initcall() so we load after dss_driver's are loaded */
964 late_initcall(omap_drm_init);
965 module_exit(omap_drm_fini);
967 MODULE_AUTHOR("Rob Clark <rob@ti.com>");
968 MODULE_DESCRIPTION("OMAP DRM Display Driver");
969 MODULE_ALIAS("platform:" DRIVER_NAME);
970 MODULE_LICENSE("GPL v2");