[U-Boot] [PATCH 8/8] video: imx25lcdc: add board_video_init() call
dietho at gmx.de
dietho at gmx.de
Thu May 15 16:34:50 CEST 2014
From: Thomas Diener <dietho at gmx.de>
Signed-off-by: Thomas Diener <dietho at gmx.de>
---
drivers/video/imx25lcdc.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/video/imx25lcdc.c b/drivers/video/imx25lcdc.c
index 3b45472..94ef033 100644
--- a/drivers/video/imx25lcdc.c
+++ b/drivers/video/imx25lcdc.c
@@ -23,6 +23,19 @@
#define FB_SYNC_CLK_INV (1<<16) /* pixel clock inverted */
/*
+ * We do not enforce board code to provide empty/unused
+ * functions for this driver and define weak default
+ * functions here.
+ */
+unsigned int __board_video_init (void)
+{
+ return 0;
+}
+
+unsigned int board_video_init (void)
+ __attribute__((weak, alias("__board_video_init")));
+
+/*
* Graphic Device
*/
static GraphicDevice imx25fb;
@@ -117,6 +130,12 @@ void *video_hw_init(void)
writel(readl(&ccm->cgr1) | (1<<29), &ccm->cgr1);
}
+ /*
+ * Initialization of the access to the graphic chipset Retreive base
+ * address of the chipset (see board/RPXClassic/eccx.c)
+ */
+ board_video_init();
+
return pGD;
}
--
1.7.9.5
More information about the U-Boot
mailing list