aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-26 17:38:43 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-27 15:07:35 -0400
commit73c352a265e8fde47a8f4dde5c92c0c88bcb9b26 (patch)
tree04badb02955e135dd9a93705ce7b4e2799909c76 /drivers/gpu/drm
parentc626d3179ce41c60c33390e2cdc4151246b689aa (diff)
drm/i915: wire up SDVO hpd support on cpt/ppt
Now with Egbert Eich's hpd infrastructure rework merged this is dead simple. And we need this to make output detection work on SDVO - with the cleaned-up drm polling helpers outputs which claim to have hpd support are no longer polled. Now SDVO claims to do that, but it's not actually wired up. So just do it. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c1
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 15a97ea2d6ea..425b192d0def 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -46,6 +46,7 @@ static const u32 hpd_ibx[] = {
46 46
47static const u32 hpd_cpt[] = { 47static const u32 hpd_cpt[] = {
48 [HPD_CRT] = SDE_CRT_HOTPLUG_CPT, 48 [HPD_CRT] = SDE_CRT_HOTPLUG_CPT,
49 [HPD_SDVO_B] = SDE_SDVOB_HOTPLUG_CPT,
49 [HPD_PORT_B] = SDE_PORTB_HOTPLUG_CPT, 50 [HPD_PORT_B] = SDE_PORTB_HOTPLUG_CPT,
50 [HPD_PORT_C] = SDE_PORTC_HOTPLUG_CPT, 51 [HPD_PORT_C] = SDE_PORTC_HOTPLUG_CPT,
51 [HPD_PORT_D] = SDE_PORTD_HOTPLUG_CPT 52 [HPD_PORT_D] = SDE_PORTD_HOTPLUG_CPT
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 97033077d001..5e91fbbedcef 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -3589,7 +3589,9 @@
3589#define SDE_PORTC_HOTPLUG_CPT (1 << 22) 3589#define SDE_PORTC_HOTPLUG_CPT (1 << 22)
3590#define SDE_PORTB_HOTPLUG_CPT (1 << 21) 3590#define SDE_PORTB_HOTPLUG_CPT (1 << 21)
3591#define SDE_CRT_HOTPLUG_CPT (1 << 19) 3591#define SDE_CRT_HOTPLUG_CPT (1 << 19)
3592#define SDE_SDVOB_HOTPLUG_CPT (1 << 18)
3592#define SDE_HOTPLUG_MASK_CPT (SDE_CRT_HOTPLUG_CPT | \ 3593#define SDE_HOTPLUG_MASK_CPT (SDE_CRT_HOTPLUG_CPT | \
3594 SDE_SDVOB_HOTPLUG_CPT | \
3593 SDE_PORTD_HOTPLUG_CPT | \ 3595 SDE_PORTD_HOTPLUG_CPT | \
3594 SDE_PORTC_HOTPLUG_CPT | \ 3596 SDE_PORTC_HOTPLUG_CPT | \
3595 SDE_PORTB_HOTPLUG_CPT) 3597 SDE_PORTB_HOTPLUG_CPT)