drm/omap: use degamma property for gamma table
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 3 Nov 2020 08:03:07 +0000 (10:03 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Dec 2020 13:46:03 +0000 (15:46 +0200)
commit3fcd70c9a5d64e47b7f3d909b21a26e380f7a2f1
treec929ff9606bafbeb87ae2a108570d381a820179d
parent1b8977434606f2dcd8a90ca660eb535b56945662
drm/omap: use degamma property for gamma table

omapdrm supports gamma via GAMMA_LUT property. However, the HW we have
is:

gamma -> ctm -> out

instead of what the model DRM framework uses:

ctm -> gamma -> out

As the following patches add CTM support for omapdrm, lets first fix the
gamma.

This patch changes the property from GAMMA_LUT to DEGAMMA_LUT, and thus
we will have:

degamma -> ctm -> out

and the legacy ioctl will continue working as before.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201103080310.164453-3-tomi.valkeinen@ti.com
drivers/gpu/drm/omapdrm/omap_crtc.c