Commit da0cedecaed4044751c71e2fa3bcee96e624bb8b

Authored by Philipp Zabel
Committed by Greg Kroah-Hartman
1 parent 85eacb0626

staging: drm/imx: ipu-dc: force black output during blanking

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 8 additions and 6 deletions Side-by-side Diff

drivers/staging/imx-drm/ipu-v3/ipu-dc.c
... ... @@ -179,19 +179,21 @@
179 179 if (dc->di) {
180 180 dc_link_event(dc, DC_EVT_NL, 2, 3);
181 181 dc_link_event(dc, DC_EVT_EOL, 3, 2);
182   - dc_link_event(dc, DC_EVT_NEW_DATA, 4, 1);
  182 + dc_link_event(dc, DC_EVT_NEW_DATA, 1, 1);
183 183 /* Init template microcode */
184 184 dc_write_tmpl(dc, 2, WROD(0), 0, map, SYNC_WAVE, 8, 5, 1);
185   - dc_write_tmpl(dc, 3, WROD(0), 0, map, SYNC_WAVE, 4, 5, 1);
186   - dc_write_tmpl(dc, 4, WROD(0), 0, map, SYNC_WAVE, 0, 5, 1);
  185 + dc_write_tmpl(dc, 3, WROD(0), 0, map, SYNC_WAVE, 4, 5, 0);
  186 + dc_write_tmpl(dc, 4, WRG, 0, map, NULL_WAVE, 0, 0, 1);
  187 + dc_write_tmpl(dc, 1, WROD(0), 0, map, SYNC_WAVE, 0, 5, 1);
187 188 } else {
188 189 dc_link_event(dc, DC_EVT_NL, 5, 3);
189 190 dc_link_event(dc, DC_EVT_EOL, 6, 2);
190   - dc_link_event(dc, DC_EVT_NEW_DATA, 7, 1);
  191 + dc_link_event(dc, DC_EVT_NEW_DATA, 8, 1);
191 192 /* Init template microcode */
192 193 dc_write_tmpl(dc, 5, WROD(0), 0, map, SYNC_WAVE, 8, 5, 1);
193   - dc_write_tmpl(dc, 6, WROD(0), 0, map, SYNC_WAVE, 4, 5, 1);
194   - dc_write_tmpl(dc, 7, WROD(0), 0, map, SYNC_WAVE, 0, 5, 1);
  194 + dc_write_tmpl(dc, 6, WROD(0), 0, map, SYNC_WAVE, 4, 5, 0);
  195 + dc_write_tmpl(dc, 7, WRG, 0, map, NULL_WAVE, 0, 0, 1);
  196 + dc_write_tmpl(dc, 8, WROD(0), 0, map, SYNC_WAVE, 0, 5, 1);
195 197 }
196 198 }
197 199 dc_link_event(dc, DC_EVT_NF, 0, 0);