From 7191db0835dad09bbb852ef7c95bdddfdf281a1e Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Wed, 31 Oct 2018 15:13:37 -0700 Subject: [PATCH] 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 --- board/freescale/imx8mq_aiy/imx8m_aiy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/freescale/imx8mq_aiy/imx8m_aiy.c b/board/freescale/imx8mq_aiy/imx8m_aiy.c index 0727abd..aeb2cd5 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, -- 1.9.1