exynos_drm_drv.c 15 KB

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