OSDN Git Service

drm/rockchip: vop2: Register Esmart0-win0 as primary plane
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 26 Sep 2022 08:16:43 +0000 (10:16 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 29 Oct 2022 16:34:51 +0000 (18:34 +0200)
commitde4a4c8f64021b02aaa8ab21a82fe1f11a17b975
treeb65d7b965377b670148675d6e3da40cd8be95ddf
parent4016379301a33e8bd0c2ef5c02f5d7f6a4afece4
drm/rockchip: vop2: Register Esmart0-win0 as primary plane

Esmart0-win0 could serve as primary plane, so mark it as such. On
RK3568 this window will never be used as primary plane, because the
three windows at the beginning of the rk3568_vop_win_data[] array
will be used. On RK3566 however, two of the windows at the beginning
of the rk3568_vop_win_data[] array cannot not be used due to hardware
limitations, so without this patch we end up with CRTCs without primary
planes when multiple VPs are active.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220926081643.304759-1-s.hauer@pengutronix.de
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c