Commit 7191db0835dad09bbb852ef7c95bdddfdf281a1e

Authored by Michael Brooks
Committed by Ji Luo
1 parent 1f27791878

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

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

board/freescale/imx8mq_aiy/imx8m_aiy.c
1 1 /*
2 2 * Copyright 2016 Freescale Semiconductor, Inc.
3   - * Copyright 2017-2018 NXP
  3 + * Copyright 2017-2019 NXP
4 4 *
5 5 * SPDX-License-Identifier: GPL-2.0+
6 6 */
7 7  
... ... @@ -275,7 +275,11 @@
275 275 #define USB_PHY_CTRL2_TXENABLEN0 BIT(8)
276 276  
277 277 static struct dwc3_device dwc3_device_data = {
  278 +#ifdef CONFIG_SPL_BUILD
  279 + .maximum_speed = USB_SPEED_HIGH,
  280 +#else
278 281 .maximum_speed = USB_SPEED_SUPER,
  282 +#endif
279 283 .base = USB1_BASE_ADDR,
280 284 .dr_mode = USB_DR_MODE_PERIPHERAL,
281 285 .index = 0,