diff options
author | Egbert Eich <eich@suse.de> | 2013-02-25 12:06:48 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-26 16:49:27 -0400 |
commit | fa00abe00e379a0e9b070616baee58692576f29e (patch) | |
tree | 00666c1aa97602d5c24950f799c4095a36451743 /drivers/gpu/drm | |
parent | bb60b9695ced58768ba05b2d88fb4ee815df18f4 (diff) |
DRM/i915: Remove valleyview_hpd_irq_setup.
It's basically identical to i915_hpd_irq_setup().
Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 3c2b05c3cefe..1a24744f7a27 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -2204,30 +2204,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) | |||
2204 | return 0; | 2204 | return 0; |
2205 | } | 2205 | } |
2206 | 2206 | ||
2207 | static void valleyview_hpd_irq_setup(struct drm_device *dev) | ||
2208 | { | ||
2209 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; | ||
2210 | u32 hotplug_en = I915_READ(PORT_HOTPLUG_EN); | ||
2211 | |||
2212 | /* Note HDMI and DP share bits */ | ||
2213 | if (dev_priv->hotplug_supported_mask & PORTB_HOTPLUG_INT_STATUS) | ||
2214 | hotplug_en |= PORTB_HOTPLUG_INT_EN; | ||
2215 | if (dev_priv->hotplug_supported_mask & PORTC_HOTPLUG_INT_STATUS) | ||
2216 | hotplug_en |= PORTC_HOTPLUG_INT_EN; | ||
2217 | if (dev_priv->hotplug_supported_mask & PORTD_HOTPLUG_INT_STATUS) | ||
2218 | hotplug_en |= PORTD_HOTPLUG_INT_EN; | ||
2219 | if (dev_priv->hotplug_supported_mask & SDVOC_HOTPLUG_INT_STATUS_I915) | ||
2220 | hotplug_en |= SDVOC_HOTPLUG_INT_EN; | ||
2221 | if (dev_priv->hotplug_supported_mask & SDVOB_HOTPLUG_INT_STATUS_I915) | ||
2222 | hotplug_en |= SDVOB_HOTPLUG_INT_EN; | ||
2223 | if (dev_priv->hotplug_supported_mask & CRT_HOTPLUG_INT_STATUS) { | ||
2224 | hotplug_en |= CRT_HOTPLUG_INT_EN; | ||
2225 | hotplug_en |= CRT_HOTPLUG_VOLTAGE_COMPARE_50; | ||
2226 | } | ||
2227 | |||
2228 | I915_WRITE(PORT_HOTPLUG_EN, hotplug_en); | ||
2229 | } | ||
2230 | |||
2231 | static void valleyview_irq_uninstall(struct drm_device *dev) | 2207 | static void valleyview_irq_uninstall(struct drm_device *dev) |
2232 | { | 2208 | { |
2233 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; | 2209 | drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; |
@@ -2959,7 +2935,7 @@ void intel_irq_init(struct drm_device *dev) | |||
2959 | dev->driver->irq_uninstall = valleyview_irq_uninstall; | 2935 | dev->driver->irq_uninstall = valleyview_irq_uninstall; |
2960 | dev->driver->enable_vblank = valleyview_enable_vblank; | 2936 | dev->driver->enable_vblank = valleyview_enable_vblank; |
2961 | dev->driver->disable_vblank = valleyview_disable_vblank; | 2937 | dev->driver->disable_vblank = valleyview_disable_vblank; |
2962 | dev_priv->display.hpd_irq_setup = valleyview_hpd_irq_setup; | 2938 | dev_priv->display.hpd_irq_setup = i915_hpd_irq_setup; |
2963 | } else if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) { | 2939 | } else if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev)) { |
2964 | /* Share pre & uninstall handlers with ILK/SNB */ | 2940 | /* Share pre & uninstall handlers with ILK/SNB */ |
2965 | dev->driver->irq_handler = ivybridge_irq_handler; | 2941 | dev->driver->irq_handler = ivybridge_irq_handler; |