MLK-22649 drm/imx: dpu: plane: Add color properties support
authorLiu Ying <victor.liu@nxp.com>
Fri, 20 Sep 2019 05:12:14 +0000 (13:12 +0800)
committerLiu Ying <victor.liu@nxp.com>
Sat, 21 Sep 2019 08:09:38 +0000 (16:09 +0800)
commit795e2b59fbd1ba2d84d6a3cc8b05d3d220d60113
tree50e6f5ec8f92782bbc441f3352efed16ca9cd8b2
parent74bb3f20296c5e50588b85a44bc07f12644e9324
MLK-22649 drm/imx: dpu: plane: Add color properties support

As DPU fetchunits support ITU601(limited range)/ITU601_FR(full range)
and ITU709(limited range) YUV to RGB color space conversions, we may
add color encoding and color range properties support for planes.
Considering software backward compatibility, the default color encoding
is set to ITU601 with full color range.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit f491e24e65cb360fb0b3ce56f74d04fd80da77ab)
drivers/gpu/drm/imx/dpu/dpu-plane.c
drivers/gpu/imx/dpu/dpu-fetchdecode.c
drivers/gpu/imx/dpu/dpu-fetcheco.c
drivers/gpu/imx/dpu/dpu-fetchlayer.c
drivers/gpu/imx/dpu/dpu-fetchwarp.c
include/video/dpu.h