]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Add alpha property for sun8i and sun50i VI layer
authorRoman Stratiienko <r.stratiienko@gmail.com>
Thu, 28 Jan 2021 11:39:40 +0000 (13:39 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 10 Feb 2021 10:06:34 +0000 (11:06 +0100)
commit27e135e16a1705ef0425be42b6b72863b8dcb676
tree8f2fda0a7c63a717d3e54b178b9b13695e11efe3
parentffb9eed5251ff06cca5b7686477251b48e058ecc
drm/sun4i: Add alpha property for sun8i and sun50i VI layer

DE3.0 VI layers supports plane-global alpha channel.
DE2.0 FCC block have GLOBAL_ALPHA register that can be used as alpha source
for blender.

Add alpha property to the DRM plane and connect it to the
corresponding registers in the mixer.

Do not add alpha property for V3s SOC that have DE2.0 and 2 VI planes.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210128113940.347013-3-r.stratiienko@gmail.com
drivers/gpu/drm/sun4i/sun8i_vi_layer.c
drivers/gpu/drm/sun4i/sun8i_vi_layer.h