sunxi-u-boot: Don't try to load logo when there is no video output. This removes error displayed on serial console when trying to load image

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
This commit is contained in:
Igor Pecovnik 2019-06-27 22:03:10 +02:00
parent ed10182100
commit 90ad4e43a2
No known key found for this signature in database
GPG key ID: 93D6889F9F0E78D5
3 changed files with 24 additions and 15 deletions

View file

@ -51,12 +51,15 @@ index 02d7be0849..cbdea20d08 100644
/* Ethernet support */
#ifdef CONFIG_SUNXI_EMAC
#define CONFIG_PHY_ADDR 1
@@ -444,7 +454,7 @@ extern int soft_i2c_gpio_scl;
#ifdef CONFIG_USB_KEYBOARD
@@ -442,6 +442,11 @@ extern int soft_i2c_gpio_scl;
#define CONSOLE_STDIN_SETTINGS \
- "preboot=usb start\0" \
+ "preboot=run loadsplash; usb start\0" \
"preboot=usb start\0" \
"stdin=serial,usbkbd\0"
+#if defined CONFIG_VIDEO || defined CONFIG_DM_VIDEO
+#define CONSOLE_STDIN_SETTINGS \
+ "preboot=run loadsplash; usb start\0" \
+ "stdin=serial,usbkbd\0"
+#endif
#else
#define CONSOLE_STDIN_SETTINGS \
"stdin=serial\0"