drm: rcar-du: Add quirk for H3 ES1.x pclk workaround
authorTomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Mon, 23 Jan 2023 10:47:40 +0000 (12:47 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 23 Jan 2023 22:41:13 +0000 (00:41 +0200)
commit4f548bc48a2b4c4e54eecfddb6f7d24aa1b98768
treee85eb770584043c93f7927a3dd606af6cdbc0122
parentc0016f89c1d652e590349a4ccf2954407cb70150
drm: rcar-du: Add quirk for H3 ES1.x pclk workaround

rcar_du_crtc.c does a soc_device_match() in
rcar_du_crtc_set_display_timing() to find out if the SoC is H3 ES1.x, and
if so, apply a workaround.

We will need another H3 ES1.x check in the following patch, so rather than
adding more soc_device_match() calls, let's add a rcar_du_device_info
entry for the ES1, and a quirk flag,
RCAR_DU_QUIRK_H3_ES1_PCLK_STABILITY, for the workaround.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/rcar-du/rcar_du_drv.h