diff mbox series

[35/36] bdinfo: dm: Update fb_base when using driver model

Message ID 20200504231732.98778-27-sjg@chromium.org
State Superseded
Headers show
Series Tidy up the 'bd' command. | expand

Commit Message

Simon Glass May 4, 2020, 11:17 p.m. UTC
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 at chromium.org>
---

 drivers/video/video-uclass.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bin Meng May 6, 2020, 8:10 a.m. UTC | #1
On Tue, May 5, 2020 at 7:25 AM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> ---
>
>  drivers/video/video-uclass.c | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
diff mbox series

Patch

diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 3d658e61d7..e7229cefaf 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -82,6 +82,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);