|
38 | 38 | #include "exynos_drm_fb.h" |
39 | 39 | #include "exynos_drm_gem.h" |
40 | 40 | #include "exynos_drm_plane.h" |
| 41 | +#include "exynos_drm_vidi.h" |
41 | 42 |
|
42 | 43 | #define DRIVER_NAME "exynos" |
43 | 44 | #define DRIVER_DESC "Samsung SoC DRM" |
@@ -208,6 +209,8 @@ static struct drm_ioctl_desc exynos_ioctls[] = { |
208 | 209 | exynos_drm_gem_mmap_ioctl, DRM_UNLOCKED | DRM_AUTH), |
209 | 210 | DRM_IOCTL_DEF_DRV(EXYNOS_PLANE_SET_ZPOS, exynos_plane_set_zpos_ioctl, |
210 | 211 | DRM_UNLOCKED | DRM_AUTH), |
| 212 | + DRM_IOCTL_DEF_DRV(EXYNOS_VIDI_CONNECTION, |
| 213 | + vidi_connection_ioctl, DRM_UNLOCKED | DRM_AUTH), |
211 | 214 | }; |
212 | 215 |
|
213 | 216 | static const struct file_operations exynos_drm_driver_fops = { |
@@ -298,13 +301,24 @@ static int __init exynos_drm_init(void) |
298 | 301 | goto out_common_hdmi; |
299 | 302 | #endif |
300 | 303 |
|
| 304 | +#ifdef CONFIG_DRM_EXYNOS_VIDI |
| 305 | + ret = platform_driver_register(&vidi_driver); |
| 306 | + if (ret < 0) |
| 307 | + goto out_vidi; |
| 308 | +#endif |
| 309 | + |
301 | 310 | ret = platform_driver_register(&exynos_drm_platform_driver); |
302 | 311 | if (ret < 0) |
303 | 312 | goto out; |
304 | 313 |
|
305 | 314 | return 0; |
306 | 315 |
|
307 | 316 | out: |
| 317 | +#ifdef CONFIG_DRM_EXYNOS_VIDI |
| 318 | +out_vidi: |
| 319 | + platform_driver_unregister(&vidi_driver); |
| 320 | +#endif |
| 321 | + |
308 | 322 | #ifdef CONFIG_DRM_EXYNOS_HDMI |
309 | 323 | platform_driver_unregister(&exynos_drm_common_hdmi_driver); |
310 | 324 | out_common_hdmi: |
@@ -333,6 +347,10 @@ static void __exit exynos_drm_exit(void) |
333 | 347 | platform_driver_unregister(&hdmi_driver); |
334 | 348 | #endif |
335 | 349 |
|
| 350 | +#ifdef CONFIG_DRM_EXYNOS_VIDI |
| 351 | + platform_driver_unregister(&vidi_driver); |
| 352 | +#endif |
| 353 | + |
336 | 354 | #ifdef CONFIG_DRM_EXYNOS_FIMD |
337 | 355 | platform_driver_unregister(&fimd_driver); |
338 | 356 | #endif |
|
0 commit comments