diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2016-12-02 03:23:49 -0500 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2016-12-02 09:38:56 -0500 |
commit | cc3f90f0633c5f08044ba898e3fbf942d2e26cb3 (patch) | |
tree | 1d1595cc66cb59d8d4ea00a917f356be018166f7 /drivers/gpu/drm/i915/intel_runtime_pm.c | |
parent | 8bf41b7298b3b20de3f4a4e70ab58042648f963e (diff) |
drm/i915/glk: Reuse broxton code for geminilake
Geminilake is mostly backwards compatible with broxton, so change most
of the IS_BROXTON() checks to IS_GEN9_LP(). Differences between the
platforms will be implemented in follow-up patches.
v2: Don't reuse broxton's path in intel_update_max_cdclk().
Don't set plane count as in broxton.
v3: Rebase
v4: Include the check intel_bios_is_port_hpd_inverted().
Commit message.
v5: Leave i915_dmc_info() out; glk's csr version != bxt's. (Rodrigo)
v6: Rebase.
v7: Convert a few mode IS_BROXTON() occurances in pps, ddi, dsi and pll
code. (Rodrigo)
v8: Squash a couple of DDI patches with more conversions. (Rodrigo)
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480667037-11215-2-git-send-email-ander.conselvan.de.oliveira@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 356c662ad453..66ab1c8afaf2 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -530,7 +530,7 @@ static u32 gen9_dc_mask(struct drm_i915_private *dev_priv) | |||
530 | u32 mask; | 530 | u32 mask; |
531 | 531 | ||
532 | mask = DC_STATE_EN_UPTO_DC5; | 532 | mask = DC_STATE_EN_UPTO_DC5; |
533 | if (IS_BROXTON(dev_priv)) | 533 | if (IS_GEN9_LP(dev_priv)) |
534 | mask |= DC_STATE_EN_DC9; | 534 | mask |= DC_STATE_EN_DC9; |
535 | else | 535 | else |
536 | mask |= DC_STATE_EN_UPTO_DC6; | 536 | mask |= DC_STATE_EN_UPTO_DC6; |
@@ -911,7 +911,7 @@ static void gen9_dc_off_power_well_enable(struct drm_i915_private *dev_priv, | |||
911 | 911 | ||
912 | gen9_assert_dbuf_enabled(dev_priv); | 912 | gen9_assert_dbuf_enabled(dev_priv); |
913 | 913 | ||
914 | if (IS_BROXTON(dev_priv)) | 914 | if (IS_GEN9_LP(dev_priv)) |
915 | bxt_verify_ddi_phy_power_wells(dev_priv); | 915 | bxt_verify_ddi_phy_power_wells(dev_priv); |
916 | } | 916 | } |
917 | 917 | ||
@@ -2170,7 +2170,7 @@ static uint32_t get_allowed_dc_mask(const struct drm_i915_private *dev_priv, | |||
2170 | if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv)) { | 2170 | if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv)) { |
2171 | max_dc = 2; | 2171 | max_dc = 2; |
2172 | mask = 0; | 2172 | mask = 0; |
2173 | } else if (IS_BROXTON(dev_priv)) { | 2173 | } else if (IS_GEN9_LP(dev_priv)) { |
2174 | max_dc = 1; | 2174 | max_dc = 1; |
2175 | /* | 2175 | /* |
2176 | * DC9 has a separate HW flow from the rest of the DC states, | 2176 | * DC9 has a separate HW flow from the rest of the DC states, |