board: ls1028a: Add an empty video hw init function
PATCH v2 1/1 board: ls1028a: Add an empty video hw init function
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 an 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
@@ -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
PATCH v2 1/1 board: ls1028a: Add an empty video hw init function
Quoted 5 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'
Quoted 8 lines
Adding an empty video hw init to slove the build issue, now the board does not support display anything on U-boot.
Signed-off-by Wen He <[email protected]>--- board/freescale/ls1028a/ls1028a.c | 6 ++++++ 1 file changed, 6 insertions(+)
I should have commented in the v2 patch here. Sorry for the duplication.
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
Quoted 28 lines
-----Original Message-----
From: Bin Meng <[email protected]>
Sent: 2019年5月16日 20:15
To: Wen He <[email protected]>; Simon Glass <[email protected]>; Tom Rini <[email protected]>
Cc: Prabhakar Kushwaha <[email protected]>; Jagdish Gediya <[email protected]>; u-boot at lists.denx.de
Subject: [EXT] Re: [U-Boot] [v2] board: ls1028a: Add an empty video hw init functionCaution: EXT Email
Quoted 5 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'Quoted 8 lines
Adding an empty video hw init to slove the build issue, now the board does not support display anything on U-boot.
Signed-off-by Wen He <[email protected]>--- board/freescale/ls1028a/ls1028a.c | 6 ++++++ 1 file changed, 6 insertions(+)
Quoted 4 lines
I should have commented in the v2 patch here. Sorry for the duplication.
Please stop adding non-DM driver support to any new platforms. We should start using DM driver. In this case, use
DM_VIDEO.
Thanks for the comments.
Understand, I will send next version for the feature.
Best Regards,
Wen
Quoted 3 lines
Regards,
Bin