]> git.sur5r.net Git - u-boot/commit
ARM: AM57xx: AM43xx: Fix USB host
authorRoger Quadros <rogerq@ti.com>
Mon, 23 May 2016 14:37:48 +0000 (17:37 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 3 Jun 2016 01:42:15 +0000 (21:42 -0400)
commit55efadde7edee407a14c7cbf418c82b30a94faa8
treea38451c45955d802965fbde63de5a6126ae27b4f
parent383f4a0ec78ee92c89a7ce135acbde47c84c6201
ARM: AM57xx: AM43xx: Fix USB host

CONFIG_USB_XHCI_OMAP can be set for host mode without setting
CONFIG_USB_DWC3 which is meant for gadget mode only.
board_usb_init() was not being defined for CONFIG_USB_XHCI_OMAP
resulting in a data abort on usb start.

Define board_usb_init() for CONFIG_USB_XHCI_OMAP case. Move
gadget specific handling to within CONFIG_USB_DWC3.

Fixes: 6f1af1e358b7 ("board: ti: invoke clock API to enable and disable clocks")
Signed-off-by: Roger Quadros <rogerq@ti.com>
board/ti/am43xx/board.c
board/ti/am57xx/board.c