diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-03-28 16:39:26 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-28 17:55:10 -0400 |
commit | fb046853ad66e64c96a2598f3fdd4cf5fbabc0d1 (patch) | |
tree | 52d8e21001ce9d4a2d422fa154cf8e2054c1f40f /drivers/gpu/drm/i915/i915_reg.h | |
parent | 57f350b6722f9569f407872f6ead56e2d221d98a (diff) |
drm/i915: add ValleyView clock gating init
Set required clock gating and chicken bits on VLV.
v2: set PIXEL_SUBSPAN_COLLECT_OPT_DISABLE too (Ben)
move function below ivb version to pretend to be consistent (Ben)
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 65f5849f2ad6..58914b4f5357 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -633,6 +633,9 @@ | |||
633 | #define ECO_GATING_CX_ONLY (1<<3) | 633 | #define ECO_GATING_CX_ONLY (1<<3) |
634 | #define ECO_FLIP_DONE (1<<0) | 634 | #define ECO_FLIP_DONE (1<<0) |
635 | 635 | ||
636 | #define CACHE_MODE_1 0x7004 /* IVB+ */ | ||
637 | #define PIXEL_SUBSPAN_COLLECT_OPT_DISABLE (1<<6) | ||
638 | |||
636 | /* GEN6 interrupt control */ | 639 | /* GEN6 interrupt control */ |
637 | #define GEN6_RENDER_HWSTAM 0x2098 | 640 | #define GEN6_RENDER_HWSTAM 0x2098 |
638 | #define GEN6_RENDER_IMR 0x20a8 | 641 | #define GEN6_RENDER_IMR 0x20a8 |
@@ -3184,6 +3187,20 @@ | |||
3184 | #define DISP_TILE_SURFACE_SWIZZLING (1<<13) | 3187 | #define DISP_TILE_SURFACE_SWIZZLING (1<<13) |
3185 | #define DISP_FBC_WM_DIS (1<<15) | 3188 | #define DISP_FBC_WM_DIS (1<<15) |
3186 | 3189 | ||
3190 | /* GEN7 chicken */ | ||
3191 | #define GEN7_COMMON_SLICE_CHICKEN1 0x7010 | ||
3192 | # define GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC ((1<<10) | (1<<26)) | ||
3193 | |||
3194 | #define GEN7_L3CNTLREG1 0xB01C | ||
3195 | #define GEN7_WA_FOR_GEN7_L3_CONTROL 0x3C4FFF8C | ||
3196 | |||
3197 | #define GEN7_L3_CHICKEN_MODE_REGISTER 0xB030 | ||
3198 | #define GEN7_WA_L3_CHICKEN_MODE 0x20000000 | ||
3199 | |||
3200 | /* WaCatErrorRejectionIssue */ | ||
3201 | #define GEN7_SQ_CHICKEN_MBCUNIT_CONFIG 0x9030 | ||
3202 | #define GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB (1<<11) | ||
3203 | |||
3187 | /* PCH */ | 3204 | /* PCH */ |
3188 | 3205 | ||
3189 | /* south display engine interrupt */ | 3206 | /* south display engine interrupt */ |
@@ -3787,6 +3804,7 @@ | |||
3787 | #define GT_FIFO_NUM_RESERVED_ENTRIES 20 | 3804 | #define GT_FIFO_NUM_RESERVED_ENTRIES 20 |
3788 | 3805 | ||
3789 | #define GEN6_UCGCTL2 0x9404 | 3806 | #define GEN6_UCGCTL2 0x9404 |
3807 | # define GEN6_RCZUNIT_CLOCK_GATE_DISABLE (1 << 13) | ||
3790 | # define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12) | 3808 | # define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12) |
3791 | # define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11) | 3809 | # define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11) |
3792 | 3810 | ||