drm: rcar-du: Don't write unimplemented ESCR and OTAR registers on Gen3
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 22 Feb 2023 03:49:39 +0000 (05:49 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 25 Mar 2023 20:38:10 +0000 (22:38 +0200)
commitfb97147ad2956cff0e9fa2f6407c93bc9242db9b
tree6285e0bb9f5ac0aa21556f411b25ceb621381d90
parentec1c6ff81e8e2123b4d727b2b9ac74049b7c2b52
drm: rcar-du: Don't write unimplemented ESCR and OTAR registers on Gen3

The ESCR and OTAR registers are not present in all DU channels on Gen3
SoCs. ESCR only exists in channels that can be routed to an LVDS or
DPAD, and OTAR in channels that can be routed to a DPAD. Skip writing
those registers for other channels. This replaces the DU gen check, as
Gen4 doesn't have LVDS or DPAD outputs.

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