[U-Boot] [PATCH v2 1/1] USB: EHCI: Initialize multiple USB controllers at once

Stephen Warren swarren at wwwdotorg.org
Tue Aug 14 18:18:51 CEST 2012


On 08/13/2012 10:22 PM, Jim Lin wrote:
> Marek Vasut wrote at Sunday, August 12, 2012 7:47 AM:
>> Dear Jim Lin,
>>
>>> Add support for command line "usb reset" or "usb start" to initialize 
>>> , "usb stop" to stop multiple USB controllers at once.
>>> Other command like "usb tree" also supports multiple controllers.
...
>>> +#ifdef CONFIG_USB_KEYBOARD
>>> +       drv_usb_kbd_init();
>>
>> Will the keyboard driver survive this?
>
> Yes I have tried it after doing the following.
> 1. Define CONFIG_USB_KEYBOARD, CONFIG_SYS_USB_EVENT_POLL, CONFIG_USB_MULTI, and CONFIG_USB_MAX_CONTROLLER_COUNT 3
>  in config header file like seaboard.h to compile
> 2. Install USB keyboard
> 3. Run "usb reset" in u-boot serial console
> 4. Run "coninfo" to see usbkbd appeared
> 5. Run "setenv stdin usbkbd"
> 6. Typing u-boot console command on USB keyboard

I've also tested this on Springbank, which has a built-in USB keyboard
and an external USB port via a separate host controller, which I
connected to an Ethernet device, and it appears to all work very well
for me.

So,

Tested-by: Stephen Warren <swarren at wwwdotorg.org>



More information about the U-Boot mailing list