diff options
author | Imre Deak <imre.deak@intel.com> | 2014-03-04 12:22:57 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-07 16:36:51 -0500 |
commit | 319be8ae8aec7550371ac58f0fd29e9e51207b5b (patch) | |
tree | d1e89f9459d05693c1f3fb128f4cfc3c1ac33839 /drivers/gpu/drm/i915/i915_drv.h | |
parent | a45f4466e4e160e6ce5332895710d3d881a6a51c (diff) |
drm/i915: add port power domains
Parts that poke port specific HW blocks like the encoder HW state
readout or connector hotplug detect code need a way to check whether
required power domains are on or enable/disable these. For this purpose
add a set of power domains that refer to the port HW blocks. Get the
proper port power domains during modeset.
For now when requesting the power domain for a DDI port get it for a 4
lane configuration. This can be optimized later to request only the 2
lane power domain, when proper support is added on the VLV PHY side for
this. Atm, the PHY setup code assumes a 4 lane config in all cases.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9e26103af07a..9387c56647ba 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -114,6 +114,17 @@ enum intel_display_power_domain { | |||
114 | POWER_DOMAIN_TRANSCODER_B, | 114 | POWER_DOMAIN_TRANSCODER_B, |
115 | POWER_DOMAIN_TRANSCODER_C, | 115 | POWER_DOMAIN_TRANSCODER_C, |
116 | POWER_DOMAIN_TRANSCODER_EDP, | 116 | POWER_DOMAIN_TRANSCODER_EDP, |
117 | POWER_DOMAIN_PORT_DDI_A_2_LANES, | ||
118 | POWER_DOMAIN_PORT_DDI_A_4_LANES, | ||
119 | POWER_DOMAIN_PORT_DDI_B_2_LANES, | ||
120 | POWER_DOMAIN_PORT_DDI_B_4_LANES, | ||
121 | POWER_DOMAIN_PORT_DDI_C_2_LANES, | ||
122 | POWER_DOMAIN_PORT_DDI_C_4_LANES, | ||
123 | POWER_DOMAIN_PORT_DDI_D_2_LANES, | ||
124 | POWER_DOMAIN_PORT_DDI_D_4_LANES, | ||
125 | POWER_DOMAIN_PORT_DSI, | ||
126 | POWER_DOMAIN_PORT_CRT, | ||
127 | POWER_DOMAIN_PORT_OTHER, | ||
117 | POWER_DOMAIN_VGA, | 128 | POWER_DOMAIN_VGA, |
118 | POWER_DOMAIN_AUDIO, | 129 | POWER_DOMAIN_AUDIO, |
119 | POWER_DOMAIN_INIT, | 130 | POWER_DOMAIN_INIT, |