Skip to content

Commit 2498667

Browse files
committed
drivers: video: Clear framebuffer when reserving
This fixes an issue where in some situations, the fixed framebuffer is re-used (understandably), and with a warm reset is shown again briefly during video initialization, until U-Boot renders something new. This can be observed on the Pinebook Pro (RK3399, eDP), once the reset issue of the panels are worked around correctly. Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
1 parent 05aa651 commit 2498667

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/video/video-uclass.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ static ulong alloc_fb(struct udevice *dev, ulong *addrp)
113113
size = alloc_fb_(plat->align, plat->size, addrp);
114114
plat->base = *addrp;
115115

116+
/* Clear the reserved famebuffer; some data might be sticking in from warm reset. */
117+
memset(plat->base, 0x00, size);
118+
116119
return size;
117120
}
118121

0 commit comments

Comments
 (0)