Commit 106dc4c
committed
drivers: display: mcux_elcdif: rework frame completion logic
Rework the frame completion logic for the eLCDIF. Per the documentation
of the eLCDIF frame completion interrupt, the interrupt will be asserted
at every vertical blanking interval. In order to be sure the eLCDIF has
streamed a full frame we need to:
- wait for the start of a vertical blanking interval
- wait for the next vertical blanking interval, as that indicates a full
frame was rendered
In order to do this, wait for two frame completion interrupts from the
eLCDIF every time we reload the framebuffer. The first interrupt signals
that our new frame is now being displayed, the second interrupt signals
it is fully rendered and the buffer is no longer needed by the eLCDIF.
Fixes #80590
Signed-off-by: Daniel DeGrasse <[email protected]>1 parent 022c8ee commit 106dc4c
2 files changed
+17
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 57 | | |
70 | 58 | | |
71 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| |||
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 319 | + | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
338 | | - | |
| 339 | + | |
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| |||
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | 356 | | |
359 | 357 | | |
360 | 358 | | |
| |||
0 commit comments