summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNikhil M Jain <[email protected]>2023-07-18 14:27:30 +0530
committerTom Rini <[email protected]>2023-07-21 15:32:12 -0400
commitccd21ee50e41305ec3d35d5dc2b40277102cfd85 (patch)
tree2b0fd6a0ed52995f94e5dd93ef82450c22066a67 /drivers
parent12fdacea5a6608a9b77a3437e692b9e2ff5c807c (diff)
include: video: Reserve video using blob
Add method to reserve video framebuffer information using blob, received from previous stage. Signed-off-by: Nikhil M Jain <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/video-uclass.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 95e874b770b..435dab1f195 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -194,6 +194,17 @@ int video_fill_part(struct udevice *dev, int xstart, int ystart, int xend,
return 0;
}
+int video_reserve_from_bloblist(struct video_handoff *ho)
+{
+ gd->video_bottom = ho->fb;
+ gd->fb_base = ho->fb;
+ gd->video_top = ho->fb + ho->size;
+ debug("Reserving %luk for video using blob at: %08x\n",
+ ((unsigned long)ho->size) >> 10, (u32)ho->fb);
+
+ return 0;
+}
+
int video_fill(struct udevice *dev, u32 colour)
{
struct video_priv *priv = dev_get_uclass_priv(dev);