[U-Boot] [v1] ls1028a: video: Add a empty video hw init for LS1028A
Bin Meng
bmeng.cn at gmail.com
Thu May 16 12:04:09 UTC 2019
On Thu, May 16, 2019 at 11:57 AM Wen He <wen.he_1 at nxp.com> wrote:
>
> 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.
>
> Signed-off-by: Wen He <wen.he_1 at nxp.com>
> ---
> board/freescale/ls1028a/ls1028a.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
> index e5de4eb70c..ece91660bf 100644
> --- a/board/freescale/ls1028a/ls1028a.c
> +++ b/board/freescale/ls1028a/ls1028a.c
> @@ -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;
> +}
> --
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
More information about the U-Boot
mailing list