drm: rcar-du: crtc: Support external DSI dot clock
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 26 Nov 2021 09:35:14 +0000 (09:35 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 6 Dec 2021 16:19:49 +0000 (18:19 +0200)
commit57b290cb905bec520372ac635d9e9f0548d9d67e
tree3a394d9306af2f119eac2488bfafdef113014719
parente0e4c64a64780a8672480618142776de8bf98d07
drm: rcar-du: crtc: Support external DSI dot clock

On platforms with an external clock, both the group and crtc must be
handled accordingly to correctly pass through the external clock and
configure the DU to use the external rate.

The CRTC support was missed while adding the DSI support on the r8a779a0
which led to the output clocks being incorrectly determined.

Ensure that when a CRTC is routed through the DSI encoder, the external
clock is used without any further divider being applied.

Fixes: b291fdcf5114 ("drm: rcar-du: Add r8a779a0 device support")
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c