diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2009-10-21 03:27:01 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-10-23 14:31:26 -0400 |
commit | 4204878179c99d419d392d78d817729992b4c442 (patch) | |
tree | f99427dec4fecef2653497a00bf5b65f7b60d4f4 /drivers/gpu/drm/i915/i915_drv.h | |
parent | fe798b9718bea5c48938fc38fa78ae9503b8de6c (diff) |
drm/i915: Ironlake suspend/resume support
This adds registers save/restore for Ironlake to make suspend work.
Signed-off-by: Guo, Chaohong <chaohong.guo@intel.com>
[zhenyuw: some code re-orgnization, and add more save/restore for
FDI link and transcoder registers, also fix palette register for Ironlake]
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index f6a3587ad065..9c67f0650a2a 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -296,6 +296,12 @@ typedef struct drm_i915_private { | |||
296 | u32 saveVBLANK_A; | 296 | u32 saveVBLANK_A; |
297 | u32 saveVSYNC_A; | 297 | u32 saveVSYNC_A; |
298 | u32 saveBCLRPAT_A; | 298 | u32 saveBCLRPAT_A; |
299 | u32 saveTRANS_HTOTAL_A; | ||
300 | u32 saveTRANS_HBLANK_A; | ||
301 | u32 saveTRANS_HSYNC_A; | ||
302 | u32 saveTRANS_VTOTAL_A; | ||
303 | u32 saveTRANS_VBLANK_A; | ||
304 | u32 saveTRANS_VSYNC_A; | ||
299 | u32 savePIPEASTAT; | 305 | u32 savePIPEASTAT; |
300 | u32 saveDSPASTRIDE; | 306 | u32 saveDSPASTRIDE; |
301 | u32 saveDSPASIZE; | 307 | u32 saveDSPASIZE; |
@@ -307,6 +313,8 @@ typedef struct drm_i915_private { | |||
307 | u32 saveBLC_HIST_CTL; | 313 | u32 saveBLC_HIST_CTL; |
308 | u32 saveBLC_PWM_CTL; | 314 | u32 saveBLC_PWM_CTL; |
309 | u32 saveBLC_PWM_CTL2; | 315 | u32 saveBLC_PWM_CTL2; |
316 | u32 saveBLC_CPU_PWM_CTL; | ||
317 | u32 saveBLC_CPU_PWM_CTL2; | ||
310 | u32 saveFPB0; | 318 | u32 saveFPB0; |
311 | u32 saveFPB1; | 319 | u32 saveFPB1; |
312 | u32 saveDPLL_B; | 320 | u32 saveDPLL_B; |
@@ -318,6 +326,12 @@ typedef struct drm_i915_private { | |||
318 | u32 saveVBLANK_B; | 326 | u32 saveVBLANK_B; |
319 | u32 saveVSYNC_B; | 327 | u32 saveVSYNC_B; |
320 | u32 saveBCLRPAT_B; | 328 | u32 saveBCLRPAT_B; |
329 | u32 saveTRANS_HTOTAL_B; | ||
330 | u32 saveTRANS_HBLANK_B; | ||
331 | u32 saveTRANS_HSYNC_B; | ||
332 | u32 saveTRANS_VTOTAL_B; | ||
333 | u32 saveTRANS_VBLANK_B; | ||
334 | u32 saveTRANS_VSYNC_B; | ||
321 | u32 savePIPEBSTAT; | 335 | u32 savePIPEBSTAT; |
322 | u32 saveDSPBSTRIDE; | 336 | u32 saveDSPBSTRIDE; |
323 | u32 saveDSPBSIZE; | 337 | u32 saveDSPBSIZE; |
@@ -351,6 +365,12 @@ typedef struct drm_i915_private { | |||
351 | u32 saveIER; | 365 | u32 saveIER; |
352 | u32 saveIIR; | 366 | u32 saveIIR; |
353 | u32 saveIMR; | 367 | u32 saveIMR; |
368 | u32 saveDEIER; | ||
369 | u32 saveDEIMR; | ||
370 | u32 saveGTIER; | ||
371 | u32 saveGTIMR; | ||
372 | u32 saveFDI_RXA_IMR; | ||
373 | u32 saveFDI_RXB_IMR; | ||
354 | u32 saveCACHE_MODE_0; | 374 | u32 saveCACHE_MODE_0; |
355 | u32 saveD_STATE; | 375 | u32 saveD_STATE; |
356 | u32 saveDSPCLK_GATE_D; | 376 | u32 saveDSPCLK_GATE_D; |
@@ -384,6 +404,16 @@ typedef struct drm_i915_private { | |||
384 | u32 savePIPEB_DP_LINK_M; | 404 | u32 savePIPEB_DP_LINK_M; |
385 | u32 savePIPEA_DP_LINK_N; | 405 | u32 savePIPEA_DP_LINK_N; |
386 | u32 savePIPEB_DP_LINK_N; | 406 | u32 savePIPEB_DP_LINK_N; |
407 | u32 saveFDI_RXA_CTL; | ||
408 | u32 saveFDI_TXA_CTL; | ||
409 | u32 saveFDI_RXB_CTL; | ||
410 | u32 saveFDI_TXB_CTL; | ||
411 | u32 savePFA_CTL_1; | ||
412 | u32 savePFB_CTL_1; | ||
413 | u32 savePFA_WIN_SZ; | ||
414 | u32 savePFB_WIN_SZ; | ||
415 | u32 savePFA_WIN_POS; | ||
416 | u32 savePFB_WIN_POS; | ||
387 | 417 | ||
388 | struct { | 418 | struct { |
389 | struct drm_mm gtt_space; | 419 | struct drm_mm gtt_space; |