]> git.sur5r.net Git - u-boot/blobdiff - common/stdio.c
tools: moveconfig: do not check clean tree and compilers for -H option
[u-boot] / common / stdio.c
index 8311ac768c90d0b0fc0b072215cfa5bd36070e2f..f99cfe7f4f0db6cf560dd0766cba3ab5224322da 100644 (file)
@@ -281,12 +281,26 @@ int stdio_add_devices(void)
        i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 #endif
-#ifdef CONFIG_LCD
+#ifdef CONFIG_DM_VIDEO
+       struct udevice *vdev;
+# ifndef CONFIG_DM_KEYBOARD
+       int ret;
+# endif
+
+       for (ret = uclass_first_device(UCLASS_VIDEO, &vdev);
+            vdev;
+            ret = uclass_next_device(&vdev))
+               ;
+       if (ret)
+               printf("%s: Video device failed (ret=%d)\n", __func__, ret);
+#else
+# if defined(CONFIG_LCD)
        drv_lcd_init ();
-#endif
-#if defined(CONFIG_VIDEO) || defined(CONFIG_CFB_CONSOLE)
+# endif
+# if defined(CONFIG_VIDEO) || defined(CONFIG_CFB_CONSOLE)
        drv_video_init ();
-#endif
+# endif
+#endif /* CONFIG_DM_VIDEO */
 #if defined(CONFIG_KEYBOARD) && !defined(CONFIG_DM_KEYBOARD)
        drv_keyboard_init ();
 #endif