diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-05-09 14:37:20 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-19 16:39:47 -0400 |
commit | 45244b87943b1173353b48854352bb9f4b065867 (patch) | |
tree | 50184c15fb25605c007ed5634c25476afe3d6528 /drivers/gpu/drm/i915/intel_display.c | |
parent | 59c859d6f2e78344945e8a8406a194156176bc4e (diff) |
drm/i915: initialize DDI buffer translations
DDI is introduced starting with Haswell GPU generation. So to simplify its
management in the future, we also add intel_ddi.c to hold all the
DDI-related items.
Buffer translations for DDI links must be initialized prior to enablement.
For FDI and DP, first 9 pairs of values are used to select the connection
parameters. HDMI uses the last pair of values and ignores the first 9
pairs. So we program HDMI values in both cases, which allows HDMI to work
over both FDI and DP-friendly buffers.
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 101c4d458c33..096a1b1eaf46 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -6806,6 +6806,8 @@ void intel_modeset_init(struct drm_device *dev) | |||
6806 | 6806 | ||
6807 | intel_init_pm(dev); | 6807 | intel_init_pm(dev); |
6808 | 6808 | ||
6809 | intel_prepare_ddi(dev); | ||
6810 | |||
6809 | intel_init_display(dev); | 6811 | intel_init_display(dev); |
6810 | 6812 | ||
6811 | if (IS_GEN2(dev)) { | 6813 | if (IS_GEN2(dev)) { |