bdk: display: reduce display off waiting time

And align oled panel inside vblank.
Assumes display deinit happens before the rest of deinit.
This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 10:02:21 +01:00
1 parent ef84b9804c
commit aecd657358
2 files changed
+9 -11

No files matched your search

+2 -2
View File
@@ -694,8 +694,8 @@ static void _display_panel_and_hw_end(bool no_panel_deinit)
DSI(DSI_WR_DATA) = (MIPI_DCS_SET_DISPLAY_OFF << 8) | MIPI_DSI_DCS_SHORT_WRITE;
// Wait for 5 frames (HOST1X_CH0_SYNC_SYNCPT_9).
// Not here. Wait for 1 frame manually.
usleep(20000);
// Not here. Wait for 1 frame + transmission manually.
usleep((_panel_id == PANEL_SAM_AMS699VC01) ? (15933 + 195) : (16666 + 230));
// Propagate changes to all register buffers and disable host cmd packets during video.
DISPLAY_A(DC_CMD_STATE_ACCESS) = READ_MUX_ACTIVE | WRITE_MUX_ACTIVE;