summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 23:17:01 +0300
committerTom Rini <trini@konsulko.com>2020-06-25 20:24:13 +0300
commitaef43ea0606deefc97ed085b16618f18a911cdb5 (patch)
tree80d7ed49d9b698e956889ae95afccf036b1d00a9 /drivers/video
parentbda8909fcc813cd5d4175287f53237911c96e316 (diff)
downloadu-boot-aef43ea0606deefc97ed085b16618f18a911cdb5.tar.xz
bdinfo: dm: Update fb_base when using driver model
Update this value with the address of a video device so that it shows with the 'bd' command. It would be better to obtain the address from the uclass by looking in struct video_uc_platdata for each device. We can move over to that once DM_VIDEO migration is complete. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/video-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index bf396d1091..1f2874554a 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -84,6 +84,7 @@ int video_reserve(ulong *addrp)
__func__, size, *addrp, dev->name);
}
gd->video_bottom = *addrp;
+ gd->fb_base = *addrp;
debug("Video frame buffers from %lx to %lx\n", gd->video_bottom,
gd->video_top);