Undo f695681
(r30433). USB hardware must be initialized first.
This fixes flash/ MMC access on the Ondios when booting from ROM. Add a comment what to pay attention for in the target specific usb_init_device().
This commit is contained in:
parent
dd61978070
commit
449167b7a9
1 changed files with 5 additions and 2 deletions
|
@ -659,6 +659,11 @@ void usb_acknowledge(long id)
|
|||
|
||||
void usb_init(void)
|
||||
{
|
||||
/* Do required hardware inits first. For software USB the driver has
|
||||
* to make sure this won't trigger a transfer completion before the
|
||||
* queue and thread are created. */
|
||||
usb_init_device();
|
||||
|
||||
#ifdef USB_FULL_INIT
|
||||
usb_enable(false);
|
||||
|
||||
|
@ -672,8 +677,6 @@ void usb_init(void)
|
|||
tick_add_task(usb_tick);
|
||||
#endif
|
||||
#endif /* USB_FULL_INIT */
|
||||
|
||||
usb_init_device();
|
||||
}
|
||||
|
||||
void usb_wait_for_disconnect(struct event_queue *q)
|
||||
|
|
Loading…
Reference in a new issue