OSDN Git Service

drm: rcar-du: Reject modes that fail CRTC timing requirements
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 11 Nov 2018 02:15:08 +0000 (04:15 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 23 Nov 2018 11:51:23 +0000 (13:51 +0200)
commit256856efb8cc2b5468c69edf45eb0ab579833ce7
tree255ab951272ed61859b9e3fa1aa1b232c24835c3
parent63a298f22a6183b5b7536a203596c6570dfcfe8e
drm: rcar-du: Reject modes that fail CRTC timing requirements

The hardware requires the HDSR and VDSR registers to be set to 1 or
higher. This translates to a minimum combined horizontal sync and back
porch of 20 pixels and a minimum vertical back porch of 3 lines. Reject
modes that fail those requirements.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c