diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-03 23:21:20 +0200 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-09-14 08:43:30 +0200 |
| commit | 920237dde7fb1e41e63ea87e323d8d3fa2ee51b1 (patch) | |
| tree | ea9ec795dcfac3dc25e55e8e428339cb5941859a | |
| parent | b990db9a01769457e39fd34250dbbfbe8ffc0e3e (diff) | |
drm/panel: samsung-s6e88a0-ams452ef01: Use test key helpers
The F0 command pair in this driver is already documented as enabling
and disabling level 2 commands. Replace the raw writes with the shared
level 2 test key helpers.
Assisted-by: LLM
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Acked-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260903-drm-panels-sofef0-v1-2-9e841645beba@kernel.org
| -rw-r--r-- | drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c index bbb86ea86d5e..2178e03e4772 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c @@ -13,6 +13,8 @@ #include <drm/drm_modes.h> #include <drm/drm_panel.h> +#include "panel-samsung-dsi.h" + struct s6e88a0_ams452ef01 { struct drm_panel panel; struct mipi_dsi_device *dsi; @@ -43,7 +45,7 @@ static int s6e88a0_ams452ef01_on(struct s6e88a0_ams452ef01 *ctx) dsi->mode_flags |= MIPI_DSI_MODE_LPM; - mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0x5a, 0x5a); // enable LEVEL2 commands + samsung_dsi_test_key_on_lvl2(&dsi_ctx); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xcc, 0x4c); // set Pixel Clock Divider polarity mipi_dsi_dcs_exit_sleep_mode_multi(&dsi_ctx); @@ -66,7 +68,7 @@ static int s6e88a0_ams452ef01_on(struct s6e88a0_ams452ef01 *ctx) mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xb6, 0x2c, 0x0b); // set default elvss voltage mipi_dsi_dcs_write_seq_multi(&dsi_ctx, MIPI_DCS_WRITE_POWER_SAVE, 0x00); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf7, 0x03); // gamma/aor update - mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xf0, 0xa5, 0xa5); // disable LEVEL2 commands + samsung_dsi_test_key_off_lvl2(&dsi_ctx); mipi_dsi_dcs_set_display_on_multi(&dsi_ctx); |
