summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongWook Shin <yongwook.shin@samsung.com>2023-12-04 15:09:51 +0900
committerPetri Gynther <pgynther@google.com>2024-01-09 19:38:46 -0800
commit7c7950abe975e54beb994750ae36dd7495108906 (patch)
tree76f076fb81da2f6d8d9f77804b4789bcdfa1dafa
parent696ce843bc7f703acbabce99472f9f8bd79e07df (diff)
downloaddisplay-7c7950abe975e54beb994750ae36dd7495108906.tar.gz
drm: samsung: boost charge pump up
Synopsys guides the setting for charge pump bias 200% to fix shmoo issue. Bug: 309067706 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I1e20a85de67f8a7fb564f8ef13ef0c407ac007fb
-rw-r--r--samsung/cal_9865/dp_reg.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/samsung/cal_9865/dp_reg.c b/samsung/cal_9865/dp_reg.c
index 3d9c5b0..4ef7049 100644
--- a/samsung/cal_9865/dp_reg.c
+++ b/samsung/cal_9865/dp_reg.c
@@ -380,6 +380,17 @@ static void dpphy_reg_cr_write_mask(u16 addr, u16 data, u16 mask)
cal_log_debug(0, "[CR][%04X][%04X]", addr, old);
}
+/*
+ * Boost charge pump bias current
+ * [10:8] mpllb_ctr_cp_int_ref
+ * [2:0] mplla_ctr_cp_int_ref
+ */
+static void dpphy_reg_enable_cp_current_boost(void)
+{
+ dpphy_reg_cr_write_mask(0x5c, 0x400, 0x700);
+ dpphy_reg_cr_write_mask(0x5c, 0x4, 0x7);
+}
+
/* fix abnormal lane2 signal */
static void dpphy_reg_usb_tune_reset(enum plug_orientation orient)
{
@@ -935,6 +946,10 @@ static void dpphy_reg_init(struct dp_hw_config *hw_config, bool reconfig)
/* Assert DP Alt-mode Disable ACK */
dpphy_reg_set_config19_dpalt_disable_ack(1);
+ /* CP(Charge Pump) Bias Boosting X2 */
+ if (!reconfig)
+ dpphy_reg_enable_cp_current_boost();
+
/* Set Master PLL-B for DP as Link_BW */
dpphy_reg_set_mpllb(hw_config, reconfig);
cal_log_debug(0, "set MPLLB as link_bw.\n");