[U-Boot] [PATCH v1 2/5] mxc_ipuv3_fb.c: set gd->fb_base

Heiko Schocher hs at denx.de
Mon Jul 22 04:49:05 UTC 2019


set gd->fb_base so it can be shown with bdinfo command.

Signed-off-by: Heiko Schocher <hs at denx.de>
---

 drivers/video/imx/mxc_ipuv3_fb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c
index 29ecac40a2..cf672156cd 100644
--- a/drivers/video/imx/mxc_ipuv3_fb.c
+++ b/drivers/video/imx/mxc_ipuv3_fb.c
@@ -609,6 +609,7 @@ void *video_hw_init(void)
 
 	ret = mxcfb_probe(gpixfmt, gdisp, gmode);
 	debug("Framebuffer at 0x%x\n", (unsigned int)panel.frameAdrs);
+	gd->fb_base = panel.frameAdrs;
 
 	return (void *)&panel;
 }
@@ -665,6 +666,7 @@ static int ipuv3_video_probe(struct udevice *dev)
 	mmu_set_region_dcache_behaviour(fb_start, fb_end - fb_start,
 					DCACHE_WRITEBACK);
 	video_set_flush_dcache(dev, true);
+	gd->fb_base = fb_start;
 
 	return 0;
 }
-- 
2.21.0



More information about the U-Boot mailing list