From 85933d2b819cd4f55809d5bca371032457267f26 Mon Sep 17 00:00:00 2001
From: Troy Kisky <troy.kisky@boundarydevices.com>
Date: Tue, 1 Sep 2015 18:30:35 -0700
Subject: [PATCH] mxc_ipuv3_fb: add board_video_enable callback

---
 drivers/video/mxc_ipuv3_fb.c | 9 ++++++++-
 drivers/video/mxcfb.h        | 2 ++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index 3b5965a6260..2aeb2c1517a 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -603,10 +603,17 @@ void ipuv3_fb_shutdown(void)
 	g_dp_in_use = 0;
 }
 
+static void __board_video_enable(void)
+{
+}
+
+void board_video_enable(void)
+	__attribute__((weak, alias("__board_video_enable")));
+
 void *ipuv3_fb_init2(void)
 {
 	mxcfb_probe(gpixfmt, gdisp, gmode);
-
+	board_video_enable();
 	debug("Framebuffer at 0x%x\n", (unsigned int)panel.frameAdrs);
 	return (void *)&panel;
 }
diff --git a/drivers/video/mxcfb.h b/drivers/video/mxcfb.h
index 0dc38861938..47c93c6af18 100644
--- a/drivers/video/mxcfb.h
+++ b/drivers/video/mxcfb.h
@@ -48,4 +48,6 @@ struct mxcfb_gamma {
 	int slopek[16];
 };
 
+void board_video_enable(void);
+
 #endif
-- 
GitLab