[U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

Allen Martin AMartin at nvidia.com
Thu Dec 22 21:32:02 CET 2011


> > >> Can't you just add "usb reset" to preboot env?
> > >
> > > The point is to be able to use USB keyboard to stop autoboot on
> > > systems where USB keyboard is the primary (or only) input device.
> > > This needs to happen before BOOTCOMMAND gets parsed.
> >
> > I think the "preboot" environment variable already *is* run before
> > starting the autoboot timer?
> 
> Yep.
> 

I also had to stick it before console init because console makes decisions about the input device based on what's been registered when it initializes (at least with iomux turned on, I didn't try it without).

Maybe a better fix is to have console reevaluate things when the usb keyboard driver registers itself?  I'm open to suggestions.

-Allen
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the U-Boot mailing list