diff options
author | Ye Li <ye.li@nxp.com> | 2020-05-08 07:56:59 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-04-06 18:03:45 +0800 |
commit | d8fe6817d53aaf5e2dbef7432a27a536ecbb38e7 (patch) | |
tree | 820a322187535d5807464df3d2963105194e10f6 /cmd | |
parent | 9be6761bccd008de16191aed325004bd982f770f (diff) |
MLK-23964-1 video: Add video link framework
The video link framework bases a port-endpoint gragh in DTB to
connect the video components in uclass like: video, display, bridge,
and panel.
Using the port-endpoint gragh, we manage multiple video link and
user can select one of them for splash screen.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit d6e6b1293f89b8a26033ac2f82151985f70e4036)
(cherry picked from commit 0257e77fdae8faf7a00b3bc9f5c91f11de65f205)
(cherry picked from commit 3d8e964596129d54d71ea104a1d0a51f76bbc92d)
(cherry picked from commit 7cc8e2625df97f6b373d695397990fc5e2c69ca0)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bmp.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -20,6 +20,7 @@ #include <mapmem.h> #include <splash.h> #include <video.h> +#include <video_link.h> #include <asm/byteorder.h> static int bmp_info (ulong addr); @@ -255,8 +256,15 @@ int bmp_display(ulong addr, int x, int y) addr = map_to_sysmem(bmp); #ifdef CONFIG_DM_VIDEO +#ifdef CONFIG_VIDEO_LINK + dev = video_link_get_video_device(); + if (!dev) { + ret = -ENODEV; + } else { +#else ret = uclass_first_device_err(UCLASS_VIDEO, &dev); if (!ret) { +#endif bool align = false; if (CONFIG_IS_ENABLED(SPLASH_SCREEN_ALIGN) || |