diff options
author | linpeter <linpeter@google.com> | 2022-04-01 19:05:04 +0800 |
---|---|---|
committer | linpeter <linpeter@google.com> | 2022-04-13 13:33:33 +0800 |
commit | 1d0e943e5bea7a28ae24b77080ab411679324b8e (patch) | |
tree | f8f7483784286eca463212fddf3ff64300e016cf | |
parent | 34c99f5191724f1156cdd134b7fccc74daec75b9 (diff) | |
download | display-1d0e943e5bea7a28ae24b77080ab411679324b8e.tar.gz |
s6e3hc4: add 0x51 into lp settings
The lp will be black screen without 0x51 command. Added the 0x51 command
as a temporary solution into lp setting.
Bug: 227817972
Test: check the AOD from OFF
Signed-off-by: linpeter <linpeter@google.com>
Change-Id: I706bfcca5323b6e3ac919190a22f71300b449af3
-rw-r--r-- | samsung/panel/panel-samsung-s6e3hc4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samsung/panel/panel-samsung-s6e3hc4.c b/samsung/panel/panel-samsung-s6e3hc4.c index 16c7c87..2b2da42 100644 --- a/samsung/panel/panel-samsung-s6e3hc4.c +++ b/samsung/panel/panel-samsung-s6e3hc4.c @@ -171,6 +171,7 @@ static const struct exynos_dsi_cmd s6e3hc4_lp_low_cmds[] = { /* AOD low Mode, 10 nit */ EXYNOS_DSI_CMD_SEQ(0xB0, 0x00, 0x52, 0x94), EXYNOS_DSI_CMD_SEQ(0x94, 0x01, 0x07, 0x98, 0x02), + EXYNOS_DSI_CMD_SEQ(0x51, 0x00, 0x01), EXYNOS_DSI_CMD(lock_cmd_f0, 34), EXYNOS_DSI_CMD0(display_on), }; @@ -182,6 +183,7 @@ static const struct exynos_dsi_cmd s6e3hc4_lp_high_cmds[] = { /* AOD high Mode, 50 nit */ EXYNOS_DSI_CMD_SEQ(0xB0, 0x00, 0x52, 0x94), EXYNOS_DSI_CMD_SEQ(0x94, 0x00, 0x07, 0x98, 0x02), + EXYNOS_DSI_CMD_SEQ(0x51, 0x00, 0x01), EXYNOS_DSI_CMD(lock_cmd_f0, 34), EXYNOS_DSI_CMD0(display_on), }; @@ -758,6 +760,9 @@ static void s6e3hc4_set_nolp_mode(struct exynos_panel *ctx, u32 vrefresh = drm_mode_vrefresh(&pmode->mode); u32 delay_us = mult_frac(1000, 1020, vrefresh); + /* clear the brightness level */ + EXYNOS_DCS_WRITE_SEQ(ctx, 0x51, 0x00, 0x00); + EXYNOS_DCS_WRITE_TABLE(ctx, display_off); /* AOD low mode setting off */ EXYNOS_DCS_BUF_ADD_SET(ctx, unlock_cmd_f0); |