diff options
author | Patrick Georgi <pgeorgi@google.com> | 2019-07-08 09:47:02 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-07-09 13:05:53 +0000 |
commit | c6b152a976e02b1693a2f8239b11675e80acf541 (patch) | |
tree | ad40e23c6b34f4c60646f052346194c4daa97aa6 | |
parent | 517546aaabbbcea0a8a89a249bb85a6e732a1cbc (diff) | |
download | coreboot-c6b152a976e02b1693a2f8239b11675e80acf541.tar.xz |
libpayload/usb: fix DWC2 driver
A typo introduced in commit bf2c693f893ab6f9458f1a4840c2a9cbbd4bb9f2
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>
-rw-r--r-- | payloads/libpayload/drivers/usb/dwc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/usb/dwc2.c b/payloads/libpayload/drivers/usb/dwc2.c index 06c54e1030..963ae84762 100644 --- a/payloads/libpayload/drivers/usb/dwc2.c +++ b/payloads/libpayload/drivers/usb/dwc2.c @@ -159,14 +159,14 @@ wait_for_complete(endpoint_t *ep, uint32_t ch_num) hcchar_t hcchar; hctsiz_t hctsiz; 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 * retry here, according to the USB 2.0 spec 4.5.2 */ do { - udelay(DWC_SLEEP_TIME_US); + udelay(DWC2_SLEEP_TIME_US); hcint.d32 = readl(®->host.hchn[ch_num].hcintn); hctsiz.d32 = readl(®->host.hchn[ch_num].hctsizn); |