drm/sun4i: backend: Support YUV planes
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 1 Mar 2018 19:18:46 +0000 (20:18 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 19 Mar 2018 21:04:57 +0000 (22:04 +0100)
commitddc389f5a4abb4c0c91202cd6dc09a28b9e2d82c
treee93e243cd20af5ae761effed024d77e5cf6dc225
parent32463556a634f3e262581ed348705081706fccd0
drm/sun4i: backend: Support YUV planes

Now that we have the guarantee that we will have only a single YUV plane,
actually support them. The way it works is not really straightforward,
since we first need to enable the YUV mode in the plane that we want to
setup, and then we have a few registers to setup the YUV buffer and
parameters.

We also need to setup the color correction to actually have something
displayed.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/66088c1398bd3189123f28a89a7ccc669fe9f296.1519931807.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c
drivers/gpu/drm/sun4i/sun4i_backend.h
drivers/gpu/drm/sun4i/sun4i_layer.c