diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2022-02-21 18:54:41 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2022-03-03 14:05:55 +0200 |
commit | aaaf9361f0348dd13131e392190b3793e135f7e3 (patch) | |
tree | a6d5b8f273872103ad34d7aa42f0bba47aed229c /drivers/gpu/drm/rcar-du | |
parent | 841281fe52a769fedcf615880a33a2d0b2062b70 (diff) | |
download | linux-aaaf9361f0348dd13131e392190b3793e135f7e3.tar.gz linux-aaaf9361f0348dd13131e392190b3793e135f7e3.tar.bz2 linux-aaaf9361f0348dd13131e392190b3793e135f7e3.zip |
drm: rcar-du: Don't select VSP1 sink on Gen3
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>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_plane.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.c b/drivers/gpu/drm/rcar-du/rcar_du_plane.c index 862197be1e01..9b058d6cb032 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_plane.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.c @@ -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; |