mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 18:41:48 +00:00
drm/i915/icl: Disable DSI IO power
This patch configures mode of combo phy as DDI and disable IO power for DDI ports used by DSI. Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/b68d767717a3b86c26042d0b16abb3943756fcc4.1540900289.git.jani.nikula@intel.com
This commit is contained in:
parent
019cec36f3
commit
0f0fe8497d
@ -873,6 +873,26 @@ static void gen11_dsi_disable_port(struct intel_encoder *encoder)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void gen11_dsi_disable_io_power(struct intel_encoder *encoder)
|
||||||
|
{
|
||||||
|
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
|
||||||
|
struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
|
||||||
|
enum port port;
|
||||||
|
u32 tmp;
|
||||||
|
|
||||||
|
intel_display_power_put(dev_priv, POWER_DOMAIN_PORT_DDI_A_IO);
|
||||||
|
|
||||||
|
if (intel_dsi->dual_link)
|
||||||
|
intel_display_power_put(dev_priv, POWER_DOMAIN_PORT_DDI_B_IO);
|
||||||
|
|
||||||
|
/* set mode to DDI */
|
||||||
|
for_each_dsi_port(port, intel_dsi->ports) {
|
||||||
|
tmp = I915_READ(ICL_DSI_IO_MODECTL(port));
|
||||||
|
tmp &= ~COMBO_PHY_MODE_DSI;
|
||||||
|
I915_WRITE(ICL_DSI_IO_MODECTL(port), tmp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void __attribute__((unused)) gen11_dsi_disable(
|
static void __attribute__((unused)) gen11_dsi_disable(
|
||||||
struct intel_encoder *encoder,
|
struct intel_encoder *encoder,
|
||||||
const struct intel_crtc_state *old_crtc_state,
|
const struct intel_crtc_state *old_crtc_state,
|
||||||
@ -895,4 +915,7 @@ static void __attribute__((unused)) gen11_dsi_disable(
|
|||||||
|
|
||||||
/* step3: disable port */
|
/* step3: disable port */
|
||||||
gen11_dsi_disable_port(encoder);
|
gen11_dsi_disable_port(encoder);
|
||||||
|
|
||||||
|
/* step4: disable IO power */
|
||||||
|
gen11_dsi_disable_io_power(encoder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user