Browse Source

drm/rcar-du: Add run-time dependencies

The Renesas R-Car Display Unit driver is only useful on shmobile
unless build testing. The LVDS output is useful on an even more
reduced hardware set.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Jean Delvare 11 years ago
parent
commit
923d941990
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpu/drm/rcar-du/Kconfig

+ 2 - 0
drivers/gpu/drm/rcar-du/Kconfig

@@ -1,6 +1,7 @@
 config DRM_RCAR_DU
 config DRM_RCAR_DU
 	tristate "DRM Support for R-Car Display Unit"
 	tristate "DRM Support for R-Car Display Unit"
 	depends on DRM && ARM
 	depends on DRM && ARM
+	depends on ARCH_SHMOBILE || COMPILE_TEST
 	select DRM_KMS_HELPER
 	select DRM_KMS_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
 	select DRM_GEM_CMA_HELPER
@@ -12,6 +13,7 @@ config DRM_RCAR_DU
 config DRM_RCAR_LVDS
 config DRM_RCAR_LVDS
 	bool "R-Car DU LVDS Encoder Support"
 	bool "R-Car DU LVDS Encoder Support"
 	depends on DRM_RCAR_DU
 	depends on DRM_RCAR_DU
+	depends on ARCH_R8A7790 || ARCH_R8A7791 || COMPILE_TEST
 	help
 	help
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  Enable support the R-Car Display Unit embedded LVDS encoders
 	  (currently only on R8A7790).
 	  (currently only on R8A7790).