summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-08-16 19:43:27 -0700
committerYe Li <ye.li@nxp.com>2018-08-16 21:22:12 -0700
commit3ad2087a127753b0580549f20a4f583284232936 (patch)
tree72b68f0b917ffff2d29758736e6ee1fed688df8f /board
parent76c9db3ccc8c6e8f719172254c4f9bbdbd12db23 (diff)
MLK-19249-1 imx8mq_evk/arm2: Force DWC3 gadget to high speed
Since the u-boot gadget class drivers don't support super speed, if we set DWC3 gadget driver to super speed, the device mode will meet problem when using USB3.0 cable. So force the DWC3 gadget driver to high speed for both SPL and regular u-boot. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/imx8mq_arm2/imx8mq_arm2.c2
-rw-r--r--board/freescale/imx8mq_evk/imx8mq_evk.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/board/freescale/imx8mq_arm2/imx8mq_arm2.c b/board/freescale/imx8mq_arm2/imx8mq_arm2.c
index 9c0c216b47..c50d6235cb 100644
--- a/board/freescale/imx8mq_arm2/imx8mq_arm2.c
+++ b/board/freescale/imx8mq_arm2/imx8mq_arm2.c
@@ -230,7 +230,7 @@ int board_phy_config(struct phy_device *phydev)
#define USB_PHY_CTRL2_TXENABLEN0 BIT(8)
static struct dwc3_device dwc3_device_data = {
- .maximum_speed = USB_SPEED_SUPER,
+ .maximum_speed = USB_SPEED_HIGH,
.base = USB1_BASE_ADDR,
.dr_mode = USB_DR_MODE_PERIPHERAL,
.index = 0,
diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c
index 010fb3ad85..e545456260 100644
--- a/board/freescale/imx8mq_evk/imx8mq_evk.c
+++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
@@ -170,11 +170,7 @@ int board_phy_config(struct phy_device *phydev)
#define USB_PHY_CTRL2_TXENABLEN0 BIT(8)
static struct dwc3_device dwc3_device_data = {
-#ifdef CONFIG_SPL_BUILD
.maximum_speed = USB_SPEED_HIGH,
-#else
- .maximum_speed = USB_SPEED_SUPER,
-#endif
.base = USB1_BASE_ADDR,
.dr_mode = USB_DR_MODE_PERIPHERAL,
.index = 0,