summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/usb_kbd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 2472d25d4a..960a70a43d 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -487,6 +487,11 @@ int drv_usb_kbd_init(void)
if (error)
return error;
+#ifdef CONFIG_CONSOLE_MUX
+ error = iomux_doenv(stdin, stdinname);
+ if (error)
+ return error;
+#else
/* Check if this is the standard input device. */
if (strcmp(stdinname, DEVNAME))
return 1;
@@ -498,6 +503,7 @@ int drv_usb_kbd_init(void)
error = console_assign(stdin, DEVNAME);
if (error)
return error;
+#endif
return 1;
}
OpenPOWER on IntegriCloud