forked from Minki/linux
4f5504cfc6
The VSP1 compositor code in DRM links against the respective V4L
driver, but the dependency is not expressed correctly in Kconfig,
which leads to a build error when the DRM driver is built-in
and the V4L driver is a module:
drivers/gpu/built-in.o: In function `rcar_du_vsp_plane_atomic_update':
rcar-du/rcar_du_vsp.c:183: undefined reference to `vsp1_du_atomic_update'
This patch avoids the problem by ensuring that the DRM VSP code can
only be enabled if the V4L driver is linked into the kernel, or
both are loadable modules.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 6d62ef3ac3
("drm: rcar-du: Expose the VSP1 compositor through KMS planes")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
33 lines
929 B
Plaintext
33 lines
929 B
Plaintext
config DRM_RCAR_DU
|
|
tristate "DRM Support for R-Car Display Unit"
|
|
depends on DRM && OF
|
|
depends on ARM || ARM64
|
|
depends on ARCH_SHMOBILE || COMPILE_TEST
|
|
select DRM_KMS_HELPER
|
|
select DRM_KMS_CMA_HELPER
|
|
select DRM_GEM_CMA_HELPER
|
|
select DRM_KMS_FB_HELPER
|
|
select VIDEOMODE_HELPERS
|
|
help
|
|
Choose this option if you have an R-Car chipset.
|
|
If M is selected the module will be called rcar-du-drm.
|
|
|
|
config DRM_RCAR_HDMI
|
|
bool "R-Car DU HDMI Encoder Support"
|
|
depends on DRM_RCAR_DU
|
|
help
|
|
Enable support for external HDMI encoders.
|
|
|
|
config DRM_RCAR_LVDS
|
|
bool "R-Car DU LVDS Encoder Support"
|
|
depends on DRM_RCAR_DU
|
|
help
|
|
Enable support for the R-Car Display Unit embedded LVDS encoders.
|
|
|
|
config DRM_RCAR_VSP
|
|
bool "R-Car DU VSP Compositor Support"
|
|
depends on DRM_RCAR_DU
|
|
depends on VIDEO_RENESAS_VSP1=y || (VIDEO_RENESAS_VSP1 && DRM_RCAR_DU=m)
|
|
help
|
|
Enable support to expose the R-Car VSP Compositor as KMS planes.
|