diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-05-11 15:44:51 -0400 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-05-13 14:33:31 -0400 |
commit | 7fe6275721c26ba84bd1ce13b2d2ecce382006bf (patch) | |
tree | c6835b8d93422f1df238b8e5e371665c33788f9b /drivers/gpu/drm/i915/i915_reg.h | |
parent | 3861fc607e64aeefa1e480657bd57f269d0e4129 (diff) |
drm/i915: Program BXT_CDCLK_CD2X_PIPE
BXT could change the CD2X divider synchronized with a single pipe.
So assuming the DE PLL frequency doesn't need to be changed, we could
change cdclk without shutting off the pipe (when only a single pipe is
enabled). In the meantime let's configure CDCLK_CTL for non-double
buffered CD2X update, although it shouldn't really matter as long as
the selected pipe is disabled when reprogramming the divider.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1462995892-32416-13-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 54ce0b105956..86fbf723eca7 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -7566,14 +7566,15 @@ enum skl_disp_power_wells { | |||
7566 | #define CDCLK_FREQ_540 (1<<26) | 7566 | #define CDCLK_FREQ_540 (1<<26) |
7567 | #define CDCLK_FREQ_337_308 (2<<26) | 7567 | #define CDCLK_FREQ_337_308 (2<<26) |
7568 | #define CDCLK_FREQ_675_617 (3<<26) | 7568 | #define CDCLK_FREQ_675_617 (3<<26) |
7569 | #define CDCLK_FREQ_DECIMAL_MASK (0x7ff) | ||
7570 | |||
7571 | #define BXT_CDCLK_CD2X_DIV_SEL_MASK (3<<22) | 7569 | #define BXT_CDCLK_CD2X_DIV_SEL_MASK (3<<22) |
7572 | #define BXT_CDCLK_CD2X_DIV_SEL_1 (0<<22) | 7570 | #define BXT_CDCLK_CD2X_DIV_SEL_1 (0<<22) |
7573 | #define BXT_CDCLK_CD2X_DIV_SEL_1_5 (1<<22) | 7571 | #define BXT_CDCLK_CD2X_DIV_SEL_1_5 (1<<22) |
7574 | #define BXT_CDCLK_CD2X_DIV_SEL_2 (2<<22) | 7572 | #define BXT_CDCLK_CD2X_DIV_SEL_2 (2<<22) |
7575 | #define BXT_CDCLK_CD2X_DIV_SEL_4 (3<<22) | 7573 | #define BXT_CDCLK_CD2X_DIV_SEL_4 (3<<22) |
7574 | #define BXT_CDCLK_CD2X_PIPE(pipe) ((pipe)<<20) | ||
7575 | #define BXT_CDCLK_CD2X_PIPE_NONE BXT_CDCLK_CD2X_PIPE(3) | ||
7576 | #define BXT_CDCLK_SSA_PRECHARGE_ENABLE (1<<16) | 7576 | #define BXT_CDCLK_SSA_PRECHARGE_ENABLE (1<<16) |
7577 | #define CDCLK_FREQ_DECIMAL_MASK (0x7ff) | ||
7577 | 7578 | ||
7578 | /* LCPLL_CTL */ | 7579 | /* LCPLL_CTL */ |
7579 | #define LCPLL1_CTL _MMIO(0x46010) | 7580 | #define LCPLL1_CTL _MMIO(0x46010) |