projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef42cb
)
drm/i915/icl: Ungate ddi clocks before IO enable
author
Vandita Kulkarni
<vandita.kulkarni@intel.com>
Mon, 25 Mar 2019 11:26:41 +0000
(16:56 +0530)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Wed, 10 Apr 2019 16:06:29 +0000
(09:06 -0700)
IO enable sequencing needs ddi clocks enabled.
These clocks will be gated at a later point in
the enable sequence.
v2: Fix the commit header (Uma)
v3: Remove the redundant read (Ville)
Fixes: 949fc52af19e ("drm/i915/icl: add pll mapping for DSI")
Signed-off-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/1553513202-13863-1-git-send-email-vandita.kulkarni@intel.com
(cherry picked from commit
c5b81a325263a891d5811aabe938c87e03db4c37
)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/icl_dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/icl_dsi.c
b/drivers/gpu/drm/i915/icl_dsi.c
index 83cd8284e807701e9981e3e92f4fda63ad53613f..43b7b80ffa212a53836d4124e4eca94c3c4e7980 100644
(file)
--- a/
drivers/gpu/drm/i915/icl_dsi.c
+++ b/
drivers/gpu/drm/i915/icl_dsi.c
@@
-598,6
+598,12
@@
static void gen11_dsi_map_pll(struct intel_encoder *encoder,
val |= DPCLKA_CFGCR0_DDI_CLK_SEL(pll->info->id, port);
}
I915_WRITE(DPCLKA_CFGCR0_ICL, val);
+
+ for_each_dsi_port(port, intel_dsi->ports) {
+ val &= ~DPCLKA_CFGCR0_DDI_CLK_OFF(port);
+ }
+ I915_WRITE(DPCLKA_CFGCR0_ICL, val);
+
POSTING_READ(DPCLKA_CFGCR0_ICL);
mutex_unlock(&dev_priv->dpll_lock);