libpayload/usb: fix DWC2 driver
A typo introduced in commit bf2c693f89
made the driver not build: DWC_SLEEP_TIME_US instead of
DWC2_SLEEP_TIME_US.
Change-Id: I197b25fd4f568cce7a4bbcee8cc285b25b26afb1
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34131
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
517546aaab
commit
c6b152a976
|
@ -159,14 +159,14 @@ wait_for_complete(endpoint_t *ep, uint32_t ch_num)
|
||||||
hcchar_t hcchar;
|
hcchar_t hcchar;
|
||||||
hctsiz_t hctsiz;
|
hctsiz_t hctsiz;
|
||||||
dwc2_reg_t *reg = DWC2_REG(ep->dev->controller);
|
dwc2_reg_t *reg = DWC2_REG(ep->dev->controller);
|
||||||
int timeout = USB_MAX_PROCESSING_TIME_US / DWC_SLEEP_TIME_US;
|
int timeout = USB_MAX_PROCESSING_TIME_US / DWC2_SLEEP_TIME_US;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: We should take care of up to three times of transfer error
|
* TODO: We should take care of up to three times of transfer error
|
||||||
* retry here, according to the USB 2.0 spec 4.5.2
|
* retry here, according to the USB 2.0 spec 4.5.2
|
||||||
*/
|
*/
|
||||||
do {
|
do {
|
||||||
udelay(DWC_SLEEP_TIME_US);
|
udelay(DWC2_SLEEP_TIME_US);
|
||||||
hcint.d32 = readl(®->host.hchn[ch_num].hcintn);
|
hcint.d32 = readl(®->host.hchn[ch_num].hcintn);
|
||||||
hctsiz.d32 = readl(®->host.hchn[ch_num].hctsizn);
|
hctsiz.d32 = readl(®->host.hchn[ch_num].hctsizn);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue