]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mxc_ipuv3_fb.c: set gd->fb_base
authorHeiko Schocher <hs@denx.de>
Mon, 22 Jul 2019 04:49:05 +0000 (06:49 +0200)
committerAnatolij Gustschin <agust@denx.de>
Tue, 30 Jul 2019 10:55:06 +0000 (12:55 +0200)
set gd->fb_base so it can be shown with bdinfo command.

Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/video/imx/mxc_ipuv3_fb.c

index 29ecac40a29e5c5c28d5403bcbdd427542e49609..cf672156cda3e9926cf151fcce7140c2e28cd685 100644 (file)
@@ -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;
 }