summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-02-16 13:24:44 +0300
committerHeiko Stuebner <heiko@sntech.de>2023-03-09 03:14:24 +0300
commit8e140cb60270ee8b5b41e80806323c668d8d4da9 (patch)
tree22329f7d75ab84b0811fe5f7dfdadcc827168f00 /drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
parent22de25f83c6b9b2df45fa346b632dcb9b6f1acda (diff)
downloadlinux-8e140cb60270ee8b5b41e80806323c668d8d4da9.tar.xz
drm/rockchip: vop: limit maximum resolution to hardware capabilities
The different VOP variants support different maximum resolutions. Reject resolutions that are not supported by a specific variant. This hasn't been a problem in the upstream driver so far as 1920x1080 has been the maximum resolution supported by the HDMI driver and that resolution is supported by all VOP variants. Now with higher resolutions supported in the HDMI driver we have to limit the resolutions to the ones supported by the VOP. The actual maximum resolutions are taken from the Rockchip downstream Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [dropped the vdisplay > height check after talking to Sascha, as according to the vendor code "Actually vop hardware has no output height limit" (from vendor commit "drm/rockchip: vop: get rid of max_output.height check") and the height-check broke the px30-minievb display] Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20230216102447.582905-2-s.hauer@pengutronix.de
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_vop2.h')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop2.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
index c727093a06d6..f1234a151130 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h
@@ -27,11 +27,6 @@ enum win_dly_mode {
VOP2_DLY_MODE_MAX,
};
-struct vop_rect {
- int width;
- int height;
-};
-
enum vop2_scale_up_mode {
VOP2_SCALE_UP_NRST_NBOR,
VOP2_SCALE_UP_BIL,