diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /drivers/gpu/drm/tegra/drm.c | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
| -rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 16 | 
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 427f50c6803c..6d88cf1fcd1c 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -171,8 +171,6 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags)  	if (err < 0)  		goto fbdev; -	drm_mode_config_reset(drm); -  	/*  	 * We don't use the drm_irq_install() helpers provided by the DRM  	 * core, so we need to set this manually in order to allow the @@ -182,11 +180,14 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags)  	/* syncpoints are used for full 32-bit hardware VBLANK counters */  	drm->max_vblank_count = 0xffffffff; +	drm->vblank_disable_allowed = true;  	err = drm_vblank_init(drm, drm->mode_config.num_crtc);  	if (err < 0)  		goto device; +	drm_mode_config_reset(drm); +  	err = tegra_drm_fb_init(drm);  	if (err < 0)  		goto vblank; @@ -1037,9 +1038,8 @@ static int host1x_drm_resume(struct device *dev)  }  #endif -static const struct dev_pm_ops host1x_drm_pm_ops = { -	SET_SYSTEM_SLEEP_PM_OPS(host1x_drm_suspend, host1x_drm_resume) -}; +static SIMPLE_DEV_PM_OPS(host1x_drm_pm_ops, host1x_drm_suspend, +			 host1x_drm_resume);  static const struct of_device_id host1x_drm_subdevs[] = {  	{ .compatible = "nvidia,tegra20-dc", }, @@ -1056,6 +1056,12 @@ static const struct of_device_id host1x_drm_subdevs[] = {  	{ .compatible = "nvidia,tegra124-dc", },  	{ .compatible = "nvidia,tegra124-sor", },  	{ .compatible = "nvidia,tegra124-hdmi", }, +	{ .compatible = "nvidia,tegra124-dsi", }, +	{ .compatible = "nvidia,tegra132-dsi", }, +	{ .compatible = "nvidia,tegra210-dc", }, +	{ .compatible = "nvidia,tegra210-dsi", }, +	{ .compatible = "nvidia,tegra210-sor", }, +	{ .compatible = "nvidia,tegra210-sor1", },  	{ /* sentinel */ }  };  |