summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShiyong Li <shiyongli@google.com>2023-04-03 21:22:54 +0000
committerChris Lu <luchris@google.com>2023-04-12 22:16:47 +0000
commit3373c1b898c22fa41641d3aa2c11a25a685af5c4 (patch)
tree5000f580ca2746bea378ba60ea3a773b102ba90d
parent2bc82b741c391c54425eb17e8b2c32582c614a5d (diff)
downloaddisplay-3373c1b898c22fa41641d3aa2c11a25a685af5c4.tar.gz
Bug: 274187749 Test: check AOD flicker Change-Id: I95ee814a8e6a0f80f83c967fd76f8e69beb99783 Signed-off-by: Shiyong Li <shiyongli@google.com>
-rw-r--r--samsung/panel/panel-samsung-s6e3hc4.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/samsung/panel/panel-samsung-s6e3hc4.c b/samsung/panel/panel-samsung-s6e3hc4.c
index 68f718d..7d93c44 100644
--- a/samsung/panel/panel-samsung-s6e3hc4.c
+++ b/samsung/panel/panel-samsung-s6e3hc4.c
@@ -959,6 +959,9 @@ static const struct exynos_dsi_cmd s6e3hc4_init_cmds[] = {
EXYNOS_DSI_CMD_SEQ(0x35),
EXYNOS_DSI_CMD0(unlock_cmd_f0),
+ /* AOD SAP settings */
+ EXYNOS_DSI_CMD_SEQ(0xB0, 0x00, 0x04, 0xF6),
+ EXYNOS_DSI_CMD_SEQ(0xF6, 0x5A),
/* Enable SP */
EXYNOS_DSI_CMD_SEQ_REV(PANEL_REV_LT(PANEL_REV_EVT1_1), 0xB0, 0x00, 0x58, 0x69),
EXYNOS_DSI_CMD_SEQ_REV(PANEL_REV_LT(PANEL_REV_EVT1_1), 0x69, 0x01),
@@ -1492,6 +1495,12 @@ static void s6e3hc4_panel_init(struct exynos_panel *ctx)
struct dentry *csroot = ctx->debugfs_cmdset_entry;
struct s6e3hc4_panel *spanel = to_spanel(ctx);
+ EXYNOS_DCS_BUF_ADD_SET(ctx, unlock_cmd_f0);
+ /* AOD SAP settings */
+ EXYNOS_DCS_BUF_ADD(ctx, 0xB0, 0x00, 0x04, 0xF6);
+ EXYNOS_DCS_BUF_ADD(ctx, 0xF6, 0x5A);
+ EXYNOS_DCS_BUF_ADD_SET_AND_FLUSH(ctx, lock_cmd_f0);
+
exynos_panel_debugfs_create_cmdset(ctx, csroot, &s6e3hc4_init_cmd_set, "init");
debugfs_create_bool("force_changeable_te", 0644, ctx->debugfs_entry,
&spanel->force_changeable_te);