]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
usb: board_usb_init and board_usb_cleanup calls in the fastboot command
authorPaul Kocialkowski <contact@paulk.fr>
Fri, 12 Jun 2015 17:57:00 +0000 (19:57 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:00 +0000 (13:49 +0200)
commitd8bc650536956060d640d8aab8b7b95c09b34088
tree4261643a3aa07990d803bd537ad0dcedd0518805
parent01052b5c3249faa4f0315580279e0a95bdf2a63c
usb: board_usb_init and board_usb_cleanup calls in the fastboot command

Each USB download function command calls board_usb_init before registering the
USB gadget and board_usb_cleanup after de-registering it. On devices currently
using fasboot, musb-new is usually initialized earlier, but some other boards
might need the board_usb_init call to properly initialize musb-new.

This requires adding an argument (the USB controller index) to the fastboot
command, as it is currently done with other USB download gadget functions.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Test HW: Odroid_XU3 (Exynos5422), trats (Exynos4210)
common/cmd_fastboot.c
include/configs/ti_omap5_common.h