projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e362e1
)
drm/msm/mdp5: set rate before enabling clk
author
Rob Clark
<robdclark@gmail.com>
Thu, 20 Nov 2014 22:08:06 +0000
(17:08 -0500)
committer
Rob Clark
<robdclark@gmail.com>
Fri, 21 Nov 2014 13:57:18 +0000
(08:57 -0500)
Set a "safe" rate at first, in order to read out the hw revision. And
then after set the optimal value.
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
index 64de0f9310c328d9f50b8e3dafb07408b03a6c69..adb45419b08d5a7bbda8ce002ddd0354f798db8a 100644
(file)
--- a/
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
+++ b/
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
@@
-323,6
+323,12
@@
struct msm_kms *mdp5_kms_init(struct drm_device *dev)
if (ret)
goto fail;
+ /* we need to set a default rate before enabling. Set a safe
+ * rate first, then figure out hw revision, and then set a
+ * more optimal rate:
+ */
+ clk_set_rate(mdp5_kms->src_clk, 200000000);
+
read_hw_revision(mdp5_kms, &major, &minor);
priv = mdp5_cfg_init(mdp5_kms, major, minor);
if (IS_ERR(priv)) {