From cfbfe403c659630e5bfe069b0e885cb9fbc5e8ef Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 22 Dec 2022 12:32:05 +0200 Subject: [PATCH] bdk: di: wait 8ms before setting window for vic --- bdk/display/di.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bdk/display/di.c b/bdk/display/di.c index c4a74a8..d21bd30 100644 --- a/bdk/display/di.c +++ b/bdk/display/di.c @@ -873,8 +873,11 @@ u32 *display_init_framebuffer_pitch() u32 *display_init_framebuffer_pitch_vic() { // This configures the framebuffer @ NYX_FB_ADDRESS with a resolution of 720x1280 (line stride 720). + if (_display_id != PANEL_SAM_AMS699VC01) + usleep(8000); // Wait half frame for PWM to apply. exec_cfg((u32 *)DISPLAY_A_BASE, _di_win_framebuffer_pitch_vic, CFG_SIZE(_di_win_framebuffer_pitch_vic)); - usleep(35000); // Wait 2 frames. No need on Aula. + if (_display_id != PANEL_SAM_AMS699VC01) + usleep(35000); // Wait 2 frames. return (u32 *)DISPLAY_A(_DIREG(DC_WINBUF_START_ADDR)); }