summaryrefslogtreecommitdiff
path: root/drivers/video/mxc_ipuv3_fb.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-05-13 07:31:00 -0400
committerTom Rini <trini@ti.com>2014-05-13 07:31:00 -0400
commite7d4a88e69459547a46906dbe021ccc83c614361 (patch)
tree5237f1c81bf8b8d5e93e5f9570f02937ca50d3a4 /drivers/video/mxc_ipuv3_fb.c
parent69c0d323e325f48f3124fb0696de3d68fcbcae8e (diff)
parent1161f98db687a1cb263cbacdc7eb548a0354218d (diff)
downloadu-boot-imx-e7d4a88e69459547a46906dbe021ccc83c614361.zip
u-boot-imx-e7d4a88e69459547a46906dbe021ccc83c614361.tar.gz
u-boot-imx-e7d4a88e69459547a46906dbe021ccc83c614361.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'drivers/video/mxc_ipuv3_fb.c')
-rw-r--r--drivers/video/mxc_ipuv3_fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index 3e21fb2..f75d770 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <asm/errno.h>
+#include <asm/global_data.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/fb.h>
@@ -24,6 +25,8 @@
#include "mxcfb.h"
#include "ipu_regs.h"
+DECLARE_GLOBAL_DATA_PTR;
+
static int mxcfb_map_video_memory(struct fb_info *fbi);
static int mxcfb_unmap_video_memory(struct fb_info *fbi);
@@ -415,6 +418,8 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
fbi->screen_size = fbi->fix.smem_len;
+ gd->fb_base = fbi->fix.smem_start;
+
/* Clear the screen */
memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);