drm/imx: lift 64x64 pixel minimum framebuffer size requirement
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 27 Jan 2017 10:57:19 +0000 (11:57 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 17 Feb 2017 07:04:26 +0000 (08:04 +0100)
There is no reason to limit framebuffer size to 64x64 pixels at a
minimum on creation. The actual scanout limitations (width >= 13 for the
base plane and height >= 2) are checked in atomic_check.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c

index 33404295b447c981654109089c4073338b0b5c1a..bef76cb0d05dc005ddc15fa5aac40a5d49f59f4c 100644 (file)
@@ -357,8 +357,8 @@ static int imx_drm_bind(struct device *dev)
         * this value would be used to check framebuffer size limitation
         * at drm_mode_addfb().
         */
-       drm->mode_config.min_width = 64;
-       drm->mode_config.min_height = 64;
+       drm->mode_config.min_width = 1;
+       drm->mode_config.min_height = 1;
        drm->mode_config.max_width = 4096;
        drm->mode_config.max_height = 4096;
        drm->mode_config.funcs = &imx_drm_mode_config_funcs;