diff options
Diffstat (limited to 'payloads/libpayload/drivers/usb/dwc2.c')
-rw-r--r-- | payloads/libpayload/drivers/usb/dwc2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/dwc2.c b/payloads/libpayload/drivers/usb/dwc2.c index 71c4967e7e..e14ff83570 100644 --- a/payloads/libpayload/drivers/usb/dwc2.c +++ b/payloads/libpayload/drivers/usb/dwc2.c @@ -253,7 +253,8 @@ dwc2_transfer(endpoint_t *ep, int size, int pid, ep_dir_t dir, memcpy(aligned_buf, data_buf, size); writel(hctsiz.d32, ®->host.hchn[ch_num].hctsizn); - writel((uint32_t)aligned_buf, ®->host.hchn[ch_num].hcdman); + writel((uint32_t)virt_to_bus(aligned_buf), + ®->host.hchn[ch_num].hcdman); writel(hcchar.d32, ®->host.hchn[ch_num].hccharn); ret = wait_for_complete(ep, ch_num); |