Skip to contentSkip to conversation

imx: nitrogen6x: fix USB host initialization

PATCH New Gary Bisson 2 participants 2 messages Jan 12, 2017 – Jan 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: nitrogen6x: fix USB host initialization

USB Host scanning has been broken since v2016.05.

This is due to all the USB changes that happened between v2016.03 and v2016.05, especially:
2ef117fe4f usb: Remove 200 ms delay in usb_hub_port_connect_change() a22a264ec3 usb: Change power-on / scanning timeout handling

So we need to increase the init delay to 2s using the usb_pgood_delay environment variable.

---
 include/configs/nitrogen6x.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/nitrogen6x.h +2 -0
index c22fed70a4..72ff5c1eab 100644
@@ -137,6 +137,7 @@
 	"fdt_addr=0x18000000\0" \
 	"boot_fdt=try\0" \
 	"ip_dyn=yes\0" \
+	"usb_pgood_delay=2000\0" \
 	"mmcdevs=0 1\0" \
 	"mmcpart=1\0" \
 	"mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
@@ -206,6 +207,7 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"bootdevs=" CONFIG_DRIVE_TYPES "\0" \
 	"umsdevs=" CONFIG_UMSDEVS "\0" \
+	"usb_pgood_delay=2000\0" \
 	"console=ttymxc1\0" \
 	"clearenv=if sf probe || sf probe || sf probe 1 ; then " \
 		"sf erase 0xc0000 0x2000 && " \
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 imx: nitrogen6x: fix USB host initialization

Quoted 29 lines · Gary Bisson

USB Host scanning has been broken since v2016.05.

This is due to all the USB changes that happened between v2016.03 and v2016.05, especially:
2ef117fe4f usb: Remove 200 ms delay in usb_hub_port_connect_change() a22a264ec3 usb: Change power-on / scanning timeout handling

So we need to increase the init delay to 2s using the usb_pgood_delay environment variable.

---
 include/configs/nitrogen6x.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/nitrogen6x.h +1 -0
index c22fed70a4..72ff5c1eab 100644
@@ -137,6 +137,7 @@
 	"fdt_addr=0x18000000\0" \
 	"boot_fdt=try\0" \
 	"ip_dyn=yes\0" \
+	"usb_pgood_delay=2000\0" \
 	"mmcdevs=0 1\0" \
 	"mmcpart=1\0" \
 	"mmcroot=/dev/mmcblk0p2 rootwait rw\0" \

include/configs/nitrogen6x.h line 213

Quoted 7 lines
include/configs/nitrogen6x.h +1 -0
@@ -206,6 +207,7 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"bootdevs=" CONFIG_DRIVE_TYPES "\0" \
 	"umsdevs=" CONFIG_UMSDEVS "\0" \
+	"usb_pgood_delay=2000\0" \
 	"console=ttymxc1\0" \
 	"clearenv=if sf probe || sf probe || sf probe 1 ; then " \
 		"sf erase 0xc0000 0x2000 && " \

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================