exynos_drm_drv.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. * Authors:
  4. * Inki Dae <inki.dae@samsung.com>
  5. * Joonyoung Shim <jy0922.shim@samsung.com>
  6. * Seung-Woo Kim <sw0312.kim@samsung.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. */
  13. #include <linux/pm_runtime.h>
  14. #include <drm/drmP.h>
  15. #include <drm/drm_atomic.h>
  16. #include <drm/drm_atomic_helper.h>
  17. #include <drm/drm_crtc_helper.h>
  18. #include <linux/component.h>
  19. #include <drm/exynos_drm.h>
  20. #include "exynos_drm_drv.h"
  21. #include "exynos_drm_fbdev.h"
  22. #include "exynos_drm_fb.h"
  23. #include "exynos_drm_gem.h"
  24. #include "exynos_drm_plane.h"
  25. #include "exynos_drm_vidi.h"
  26. #include "exynos_drm_g2d.h"
  27. #include "exynos_drm_ipp.h"
  28. #include "exynos_drm_iommu.h"
  29. #define DRIVER_NAME "exynos"
  30. #define DRIVER_DESC "Samsung SoC DRM"
  31. #define DRIVER_DATE "20110530"
  32. #define DRIVER_MAJOR 1
  33. #define DRIVER_MINOR 0
  34. static struct device *exynos_drm_get_dma_device(void);
  35. int exynos_atomic_check(struct drm_device *dev,
  36. struct drm_atomic_state *state)
  37. {
  38. int ret;
  39. ret = drm_atomic_helper_check_modeset(dev, state);
  40. if (ret)
  41. return ret;
  42. ret = drm_atomic_normalize_zpos(dev, state);
  43. if (ret)
  44. return ret;
  45. ret = drm_atomic_helper_check_planes(dev, state);
  46. if (ret)
  47. return ret;
  48. return ret;
  49. }
  50. static int exynos_drm_open(struct drm_device *dev, struct drm_file *file)
  51. {
  52. struct drm_exynos_file_private *file_priv;
  53. int ret;
  54. file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL);
  55. if (!file_priv)
  56. return -ENOMEM;
  57. file->driver_priv = file_priv;
  58. ret = exynos_drm_subdrv_open(dev, file);
  59. if (ret)
  60. goto err_file_priv_free;
  61. return ret;
  62. err_file_priv_free:
  63. kfree(file_priv);
  64. file->driver_priv = NULL;
  65. return ret;
  66. }
  67. static void exynos_drm_preclose(struct drm_device *dev,
  68. struct drm_file *file)
  69. {
  70. exynos_drm_subdrv_close(dev, file);
  71. }
  72. static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)
  73. {
  74. kfree(file->driver_priv);
  75. file->driver_priv = NULL;
  76. }
  77. static void exynos_drm_lastclose(struct drm_device *dev)
  78. {
  79. exynos_drm_fbdev_restore_mode(dev);
  80. }
  81. static const struct vm_operations_struct exynos_drm_gem_vm_ops = {
  82. .fault = exynos_drm_gem_fault,
  83. .open = drm_gem_vm_open,
  84. .close = drm_gem_vm_close,
  85. };
  86. static const struct drm_ioctl_desc exynos_ioctls[] = {
  87. DRM_IOCTL_DEF_DRV(EXYNOS_GEM_CREATE, exynos_drm_gem_create_ioctl,
  88. DRM_AUTH | DRM_RENDER_ALLOW),
  89. DRM_IOCTL_DEF_DRV(EXYNOS_GEM_MAP, exynos_drm_gem_map_ioctl,
  90. DRM_AUTH | DRM_RENDER_ALLOW),
  91. DRM_IOCTL_DEF_DRV(EXYNOS_GEM_GET, exynos_drm_gem_get_ioctl,
  92. DRM_RENDER_ALLOW),
  93. DRM_IOCTL_DEF_DRV(EXYNOS_VIDI_CONNECTION, vidi_connection_ioctl,
  94. DRM_AUTH),
  95. DRM_IOCTL_DEF_DRV(EXYNOS_G2D_GET_VER, exynos_g2d_get_ver_ioctl,
  96. DRM_AUTH | DRM_RENDER_ALLOW),
  97. DRM_IOCTL_DEF_DRV(EXYNOS_G2D_SET_CMDLIST, exynos_g2d_set_cmdlist_ioctl,
  98. DRM_AUTH | DRM_RENDER_ALLOW),
  99. DRM_IOCTL_DEF_DRV(EXYNOS_G2D_EXEC, exynos_g2d_exec_ioctl,
  100. DRM_AUTH | DRM_RENDER_ALLOW),
  101. DRM_IOCTL_DEF_DRV(EXYNOS_IPP_GET_PROPERTY, exynos_drm_ipp_get_property,
  102. DRM_AUTH | DRM_RENDER_ALLOW),
  103. DRM_IOCTL_DEF_DRV(EXYNOS_IPP_SET_PROPERTY, exynos_drm_ipp_set_property,
  104. DRM_AUTH | DRM_RENDER_ALLOW),
  105. DRM_IOCTL_DEF_DRV(EXYNOS_IPP_QUEUE_BUF, exynos_drm_ipp_queue_buf,
  106. DRM_AUTH | DRM_RENDER_ALLOW),
  107. DRM_IOCTL_DEF_DRV(EXYNOS_IPP_CMD_CTRL, exynos_drm_ipp_cmd_ctrl,
  108. DRM_AUTH | DRM_RENDER_ALLOW),
  109. };
  110. static const struct file_operations exynos_drm_driver_fops = {
  111. .owner = THIS_MODULE,
  112. .open = drm_open,
  113. .mmap = exynos_drm_gem_mmap,
  114. .poll = drm_poll,
  115. .read = drm_read,
  116. .unlocked_ioctl = drm_ioctl,
  117. .compat_ioctl = drm_compat_ioctl,
  118. .release = drm_release,
  119. };
  120. static struct drm_driver exynos_drm_driver = {
  121. .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME
  122. | DRIVER_ATOMIC | DRIVER_RENDER,
  123. .open = exynos_drm_open,
  124. .preclose = exynos_drm_preclose,
  125. .lastclose = exynos_drm_lastclose,
  126. .postclose = exynos_drm_postclose,
  127. .gem_free_object_unlocked = exynos_drm_gem_free_object,
  128. .gem_vm_ops = &exynos_drm_gem_vm_ops,
  129. .dumb_create = exynos_drm_gem_dumb_create,
  130. .dumb_map_offset = exynos_drm_gem_dumb_map_offset,
  131. .dumb_destroy = drm_gem_dumb_destroy,
  132. .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
  133. .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
  134. .gem_prime_export = drm_gem_prime_export,
  135. .gem_prime_import = drm_gem_prime_import,
  136. .gem_prime_get_sg_table = exynos_drm_gem_prime_get_sg_table,
  137. .gem_prime_import_sg_table = exynos_drm_gem_prime_import_sg_table,
  138. .gem_prime_vmap = exynos_drm_gem_prime_vmap,
  139. .gem_prime_vunmap = exynos_drm_gem_prime_vunmap,
  140. .gem_prime_mmap = exynos_drm_gem_prime_mmap,
  141. .ioctls = exynos_ioctls,
  142. .num_ioctls = ARRAY_SIZE(exynos_ioctls),
  143. .fops = &exynos_drm_driver_fops,
  144. .name = DRIVER_NAME,
  145. .desc = DRIVER_DESC,
  146. .date = DRIVER_DATE,
  147. .major = DRIVER_MAJOR,
  148. .minor = DRIVER_MINOR,
  149. };
  150. #ifdef CONFIG_PM_SLEEP
  151. static int exynos_drm_suspend(struct device *dev)
  152. {
  153. struct drm_device *drm_dev = dev_get_drvdata(dev);
  154. struct drm_connector *connector;
  155. if (pm_runtime_suspended(dev) || !drm_dev)
  156. return 0;
  157. drm_modeset_lock_all(drm_dev);
  158. drm_for_each_connector(connector, drm_dev) {
  159. int old_dpms = connector->dpms;
  160. if (connector->funcs->dpms)
  161. connector->funcs->dpms(connector, DRM_MODE_DPMS_OFF);
  162. /* Set the old mode back to the connector for resume */
  163. connector->dpms = old_dpms;
  164. }
  165. drm_modeset_unlock_all(drm_dev);
  166. return 0;
  167. }
  168. static int exynos_drm_resume(struct device *dev)
  169. {
  170. struct drm_device *drm_dev = dev_get_drvdata(dev);
  171. struct drm_connector *connector;
  172. if (pm_runtime_suspended(dev) || !drm_dev)
  173. return 0;
  174. drm_modeset_lock_all(drm_dev);
  175. drm_for_each_connector(connector, drm_dev) {
  176. if (connector->funcs->dpms) {
  177. int dpms = connector->dpms;
  178. connector->dpms = DRM_MODE_DPMS_OFF;
  179. connector->funcs->dpms(connector, dpms);
  180. }
  181. }
  182. drm_modeset_unlock_all(drm_dev);
  183. return 0;
  184. }
  185. #endif
  186. static const struct dev_pm_ops exynos_drm_pm_ops = {
  187. SET_SYSTEM_SLEEP_PM_OPS(exynos_drm_suspend, exynos_drm_resume)
  188. };
  189. /* forward declaration */
  190. static struct platform_driver exynos_drm_platform_driver;
  191. struct exynos_drm_driver_info {
  192. struct platform_driver *driver;
  193. unsigned int flags;
  194. };
  195. #define DRM_COMPONENT_DRIVER BIT(0) /* supports component framework */
  196. #define DRM_VIRTUAL_DEVICE BIT(1) /* create virtual platform device */
  197. #define DRM_DMA_DEVICE BIT(2) /* can be used for dma allocations */
  198. #define DRV_PTR(drv, cond) (IS_ENABLED(cond) ? &drv : NULL)
  199. /*
  200. * Connector drivers should not be placed before associated crtc drivers,
  201. * because connector requires pipe number of its crtc during initialization.
  202. */
  203. static struct exynos_drm_driver_info exynos_drm_drivers[] = {
  204. {
  205. DRV_PTR(fimd_driver, CONFIG_DRM_EXYNOS_FIMD),
  206. DRM_COMPONENT_DRIVER | DRM_DMA_DEVICE
  207. }, {
  208. DRV_PTR(exynos5433_decon_driver, CONFIG_DRM_EXYNOS5433_DECON),
  209. DRM_COMPONENT_DRIVER | DRM_DMA_DEVICE
  210. }, {
  211. DRV_PTR(decon_driver, CONFIG_DRM_EXYNOS7_DECON),
  212. DRM_COMPONENT_DRIVER | DRM_DMA_DEVICE
  213. }, {
  214. DRV_PTR(mixer_driver, CONFIG_DRM_EXYNOS_MIXER),
  215. DRM_COMPONENT_DRIVER | DRM_DMA_DEVICE
  216. }, {
  217. DRV_PTR(mic_driver, CONFIG_DRM_EXYNOS_MIC),
  218. DRM_COMPONENT_DRIVER
  219. }, {
  220. DRV_PTR(dp_driver, CONFIG_DRM_EXYNOS_DP),
  221. DRM_COMPONENT_DRIVER
  222. }, {
  223. DRV_PTR(dsi_driver, CONFIG_DRM_EXYNOS_DSI),
  224. DRM_COMPONENT_DRIVER
  225. }, {
  226. DRV_PTR(hdmi_driver, CONFIG_DRM_EXYNOS_HDMI),
  227. DRM_COMPONENT_DRIVER
  228. }, {
  229. DRV_PTR(vidi_driver, CONFIG_DRM_EXYNOS_VIDI),
  230. DRM_COMPONENT_DRIVER | DRM_VIRTUAL_DEVICE
  231. }, {
  232. DRV_PTR(g2d_driver, CONFIG_DRM_EXYNOS_G2D),
  233. }, {
  234. DRV_PTR(fimc_driver, CONFIG_DRM_EXYNOS_FIMC),
  235. }, {
  236. DRV_PTR(rotator_driver, CONFIG_DRM_EXYNOS_ROTATOR),
  237. }, {
  238. DRV_PTR(gsc_driver, CONFIG_DRM_EXYNOS_GSC),
  239. }, {
  240. DRV_PTR(ipp_driver, CONFIG_DRM_EXYNOS_IPP),
  241. DRM_VIRTUAL_DEVICE
  242. }, {
  243. &exynos_drm_platform_driver,
  244. DRM_VIRTUAL_DEVICE
  245. }
  246. };
  247. static int compare_dev(struct device *dev, void *data)
  248. {
  249. return dev == (struct device *)data;
  250. }
  251. static struct component_match *exynos_drm_match_add(struct device *dev)
  252. {
  253. struct component_match *match = NULL;
  254. int i;
  255. for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) {
  256. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  257. struct device *p = NULL, *d;
  258. if (!info->driver || !(info->flags & DRM_COMPONENT_DRIVER))
  259. continue;
  260. while ((d = bus_find_device(&platform_bus_type, p,
  261. &info->driver->driver,
  262. (void *)platform_bus_type.match))) {
  263. put_device(p);
  264. component_match_add(dev, &match, compare_dev, d);
  265. p = d;
  266. }
  267. put_device(p);
  268. }
  269. return match ?: ERR_PTR(-ENODEV);
  270. }
  271. static int exynos_drm_bind(struct device *dev)
  272. {
  273. struct exynos_drm_private *private;
  274. struct drm_encoder *encoder;
  275. struct drm_device *drm;
  276. unsigned int clone_mask;
  277. int cnt, ret;
  278. drm = drm_dev_alloc(&exynos_drm_driver, dev);
  279. if (IS_ERR(drm))
  280. return PTR_ERR(drm);
  281. private = kzalloc(sizeof(struct exynos_drm_private), GFP_KERNEL);
  282. if (!private) {
  283. ret = -ENOMEM;
  284. goto err_free_drm;
  285. }
  286. init_waitqueue_head(&private->wait);
  287. spin_lock_init(&private->lock);
  288. dev_set_drvdata(dev, drm);
  289. drm->dev_private = (void *)private;
  290. /* the first real CRTC device is used for all dma mapping operations */
  291. private->dma_dev = exynos_drm_get_dma_device();
  292. if (!private->dma_dev) {
  293. DRM_ERROR("no device found for DMA mapping operations.\n");
  294. ret = -ENODEV;
  295. goto err_free_private;
  296. }
  297. DRM_INFO("Exynos DRM: using %s device for DMA mapping operations\n",
  298. dev_name(private->dma_dev));
  299. /* create common IOMMU mapping for all devices attached to Exynos DRM */
  300. ret = drm_create_iommu_mapping(drm);
  301. if (ret < 0) {
  302. DRM_ERROR("failed to create iommu mapping.\n");
  303. goto err_free_private;
  304. }
  305. drm_mode_config_init(drm);
  306. exynos_drm_mode_config_init(drm);
  307. /* setup possible_clones. */
  308. cnt = 0;
  309. clone_mask = 0;
  310. list_for_each_entry(encoder, &drm->mode_config.encoder_list, head)
  311. clone_mask |= (1 << (cnt++));
  312. list_for_each_entry(encoder, &drm->mode_config.encoder_list, head)
  313. encoder->possible_clones = clone_mask;
  314. /* Try to bind all sub drivers. */
  315. ret = component_bind_all(drm->dev, drm);
  316. if (ret)
  317. goto err_mode_config_cleanup;
  318. ret = drm_vblank_init(drm, drm->mode_config.num_crtc);
  319. if (ret)
  320. goto err_unbind_all;
  321. /* Probe non kms sub drivers and virtual display driver. */
  322. ret = exynos_drm_device_subdrv_probe(drm);
  323. if (ret)
  324. goto err_cleanup_vblank;
  325. drm_mode_config_reset(drm);
  326. /*
  327. * enable drm irq mode.
  328. * - with irq_enabled = true, we can use the vblank feature.
  329. *
  330. * P.S. note that we wouldn't use drm irq handler but
  331. * just specific driver own one instead because
  332. * drm framework supports only one irq handler.
  333. */
  334. drm->irq_enabled = true;
  335. /* init kms poll for handling hpd */
  336. drm_kms_helper_poll_init(drm);
  337. /* force connectors detection */
  338. drm_helper_hpd_irq_event(drm);
  339. /* register the DRM device */
  340. ret = drm_dev_register(drm, 0);
  341. if (ret < 0)
  342. goto err_cleanup_fbdev;
  343. return 0;
  344. err_cleanup_fbdev:
  345. exynos_drm_fbdev_fini(drm);
  346. drm_kms_helper_poll_fini(drm);
  347. exynos_drm_device_subdrv_remove(drm);
  348. err_cleanup_vblank:
  349. drm_vblank_cleanup(drm);
  350. err_unbind_all:
  351. component_unbind_all(drm->dev, drm);
  352. err_mode_config_cleanup:
  353. drm_mode_config_cleanup(drm);
  354. drm_release_iommu_mapping(drm);
  355. err_free_private:
  356. kfree(private);
  357. err_free_drm:
  358. drm_dev_unref(drm);
  359. return ret;
  360. }
  361. static void exynos_drm_unbind(struct device *dev)
  362. {
  363. struct drm_device *drm = dev_get_drvdata(dev);
  364. drm_dev_unregister(drm);
  365. exynos_drm_device_subdrv_remove(drm);
  366. exynos_drm_fbdev_fini(drm);
  367. drm_kms_helper_poll_fini(drm);
  368. component_unbind_all(drm->dev, drm);
  369. drm_mode_config_cleanup(drm);
  370. drm_release_iommu_mapping(drm);
  371. kfree(drm->dev_private);
  372. drm->dev_private = NULL;
  373. drm_dev_unref(drm);
  374. }
  375. static const struct component_master_ops exynos_drm_ops = {
  376. .bind = exynos_drm_bind,
  377. .unbind = exynos_drm_unbind,
  378. };
  379. static int exynos_drm_platform_probe(struct platform_device *pdev)
  380. {
  381. struct component_match *match;
  382. pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
  383. exynos_drm_driver.num_ioctls = ARRAY_SIZE(exynos_ioctls);
  384. match = exynos_drm_match_add(&pdev->dev);
  385. if (IS_ERR(match))
  386. return PTR_ERR(match);
  387. return component_master_add_with_match(&pdev->dev, &exynos_drm_ops,
  388. match);
  389. }
  390. static int exynos_drm_platform_remove(struct platform_device *pdev)
  391. {
  392. component_master_del(&pdev->dev, &exynos_drm_ops);
  393. return 0;
  394. }
  395. static struct platform_driver exynos_drm_platform_driver = {
  396. .probe = exynos_drm_platform_probe,
  397. .remove = exynos_drm_platform_remove,
  398. .driver = {
  399. .name = "exynos-drm",
  400. .pm = &exynos_drm_pm_ops,
  401. },
  402. };
  403. static struct device *exynos_drm_get_dma_device(void)
  404. {
  405. int i;
  406. for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) {
  407. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  408. struct device *dev;
  409. if (!info->driver || !(info->flags & DRM_DMA_DEVICE))
  410. continue;
  411. while ((dev = bus_find_device(&platform_bus_type, NULL,
  412. &info->driver->driver,
  413. (void *)platform_bus_type.match))) {
  414. put_device(dev);
  415. return dev;
  416. }
  417. }
  418. return NULL;
  419. }
  420. static void exynos_drm_unregister_devices(void)
  421. {
  422. int i;
  423. for (i = ARRAY_SIZE(exynos_drm_drivers) - 1; i >= 0; --i) {
  424. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  425. struct device *dev;
  426. if (!info->driver || !(info->flags & DRM_VIRTUAL_DEVICE))
  427. continue;
  428. while ((dev = bus_find_device(&platform_bus_type, NULL,
  429. &info->driver->driver,
  430. (void *)platform_bus_type.match))) {
  431. put_device(dev);
  432. platform_device_unregister(to_platform_device(dev));
  433. }
  434. }
  435. }
  436. static int exynos_drm_register_devices(void)
  437. {
  438. struct platform_device *pdev;
  439. int i;
  440. for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) {
  441. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  442. if (!info->driver || !(info->flags & DRM_VIRTUAL_DEVICE))
  443. continue;
  444. pdev = platform_device_register_simple(
  445. info->driver->driver.name, -1, NULL, 0);
  446. if (IS_ERR(pdev))
  447. goto fail;
  448. }
  449. return 0;
  450. fail:
  451. exynos_drm_unregister_devices();
  452. return PTR_ERR(pdev);
  453. }
  454. static void exynos_drm_unregister_drivers(void)
  455. {
  456. int i;
  457. for (i = ARRAY_SIZE(exynos_drm_drivers) - 1; i >= 0; --i) {
  458. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  459. if (!info->driver)
  460. continue;
  461. platform_driver_unregister(info->driver);
  462. }
  463. }
  464. static int exynos_drm_register_drivers(void)
  465. {
  466. int i, ret;
  467. for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) {
  468. struct exynos_drm_driver_info *info = &exynos_drm_drivers[i];
  469. if (!info->driver)
  470. continue;
  471. ret = platform_driver_register(info->driver);
  472. if (ret)
  473. goto fail;
  474. }
  475. return 0;
  476. fail:
  477. exynos_drm_unregister_drivers();
  478. return ret;
  479. }
  480. static int exynos_drm_init(void)
  481. {
  482. int ret;
  483. ret = exynos_drm_register_devices();
  484. if (ret)
  485. return ret;
  486. ret = exynos_drm_register_drivers();
  487. if (ret)
  488. goto err_unregister_pdevs;
  489. return 0;
  490. err_unregister_pdevs:
  491. exynos_drm_unregister_devices();
  492. return ret;
  493. }
  494. static void exynos_drm_exit(void)
  495. {
  496. exynos_drm_unregister_drivers();
  497. exynos_drm_unregister_devices();
  498. }
  499. module_init(exynos_drm_init);
  500. module_exit(exynos_drm_exit);
  501. MODULE_AUTHOR("Inki Dae <inki.dae@samsung.com>");
  502. MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>");
  503. MODULE_AUTHOR("Seung-Woo Kim <sw0312.kim@samsung.com>");
  504. MODULE_DESCRIPTION("Samsung SoC DRM Driver");
  505. MODULE_LICENSE("GPL");