mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
drm/renesas/rz-du: Run DRM default client setup
Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The rz-du driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entirely. v5: - select DRM_CLIENT_SELECTION Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Biju Das <biju.das.jz@bp.renesas.com> Tested-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-35-tzimmermann@suse.de
This commit is contained in:
parent
f214aa79b2
commit
f75b3903af
|
|
@ -4,6 +4,7 @@ config DRM_RZG2L_DU
|
|||
depends on ARCH_RZG2L || COMPILE_TEST
|
||||
depends on DRM && OF
|
||||
depends on VIDEO_RENESAS_VSP1
|
||||
select DRM_CLIENT_SELECTION
|
||||
select DRM_GEM_DMA_HELPER
|
||||
select DRM_KMS_HELPER
|
||||
select DRM_DISPLAY_HELPER
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/platform_device.h>
|
||||
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_client_setup.h>
|
||||
#include <drm/drm_drv.h>
|
||||
#include <drm/drm_fbdev_dma.h>
|
||||
#include <drm/drm_gem_dma_helper.h>
|
||||
|
|
@ -79,6 +80,7 @@ DEFINE_DRM_GEM_DMA_FOPS(rzg2l_du_fops);
|
|||
static const struct drm_driver rzg2l_du_driver = {
|
||||
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
|
||||
.dumb_create = rzg2l_du_dumb_create,
|
||||
DRM_FBDEV_DMA_DRIVER_OPS,
|
||||
.fops = &rzg2l_du_fops,
|
||||
.name = "rzg2l-du",
|
||||
.desc = "Renesas RZ/G2L Display Unit",
|
||||
|
|
@ -160,7 +162,7 @@ static int rzg2l_du_probe(struct platform_device *pdev)
|
|||
|
||||
drm_info(&rcdu->ddev, "Device %s probed\n", dev_name(&pdev->dev));
|
||||
|
||||
drm_fbdev_dma_setup(&rcdu->ddev, 32);
|
||||
drm_client_setup(&rcdu->ddev, NULL);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user