drm/panel: ld9040: add power control sequence
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 8 Apr 2014 10:58:05 +0000 (12:58 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 14:46:39 +0000 (16:46 +0200)
Some ld9040 panels do not start without providing power control sequence
during initialization. The patch fixes the driver by providing such
sequence for all panels.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-ld9040.c

index 1f1f8371a199c172ed2bb4331864a07cef1ef60b..db1601fdbe2946f581b0ec108057f94f647d1d10 100644 (file)
@@ -27,6 +27,7 @@
 #define MCS_ELVSS_ON           0xb1
 #define MCS_USER_SETTING       0xf0
 #define MCS_DISPCTL            0xf2
+#define MCS_POWER_CTRL         0xf4
 #define MCS_GTCON              0xf7
 #define MCS_PANEL_CONDITION    0xf8
 #define MCS_GAMMA_SET1         0xf9
@@ -182,6 +183,8 @@ static void ld9040_init(struct ld9040 *ctx)
        ld9040_dcs_write_seq_static(ctx, MCS_DISPCTL,
                0x02, 0x08, 0x08, 0x10, 0x10);
        ld9040_dcs_write_seq_static(ctx, MCS_MANPWR, 0x04);
+       ld9040_dcs_write_seq_static(ctx, MCS_POWER_CTRL,
+               0x0a, 0x87, 0x25, 0x6a, 0x44, 0x02, 0x88);
        ld9040_dcs_write_seq_static(ctx, MCS_ELVSS_ON, 0x0d, 0x00, 0x16);
        ld9040_dcs_write_seq_static(ctx, MCS_GTCON, 0x09, 0x00, 0x00);
        ld9040_brightness_set(ctx);