Skip to content

Commit

Permalink
drm: rcar-du: Don't select VSP1 sink on Gen3
Browse files Browse the repository at this point in the history
The VSP1 sink selection through register DEFR8 is only available on Gen2
hardware. Skip it on Gen3.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
  • Loading branch information
Laurent Pinchart committed Mar 3, 2022
1 parent 841281f commit aaaf936
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/rcar-du/rcar_du_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,10 @@ void __rcar_du_plane_setup(struct rcar_du_group *rgrp,
rcar_du_plane_setup_format(rgrp, (state->hwindex + 1) % 8,
state);

if (rcdu->info->gen < 3)
rcar_du_plane_setup_scanout(rgrp, state);
if (rcdu->info->gen >= 3)
return;

rcar_du_plane_setup_scanout(rgrp, state);

if (state->source == RCAR_DU_PLANE_VSPD1) {
unsigned int vspd1_sink = rgrp->index ? 2 : 0;
Expand Down

0 comments on commit aaaf936

Please sign in to comment.