OSDN Git Service

drm/hisilicon: fixed the wrong resolution configurations
authorTian Tao <tiantao6@hisilicon.com>
Fri, 3 Jan 2020 03:55:56 +0000 (11:55 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Thu, 27 Feb 2020 04:34:31 +0000 (04:34 +0000)
The maximum resolution supported by hibmc is 1920 * 1200 instead of
1920 * 1440, this patch fixed this problem

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Gong junjie <gongjunjie2@huawei.com>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1578023756-46567-1-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c

index 5f612f6..119135f 100644 (file)
@@ -91,7 +91,7 @@ static int hibmc_kms_init(struct hibmc_drm_private *priv)
        priv->dev->mode_config.min_width = 0;
        priv->dev->mode_config.min_height = 0;
        priv->dev->mode_config.max_width = 1920;
-       priv->dev->mode_config.max_height = 1440;
+       priv->dev->mode_config.max_height = 1200;
 
        priv->dev->mode_config.fb_base = priv->fb_base;
        priv->dev->mode_config.preferred_depth = 24;