include: configs: am43xx_evm: add 'usb stop' in usbboot env
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 10 Aug 2015 11:22:58 +0000 (16:52 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 28 Aug 2015 16:33:20 +0000 (12:33 -0400)
The usbboot environment variable has 'usb start' command but
doesn't have the corresponding 'usb stop' command. This breaks
usb peripheral mode if tried after 'run usbboot' fails to load
the images in usb host mode.

Fix it here by adding 'usb stop' command in usbboot env.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/am43xx_evm.h

index d148169959f2341c9daac4654ac078815114fa1b..15fa3e3fecea49903413194991722c139fbdf608 100644 (file)
                                "bootz ${loadaddr} - ${fdtaddr}; " \
                        "fi;" \
                "fi\0" \
+               "fi;" \
+               "usb stop ${usbdev};\0" \
        "findfdt="\
                "if test $board_name = AM43EPOS; then " \
                        "setenv fdtfile am43x-epos-evm.dtb; fi; " \