summaryrefslogtreecommitdiff
path: root/board/freescale/imx8mq_aiy
diff options
context:
space:
mode:
authorMichael Brooks <michaelbrooks@google.com>2018-10-31 15:13:37 -0700
committerJi Luo <ji.luo@nxp.com>2019-04-11 14:01:28 +0800
commita967f1b1b2fd8bb7266583416ec6d46f724a1b9c (patch)
tree40e3ba4aa67d5141bc2ffe835dbc6c353e34eaba /board/freescale/imx8mq_aiy
parentf9dcf75bcbf137ada0ed4f23566be68eead70f81 (diff)
MA-14520 AIY: Limit USB to High Speed
* There is an enumeration problem when using superspeed. * This doesn't fix it with all hubs, but can enable fastboot to work on some 3.0 hosts. Change-Id: If4a603126b945bd8f84c3d6e975e1185530eb193
Diffstat (limited to 'board/freescale/imx8mq_aiy')
-rw-r--r--board/freescale/imx8mq_aiy/imx8m_aiy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/freescale/imx8mq_aiy/imx8m_aiy.c b/board/freescale/imx8mq_aiy/imx8m_aiy.c
index 0727abd2c7..aeb2cd508d 100644
--- a/board/freescale/imx8mq_aiy/imx8m_aiy.c
+++ b/board/freescale/imx8mq_aiy/imx8m_aiy.c
@@ -1,6 +1,6 @@
/*
* Copyright 2016 Freescale Semiconductor, Inc.
- * Copyright 2017-2018 NXP
+ * Copyright 2017-2019 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -275,7 +275,11 @@ 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,