mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm/tegra: dc: Parameterize maximum resolution
Tegra186 and later support a higher maximum resolution than earlier chips, so make sure to reflect that in the mode configuration. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -2117,6 +2117,12 @@ static int tegra_dc_init(struct host1x_client *client)
|
||||
if (dc->soc->pitch_align > tegra->pitch_align)
|
||||
tegra->pitch_align = dc->soc->pitch_align;
|
||||
|
||||
/* track maximum resolution */
|
||||
if (dc->soc->has_nvdisplay)
|
||||
drm->mode_config.max_width = drm->mode_config.max_height = 16384;
|
||||
else
|
||||
drm->mode_config.max_width = drm->mode_config.max_height = 4096;
|
||||
|
||||
err = tegra_dc_rgb_init(drm, dc);
|
||||
if (err < 0 && err != -ENODEV) {
|
||||
dev_err(dc->dev, "failed to initialize RGB output: %d\n", err);
|
||||
|
||||
Reference in New Issue
Block a user