diff options
author | Devarsh Thakkar <devarsht@ti.com> | 2024-03-05 18:14:07 +0530 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-03-21 14:26:33 +0000 |
commit | 5b20a8e193a1d6fdd300e78a9a1b114083922dcd (patch) | |
tree | 76c1cf6d21fc4c14bb641e165e2f76f813570837 | |
parent | b373117c135652ca0da805c3d832db10347d4777 (diff) |
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>
-rw-r--r-- | drivers/video/video-uclass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index fdfab2baa8..9895cfff1f 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -324,6 +324,10 @@ bool video_is_active(void) { struct udevice *dev; + if (IS_ENABLED(CONFIG_SPL_VIDEO) && spl_phase() > PHASE_SPL && + CONFIG_IS_ENABLED(BLOBLIST)) + return true; + for (uclass_find_first_device(UCLASS_VIDEO, &dev); dev; uclass_find_next_device(&dev)) { |