Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 50f600f

Browse files
committed
drm/panel: ld9040: Use better magic values
I have no idea what the prior magic values mean, and I have no idea what my replacement (extracted from [1]) magic values mean. What I do know, is that these new values result in a much better picture, where the blacks are really black (as you would expect on an AMOLED display) instead of grey-ish. [1]: https://github.com/dorimanx/Dorimanx-SG2-I9100-Kernel/blob/master-jelly-bean/arch/arm/mach-exynos/u1-panel.h v2: Remove spurious new line Signed-off-by: Paul Cercueil <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7dae503 commit 50f600f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/panel/panel-samsung-ld9040.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ static void ld9040_init(struct ld9040 *ctx)
180180
{
181181
ld9040_dcs_write_seq_static(ctx, MCS_USER_SETTING, 0x5a, 0x5a);
182182
ld9040_dcs_write_seq_static(ctx, MCS_PANEL_CONDITION,
183-
0x05, 0x65, 0x96, 0x71, 0x7d, 0x19, 0x3b, 0x0d,
184-
0x19, 0x7e, 0x0d, 0xe2, 0x00, 0x00, 0x7e, 0x7d,
185-
0x07, 0x07, 0x20, 0x20, 0x20, 0x02, 0x02);
183+
0x05, 0x5e, 0x96, 0x6b, 0x7d, 0x0d, 0x3f, 0x00,
184+
0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
185+
0x07, 0x05, 0x1f, 0x1f, 0x1f, 0x00, 0x00);
186186
ld9040_dcs_write_seq_static(ctx, MCS_DISPCTL,
187-
0x02, 0x08, 0x08, 0x10, 0x10);
187+
0x02, 0x06, 0x0a, 0x10, 0x10);
188188
ld9040_dcs_write_seq_static(ctx, MCS_MANPWR, 0x04);
189189
ld9040_dcs_write_seq_static(ctx, MCS_POWER_CTRL,
190190
0x0a, 0x87, 0x25, 0x6a, 0x44, 0x02, 0x88);
191-
ld9040_dcs_write_seq_static(ctx, MCS_ELVSS_ON, 0x0d, 0x00, 0x16);
191+
ld9040_dcs_write_seq_static(ctx, MCS_ELVSS_ON, 0x0f, 0x00, 0x16);
192192
ld9040_dcs_write_seq_static(ctx, MCS_GTCON, 0x09, 0x00, 0x00);
193193
ld9040_brightness_set(ctx);
194194
ld9040_dcs_write_seq_static(ctx, MIPI_DCS_EXIT_SLEEP_MODE);

0 commit comments

Comments
 (0)