Skip to content
Snippets Groups Projects
Commit 832e6141 authored by Stefan Roese's avatar Stefan Roese Committed by Remy Bohmer
Browse files

USB: Add config option to call ehci_hcd_init() again after EHCI reset


This patch adds the config option CONFIG_EHCI_HCD_INIT_AFTER_RESET
to call ehci_hcd_init() again after ehci_reset() is executed. This
is needed for the upcoming VCT EHCI support which needs to re-init
the hcd part again after the EHCI CMD_RESET is executed.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarRemy Bohmer <linux@bohmer.net>
parent 597eb28b
No related branches found
No related tags found
No related merge requests found
......@@ -691,6 +691,11 @@ int usb_lowlevel_init(void)
if (ehci_reset() != 0)
return -1;
#if defined(CONFIG_EHCI_HCD_INIT_AFTER_RESET)
if (ehci_hcd_init() != 0)
return -1;
#endif
/* Set head of reclaim list */
memset(&qh_list, 0, sizeof(qh_list));
qh_list.qh_link = cpu_to_hc32((uint32_t)&qh_list | QH_LINK_TYPE_QH);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment