]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/tbs2910.h
tbs2910: only enable vga output for stdout/stderr when hdmi detected
[karo-tx-uboot.git] / include / configs / tbs2910.h
index 42abc5ba6f75bbe4210f049e1062ab596e536585..c12a81ebf46ecf8271ab4abb1a6abca490d974f5 100644 (file)
 #ifdef CONFIG_USB_KEYBOARD
 #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
 #define CONFIG_SYS_STDIO_DEREGISTER
-#define CONFIG_PREBOOT "if hdmidet; then usb start; fi"
+#define CONFIG_PREBOOT \
+       "if hdmidet; then " \
+               "usb start; " \
+               "run set_con_usb_hdmi; " \
+       "else " \
+               "run set_con_serial; " \
+       "fi;"
 #endif /* CONFIG_USB_KEYBOARD */
 #endif /* CONFIG_CMD_USB      */
 
                        "bootm 0x10800000 0x10d00000\0" \
        "console=ttymxc0\0" \
        "fan=gpio set 92\0" \
-       "stdin=serial,usbkbd\0" \
-       "stdout=serial,vga\0" \
-       "stderr=serial,vga\0"
+       "set_con_serial=setenv stdin serial; " \
+                       "setenv stdout serial; " \
+                       "setenv stderr serial;\0" \
+       "set_con_usb_hdmi=setenv stdin serial,usbkbd; " \
+                       "setenv stdout serial,vga; " \
+                       "setenv stderr serial,vga;\0"
 
 #define CONFIG_BOOTCOMMAND \
        "mmc rescan; " \