diff mbox series

[WIP,3/7] drm/exynos: Add drivers on drv.c

Message ID 20241002-auto9-v1-3-c4dc3385f415@samsung.com (mailing list archive)
State New
Headers show
Series drm/exynos: Add autov9 DPU code | expand

Commit Message

Kwanghoon Son Oct. 2, 2024, 5:33 a.m. UTC
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_drv.c | 11 ++++++++++-
 drivers/gpu/drm/exynos/exynos_drm_drv.h |  3 +++
 2 files changed, 13 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 7c59e1164a48..3071b85e4c18 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -160,6 +160,15 @@  struct exynos_drm_driver_info {
  */
 static struct exynos_drm_driver_info exynos_drm_drivers[] = {
 	{
+		DRV_PTR(dpp_driver, CONFIG_DRM_EXYNOS9_DECON),
+		DRM_COMPONENT_DRIVER
+	}, {
+		DRV_PTR(dpu_dma_driver, CONFIG_DRM_EXYNOS9_DECON),
+		DRM_COMPONENT_DRIVER
+	}, {
+		DRV_PTR(decon_driver, CONFIG_DRM_EXYNOS9_DECON),
+		DRM_COMPONENT_DRIVER
+	}, {
 		DRV_PTR(fimd_driver, CONFIG_DRM_EXYNOS_FIMD),
 		DRM_COMPONENT_DRIVER
 	}, {
@@ -172,7 +181,7 @@  static struct exynos_drm_driver_info exynos_drm_drivers[] = {
 		DRV_PTR(mixer_driver, CONFIG_DRM_EXYNOS_MIXER),
 		DRM_COMPONENT_DRIVER
 	}, {
-		DRV_PTR(dp_driver, CONFIG_DRM_EXYNOS_DP),
+		DRV_PTR(dp_driver, CONFIG_DRM_EXYNOS9_DP),
 		DRM_COMPONENT_DRIVER
 	}, {
 		DRV_PTR(dsi_driver, CONFIG_DRM_EXYNOS_DSI),
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 23646e55f142..6a1129b69b97 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -199,6 +199,7 @@  struct drm_exynos_file_private {
 struct exynos_drm_private {
 	struct device *g2d_dev;
 	struct device *dma_dev;
+	struct device *dpp_dev;
 	void *mapping;
 
 	/* for atomic commit */
@@ -254,6 +255,8 @@  static inline int exynos_drm_check_fimc_device(struct device *dev)
 }
 #endif
 
+extern struct platform_driver dpp_driver;
+extern struct platform_driver dpu_dma_driver;
 extern struct platform_driver fimd_driver;
 extern struct platform_driver exynos5433_decon_driver;
 extern struct platform_driver decon_driver;