mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
video: Assume video to be active if SPL is passing video hand-off
If SPL is passing video handoff structure to U-boot then it is safe to assume that SPL has already enabled video and that's why it is passing video handoff structure to U-boot so that U-boot can preserve the framebuffer. Signed-off-by: Devarsh Thakkar <devarsht@ti.com> Reviewed-by: Nikhil M Jain <n-jain1@ti.com>
This commit is contained in:
parent
86281e4705
commit
4ac7ffb60e
@ -404,6 +404,10 @@ bool video_is_active(void)
|
||||
{
|
||||
struct udevice *dev;
|
||||
|
||||
/* Assume video to be active if SPL passed video hand-off to U-boot */
|
||||
if (IS_ENABLED(CONFIG_SPL_VIDEO_HANDOFF) && spl_phase() > PHASE_SPL)
|
||||
return true;
|
||||
|
||||
for (uclass_find_first_device(UCLASS_VIDEO, &dev);
|
||||
dev;
|
||||
uclass_find_next_device(&dev)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user