git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be180f2
)
don't init USB unconditionally
author
Grazvydas Ignotas
<notasas@gmail.com>
Tue, 27 Dec 2011 15:17:49 +0000
(17:17 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 2 Jul 2016 23:53:08 +0000
(
02:53
+0300)
Since USB init takes time, and only few users will use this feature,
start it only when selected from menu or when the custom 'usbinit'
command is issued.
common/stdio.c
patch
|
blob
|
history
diff --git
a/common/stdio.c
b/common/stdio.c
index
97ff9cf
..
63459fc
100644
(file)
--- a/
common/stdio.c
+++ b/
common/stdio.c
@@
-228,8
+228,11
@@
int stdio_init (void)
drv_system_init ();
serial_stdio_init ();
#ifdef CONFIG_USB_TTY
+/* HACK, we only want it to start when selected from menu */
+#ifndef CONFIG_OMAP3_PANDORA
drv_usbtty_init ();
#endif
+#endif
#ifdef CONFIG_NETCONSOLE
drv_nc_init ();
#endif