platform: msm_shared: update PLL configuration for 8996
Update the PLL_LPF_CAP values to latest recommended settings.
This fixes any PLL locking issues.
Change-Id: I9654048760050390d0fdc05c90484d9a2172b7af
diff --git a/platform/msm_shared/include/mipi_dsi_autopll_thulium.h b/platform/msm_shared/include/mipi_dsi_autopll_thulium.h
index 9bf6c37..bac4776 100644
--- a/platform/msm_shared/include/mipi_dsi_autopll_thulium.h
+++ b/platform/msm_shared/include/mipi_dsi_autopll_thulium.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -125,7 +125,7 @@
uint32_t pll_lpf_res1; /* 3, reg: 0x0504, bit 0 - 3 */
uint32_t pll_lpf_cap1; /* 11, reg: 0x0500, bit 0 - 3 */
- uint32_t pll_lpf_cap2; /* 14, reg: 0x0500, bit 4 - 7 */
+ uint32_t pll_lpf_cap2; /* 1, reg: 0x0500, bit 4 - 7 */
uint32_t pll_c3ctrl; /* 2, reg: 0x04c4 */
uint32_t pll_r3ctrl; /* 1, reg: 0x04c4 */
};
diff --git a/platform/msm_shared/mipi_dsi_autopll_thulium.c b/platform/msm_shared/mipi_dsi_autopll_thulium.c
index ffb1310..706a5ce 100644
--- a/platform/msm_shared/mipi_dsi_autopll_thulium.c
+++ b/platform/msm_shared/mipi_dsi_autopll_thulium.c
@@ -77,7 +77,7 @@
pdb->in.pll_icpcset_m = 0; /* 0, reg: 0x04f8, bit 3 - 5 */
pdb->in.pll_lpf_res1 = 3; /* 3, reg: 0x0504, bit 0 - 3 */
pdb->in.pll_lpf_cap1 = 11; /* 11, reg: 0x0500, bit 0 - 3 */
- pdb->in.pll_lpf_cap2 = 14; /* 14, reg: 0x0500, bit 4 - 7 */
+ pdb->in.pll_lpf_cap2 = 1; /* 1, reg: 0x0500, bit 4 - 7 */
pdb->in.pll_iptat_trim = 7;
pdb->in.pll_c3ctrl = 2; /* 2 */
pdb->in.pll_r3ctrl = 1; /* 1 */
@@ -163,7 +163,7 @@
pdb->out.pll_kvco_count = cnt;
pdb->out.pll_misc1 = 16;
- pdb->out.pll_resetsm_cntrl = 0;
+ pdb->out.pll_resetsm_cntrl = 48;
pdb->out.pll_resetsm_cntrl2 = pdb->in.bandgap_timer << 3;
pdb->out.pll_resetsm_cntrl5 = pdb->in.pll_wakeup_timer;
pdb->out.pll_kvco_code = 0;