shithub: riscv

Download patch

ref: 20a1d2268d69a0bbe66d0f21999649133878377c
parent: 2657773699da675d436705002230f2d25142f570
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jul 26 15:48:21 EDT 2023

imx8: usb: enable host IN auto retry

--- a/sys/src/9/imx8/usbxhciimx.c
+++ b/sys/src/9/imx8/usbxhciimx.c
@@ -51,6 +51,9 @@
 			DISSCRAMBLE = 1<<3,
 			DSBLCLKGTNG = 1<<0,
 
+		GUCTL	= 0xC12C/4,
+			USBHSTINAUTORETRY = 1<<14,
+
 		GFLADJ	= 0xC630/4,
 			GFLADJ_30MHZ_SDBND_SEL = 1<<7,
 			GFLADJ_30MHZ_SHIFT = 0,
@@ -59,6 +62,7 @@
 	};
 	reg[GCTL] &= ~(PWRDNSCALE_MASK | DISSCRAMBLE | DSBLCLKGTNG | PRTCAPDIR_MASK);
 	reg[GCTL] |= 2<<PWRDNSCALE_SHIFT | 1<<PRTCAPDIR_SHIFT;
+	reg[GUCTL] |= USBHSTINAUTORETRY;
 	reg[GFLADJ] = (reg[GFLADJ] & ~GFLADJ_30MHZ_MASK) | 0x20<<GFLADJ_30MHZ_SHIFT | GFLADJ_30MHZ_SDBND_SEL;
 }