imx: nitrogen6x: fix USB host initialization
authorGary Bisson <gary.bisson@boundarydevices.com>
Thu, 12 Jan 2017 11:18:44 +0000 (12:18 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 27 Jan 2017 09:38:26 +0000 (10:38 +0100)
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.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
include/configs/nitrogen6x.h

index ca55063f77c096397341226e54b6c56cc72472ae..efa5065d9bae83cc8a14ec2fc7e4296634da0560 100644 (file)
        "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" \
 #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 && " \