summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du/rcar_du_drv.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2018-11-24 20:19:52 +0200
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2019-01-14 03:51:25 +0200
commitb8a43032a7b8d7e8e7c65dfa987d8374a0de7a6e (patch)
tree481decdae9f748da417118bb8bbb00d85e1515b0 /drivers/gpu/drm/rcar-du/rcar_du_drv.h
parentcef0d9cfe4e5b6c756c268c1b7dda7fa257336fc (diff)
downloadlinux-stable-b8a43032a7b8d7e8e7c65dfa987d8374a0de7a6e.tar.gz
linux-stable-b8a43032a7b8d7e8e7c65dfa987d8374a0de7a6e.tar.bz2
linux-stable-b8a43032a7b8d7e8e7c65dfa987d8374a0de7a6e.zip
drm: rcar-du: Move CRTC outputs bitmask to private CRTC state
The rcar_du_crtc outputs field stores a bitmask of the outputs driven by the CRTC. This changes based on the configuration requested by userspace, and is used for the sole purpose of configuring the hardware. The field thus belongs to the CRTC state. Move it to the rcar_du_crtc_state structure. As a result the rcar_du_crtc_route_output() function loses most of its purpose. In order to remove it, move dpad0_source calculation to rcar_du_atomic_commit_tail(), until the field gets moved to a state structure. In order to simplify the rcar_du_group_set_routing() implementation, we also store the DPAD1 source in a new dpad1_source field which will move to a state structure with dpad0_source. 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/rcar_du_drv.h')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.h b/drivers/gpu/drm/rcar-du/rcar_du_drv.h
index 2ba311734f30..752617c73c73 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.h
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.h
@@ -88,6 +88,7 @@ struct rcar_du_device {
} props;
unsigned int dpad0_source;
+ unsigned int dpad1_source;
unsigned int vspd1_sink;
};