drm/msm: Set different display size limitation on each target

The maximum output width of one pipeline depends on the LayerMixer's
capability. It may be different on each target. Also, MDP5 doesn't
have vertical limitation in one frame, as long as the pixel clock
can be supported.

This change obtains the maximum LM resolution from configuration
table and treat it as the whole pipe's limitation for MDP5. The size
limit on MDP4 is not changed.

Signed-off-by: Hai Li <hali@codeaurora.org>
This commit is contained in:
Hai Li
2015-06-24 19:13:40 -04:00
committed by Rob Clark
parent 5cf3a4553f
commit 9b7a9fc29a
5 changed files with 20 additions and 4 deletions

View File

@@ -331,10 +331,6 @@ static int msm_load(struct drm_device *dev, unsigned long flags)
}
}
dev->mode_config.min_width = 0;
dev->mode_config.min_height = 0;
dev->mode_config.max_width = 2048;
dev->mode_config.max_height = 2048;
dev->mode_config.funcs = &mode_config_funcs;
ret = drm_vblank_init(dev, priv->num_crtcs);