diff options
| author | Andrzej Hajda <a.hajda@samsung.com> | 2014-04-08 06:58:05 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-06-05 10:46:39 -0400 |
| commit | dbd751eed83614b7300a0331ae3ab2e70cc1e73c (patch) | |
| tree | 148bcf5b9a9165f2e775a25fb1347ffa361b92f5 | |
| parent | 9c911962f9d145fd6f8cb3d93ae58486cef14d53 (diff) | |
drm/panel: ld9040: add power control sequence
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>
| -rw-r--r-- | drivers/gpu/drm/panel/panel-ld9040.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index 1f1f8371a199..db1601fdbe29 100644 --- a/drivers/gpu/drm/panel/panel-ld9040.c +++ b/drivers/gpu/drm/panel/panel-ld9040.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #define MCS_ELVSS_ON 0xb1 | 27 | #define MCS_ELVSS_ON 0xb1 |
| 28 | #define MCS_USER_SETTING 0xf0 | 28 | #define MCS_USER_SETTING 0xf0 |
| 29 | #define MCS_DISPCTL 0xf2 | 29 | #define MCS_DISPCTL 0xf2 |
| 30 | #define MCS_POWER_CTRL 0xf4 | ||
| 30 | #define MCS_GTCON 0xf7 | 31 | #define MCS_GTCON 0xf7 |
| 31 | #define MCS_PANEL_CONDITION 0xf8 | 32 | #define MCS_PANEL_CONDITION 0xf8 |
| 32 | #define MCS_GAMMA_SET1 0xf9 | 33 | #define MCS_GAMMA_SET1 0xf9 |
| @@ -182,6 +183,8 @@ static void ld9040_init(struct ld9040 *ctx) | |||
| 182 | ld9040_dcs_write_seq_static(ctx, MCS_DISPCTL, | 183 | ld9040_dcs_write_seq_static(ctx, MCS_DISPCTL, |
| 183 | 0x02, 0x08, 0x08, 0x10, 0x10); | 184 | 0x02, 0x08, 0x08, 0x10, 0x10); |
| 184 | ld9040_dcs_write_seq_static(ctx, MCS_MANPWR, 0x04); | 185 | ld9040_dcs_write_seq_static(ctx, MCS_MANPWR, 0x04); |
| 186 | ld9040_dcs_write_seq_static(ctx, MCS_POWER_CTRL, | ||
| 187 | 0x0a, 0x87, 0x25, 0x6a, 0x44, 0x02, 0x88); | ||
| 185 | ld9040_dcs_write_seq_static(ctx, MCS_ELVSS_ON, 0x0d, 0x00, 0x16); | 188 | ld9040_dcs_write_seq_static(ctx, MCS_ELVSS_ON, 0x0d, 0x00, 0x16); |
| 186 | ld9040_dcs_write_seq_static(ctx, MCS_GTCON, 0x09, 0x00, 0x00); | 189 | ld9040_dcs_write_seq_static(ctx, MCS_GTCON, 0x09, 0x00, 0x00); |
| 187 | ld9040_brightness_set(ctx); | 190 | ld9040_brightness_set(ctx); |
