From 564fbbeac93231bacf6b64d3da6595d1a6f86be1 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 26 Oct 2015 19:48:25 +0100 Subject: 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 Original-Commit-Id: 3dda8ad5ffc36593d8b8fd6664a7f9b4816f0f93 Original-Change-Id: I4a065de0f4045a01bef1dc9fbb2e0578b5508518 Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://chromium-review.googlesource.com/308791 Original-Commit-Ready: Patrick Georgi Original-Tested-by: Patrick Georgi Original-Reviewed-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/12228 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- payloads/libpayload/drivers/udc/dwc2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'payloads/libpayload/drivers') 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<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; -- cgit v1.2.3