diff options
author | Stefan Roese <sr@denx.de> | 2009-01-21 17:12:10 +0100 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2009-01-28 19:57:31 +0100 |
commit | 832e61418eedfea172bd2fdfd0ea0d199cc70a9d (patch) | |
tree | 86771cd5ccad4a419cbf65f73f3a40fbd9f533bf /drivers/usb | |
parent | 597eb28bd9691266b7b804364cda577cdb51d106 (diff) | |
download | u-boot-imx-832e61418eedfea172bd2fdfd0ea0d199cc70a9d.zip u-boot-imx-832e61418eedfea172bd2fdfd0ea0d199cc70a9d.tar.gz u-boot-imx-832e61418eedfea172bd2fdfd0ea0d199cc70a9d.tar.bz2 |
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: Stefan Roese <sr@denx.de>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/usb_ehci_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/usb_ehci_core.c b/drivers/usb/usb_ehci_core.c index 28962fa..2f38f33 100644 --- a/drivers/usb/usb_ehci_core.c +++ b/drivers/usb/usb_ehci_core.c @@ -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); |