diff options
author | Deepak S <deepak.s@linux.intel.com> | 2015-01-17 00:35:59 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-27 03:50:44 -0500 |
commit | 095acd5f8739aa8322820d460e617898baf092df (patch) | |
tree | 34d12d8a83660acb2991ee3f1e66f098e2ae88f6 /drivers/gpu/drm/i915/i915_reg.h | |
parent | 707b6e3d3cfaf8e6a3a4f2c381e0b354848771c2 (diff) |
drm/i915: New offset for reading frequencies on CHV.
Use new Sideband offset to read max/min/gaur freq based on the SKU it
is running on. Based on the Number of EU, we read different bits to
identify the max frequencies at which system can run.
v2: reuse mask definitions & INTEL_INFO() to get device info (Ville)
v3: add break in switch conditions (Ville)
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index d9692f947d8f..2dcb1b342cb9 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -605,6 +605,15 @@ enum punit_power_well { | |||
605 | #define PUNIT_FUSE_BUS2 0xf6 /* bits 47:40 */ | 605 | #define PUNIT_FUSE_BUS2 0xf6 /* bits 47:40 */ |
606 | #define PUNIT_FUSE_BUS1 0xf5 /* bits 55:48 */ | 606 | #define PUNIT_FUSE_BUS1 0xf5 /* bits 55:48 */ |
607 | 607 | ||
608 | #define FB_GFX_FMAX_AT_VMAX_FUSE 0x136 | ||
609 | #define FB_GFX_FREQ_FUSE_MASK 0xff | ||
610 | #define FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT 24 | ||
611 | #define FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT 16 | ||
612 | #define FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT 8 | ||
613 | |||
614 | #define FB_GFX_FMIN_AT_VMIN_FUSE 0x137 | ||
615 | #define FB_GFX_FMIN_AT_VMIN_FUSE_SHIFT 8 | ||
616 | |||
608 | #define PUNIT_GPU_STATUS_REG 0xdb | 617 | #define PUNIT_GPU_STATUS_REG 0xdb |
609 | #define PUNIT_GPU_STATUS_MAX_FREQ_SHIFT 16 | 618 | #define PUNIT_GPU_STATUS_MAX_FREQ_SHIFT 16 |
610 | #define PUNIT_GPU_STATUS_MAX_FREQ_MASK 0xff | 619 | #define PUNIT_GPU_STATUS_MAX_FREQ_MASK 0xff |