[U-Boot,v2,3/3] video: mxsfb: set gd->fb_base
diff mbox series

Message ID 20191021133304.14001-3-sebastien.szymanski@armadeus.com
State Accepted
Commit cde421cfc8f378fef9bd9b90e20c9633fe63d709
Delegated to: Stefano Babic
Headers show
Series
  • [U-Boot,v2,1/3] imx6ul: opos6ul: migrate to DM_ETH
Related show

Commit Message

Sébastien Szymanski Oct. 21, 2019, 1:33 p.m. UTC
Set gd->fb_base so it can be shown with bdinfo command.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
---

Changes for v3:
 - use plat->base instead of fb_start

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

Comments

Peng Fan Oct. 22, 2019, 3 a.m. UTC | #1
> Subject: [PATCH v2 3/3] video: mxsfb: set gd->fb_base
> 
> Set gd->fb_base so it can be shown with bdinfo command.
> 
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> ---
> 
> Changes for v3:
>  - use plat->base instead of fb_start
> 
>  drivers/video/mxsfb.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index
> 6922a130c6..c52981053e 100644
> --- a/drivers/video/mxsfb.c
> +++ b/drivers/video/mxsfb.c
> @@ -367,6 +367,7 @@ static int mxs_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 = plat->base;
> 
>  	return ret;

Reviewed-by: Peng Fan <peng.fan@nxp.com>

>  }
> --
> 2.21.0
Stefano Babic Nov. 4, 2019, 8:53 a.m. UTC | #2
> Set gd->fb_base so it can be shown with bdinfo command.
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Patch
diff mbox series

diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 6922a130c6..c52981053e 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -367,6 +367,7 @@  static int mxs_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 = plat->base;
 
 	return ret;
 }