diff options
author | Ye Li <ye.li@nxp.com> | 2020-05-08 07:56:59 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-05-11 03:22:40 -0700 |
commit | ff58ce2115d82dabea5f2e6e2a1e820f6d0e5ff3 (patch) | |
tree | d65f0f22b6f74afdf1177dd3a381080d8a7c150d /cmd | |
parent | 81d99bb4ee22c61fe0c33509cd673b01c9bbe2c8 (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)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bmp.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include <mapmem.h> #include <splash.h> #include <video.h> +#include <video_link.h> #include <asm/byteorder.h> static int bmp_info (ulong addr); @@ -252,8 +253,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) || |