summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-05-26 10:38:58 +0200
committerAnatolij Gustschin <agust@denx.de>2010-06-14 12:29:34 +0200
commitf0a921518b7a016f0a9141933b0d766306394eff (patch)
treea0a4fc7d912e3b7942626581259126e480d3f83d /drivers/video
parente2bee9e3c0f4bd363207ce5e496cef2134f67d28 (diff)
downloadu-boot-imx-f0a921518b7a016f0a9141933b0d766306394eff.zip
u-boot-imx-f0a921518b7a016f0a9141933b0d766306394eff.tar.gz
u-boot-imx-f0a921518b7a016f0a9141933b0d766306394eff.tar.bz2
video: sm501.c: add weak default functions
For boards using sm501/sm502 on PCI bus some driver functions normaly defined in the board code are not needed and empty. Provide weak default functions for them and do not enforce board code to define empty functions. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/sm501.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/video/sm501.c b/drivers/video/sm501.c
index f55bf3c..6a1e010 100644
--- a/drivers/video/sm501.c
+++ b/drivers/video/sm501.c
@@ -95,6 +95,34 @@ static struct pci_device_id sm501_pci_tbl[] = {
};
#endif
+/*
+ * 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")));
+
+unsigned int __board_video_get_fb (void)
+{
+ return 0;
+}
+
+unsigned int board_video_get_fb (void)
+ __attribute__((weak, alias("__board_video_get_fb")));
+
+void __board_validate_screen (unsigned int base)
+{
+}
+
+void board_validate_screen (unsigned int base)
+ __attribute__((weak, alias("__board_validate_screen")));
+
/*-----------------------------------------------------------------------------
* video_hw_init --
*-----------------------------------------------------------------------------