drm: rcar-du: Fix r8a779a0 color issue
authorTomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Wed, 17 Aug 2022 13:28:02 +0000 (16:28 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 7 Sep 2022 20:48:40 +0000 (23:48 +0300)
commit6d8277cfda96c7dd17a43f645858d2d39a7a4a20
tree1f3d2f9566f302bf7c39d9797d53c415109e69f8
parent48d43c4f3f55f4599c294007644184fdce44dafe
drm: rcar-du: Fix r8a779a0 color issue

The rcar DU driver on r8a779a0 has a bug causing some specific colors
getting converted to transparent colors, which then (usually) show as
black pixels on the screen.

The reason seems to be that the driver sets PnMR_SPIM_ALP bit in
PnMR.SPIM field, which is an illegal setting on r8a779a0. The
PnMR_SPIM_EOR bit also illegal.

Add a new feature flag for this (lack of a) feature and make sure the
bits are zero on r8a779a0.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen+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_drv.c
drivers/gpu/drm/rcar-du/rcar_du_drv.h
drivers/gpu/drm/rcar-du/rcar_du_plane.c