]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbcc0fd910266c4839344dffcaec8075dcfb5244
treee93e243cd20af5ae761effed024d77e5cf6dc225
parente680421dd41183eb886a07be7196f1d7dd55f64a
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