OSDN Git Service

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)
commitc0f6f0c471a378a6da5ac99a086ba63e1a8570bb
tree8f2fda0a7c63a717d3e54b178b9b13695e11efe3
parent0ee29373f0317502dd6d6d2202db189e3bc48f4c
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