summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-08 07:56:59 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 18:03:45 +0800
commitd8fe6817d53aaf5e2dbef7432a27a536ecbb38e7 (patch)
tree820a322187535d5807464df3d2963105194e10f6 /cmd
parent9be6761bccd008de16191aed325004bd982f770f (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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/bmp.c b/cmd/bmp.c
index 071ba90b43..986a843958 100644
--- a/cmd/bmp.c
+++ b/cmd/bmp.c
@@ -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) ||