summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2015-10-26 19:48:25 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-10-29 21:06:38 +0100
commit564fbbeac93231bacf6b64d3da6595d1a6f86be1 (patch)
tree74a145267a061d155d6283368ea02c99288b5eb9
parent919d9ba633786f06963b65ec74bec1ba017f20c8 (diff)
downloadcoreboot-564fbbeac93231bacf6b64d3da6595d1a6f86be1.tar.xz
libpayload: Fix building dwc2 UDC driver
Change Ie54699162 changed a structure's name and field names and we didn't notice. Adapt. BUG=none BRANCH=none TEST=building with UDC_DWC2 works Change-Id: I592ebc29b2a08a23e6dbc9d2186807cbbbbca330 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 3dda8ad5ffc36593d8b8fd6664a7f9b4816f0f93 Original-Change-Id: I4a065de0f4045a01bef1dc9fbb2e0578b5508518 Original-Signed-off-by: Patrick Georgi <pgeorgi@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/308791 Original-Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Original-Tested-by: Patrick Georgi <pgeorgi@chromium.org> Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/12228 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r--payloads/libpayload/drivers/udc/dwc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/drivers/udc/dwc2.c b/payloads/libpayload/drivers/udc/dwc2.c
index ff5ea3f86d..1d40b82dcb 100644
--- a/payloads/libpayload/drivers/udc/dwc2.c
+++ b/payloads/libpayload/drivers/udc/dwc2.c
@@ -317,14 +317,14 @@ static int find_tx_fifo(struct usbdev_ctrl *this, uint32_t mps)
dwc2_pdata_t *p = DWC2_PDATA(this);
uint32_t fifo_index = 0;
uint32_t fifo_size = UINT_MAX;
- gnptxfsiz_t gnptxfsiz;
+ gtxfsiz_t gtxfsiz;
int i, val;
for (i = 1; i < MAX_EPS_CHANNELS - 1; i++) {
if (p->fifo_map & (1<<i))
continue;
- gnptxfsiz.d32 = readl(&p->regs->core.dptxfsiz_dieptxf[i]);
- val = gnptxfsiz.nptxfdep * 4;
+ gtxfsiz.d32 = readl(&p->regs->core.dptxfsiz_dieptxf[i]);
+ val = gtxfsiz.txfdep * 4;
if (val < mps)
continue;