Skip to contentSkip to conversation

ls1028a: video: Add a empty video hw init for LS1028A

PATCH New Wen He 2 participants 2 messages May 16, 2019

lore
Share & tools
lore

Wen He

author
#0 lore raw

PATCH 1/1 ls1028a: video: Add a empty video hw init for LS1028A

The video driver causes a link failure when config VIDEO built-in,

drivers/video/cfb_console.c:2022: undefined reference to `video_hw_init'

Adding a empty video hw init to slove the build issue, now the board does not support display anything on U-boot.

---
 board/freescale/ls1028a/ls1028a.c | 6 ++++++
 1 file changed, 6 insertions(+)
board/freescale/ls1028a/ls1028a.c +6 -0
index e5de4eb70c..ece91660bf 100644
@@ -20,6 +20,7 @@
 #endif
 #include <fsl_immap.h>
 #include <netdev.h>
+#include <video_fb.h>
 
 #include <fdtdec.h>
 #include <miiphy.h>
@@ -229,3 +230,8 @@ int checkboard(void)
 	return 0;
 }
 #endif
+
+void *video_hw_init(void)
+{
+	return NULL;
+}
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 ls1028a: video: Add a empty video hw init for LS1028A

Quoted 26 lines · Wen He

The video driver causes a link failure when config VIDEO built-in,

drivers/video/cfb_console.c:2022: undefined reference to `video_hw_init'

Adding a empty video hw init to slove the build issue, now the board does not support display anything on U-boot.

---
 board/freescale/ls1028a/ls1028a.c | 6 ++++++
 1 file changed, 6 insertions(+)
board/freescale/ls1028a/ls1028a.c +1 -0
index e5de4eb70c..ece91660bf 100644
@@ -20,6 +20,7 @@
 #endif
 #include <fsl_immap.h>
 #include <netdev.h>
+#include <video_fb.h>
 
 #include <fdtdec.h>
 #include <miiphy.h>

board/freescale/ls1028a/ls1028a.c int checkboard(void)

Quoted 9 lines
board/freescale/ls1028a/ls1028a.c +5 -1
@@ -229,3 +230,8 @@ int checkboard(void)
        return 0;
 }
 #endif
+
+void *video_hw_init(void)
+{
+       return NULL;
+}
--

Please stop adding non-DM driver support to any new platforms. We should start using DM driver. In this case, use DM_VIDEO.

Regards,
Bin