ARM: tegra: shut down USB device controller at boot
authorStephen Warren <swarren@nvidia.com>
Tue, 26 Jan 2016 17:59:42 +0000 (10:59 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 29 Jan 2016 04:01:23 +0000 (21:01 -0700)
commitdd8204de157e10c080aa2cdc0f24bcb2e4ac73dd
treea8f8d816ae62a52b98f3636261f4f0ab0594771b
parente787a58fe2544497bbc75066e0bc62868c7c4e65
ARM: tegra: shut down USB device controller at boot

When loading U-Boot into RAM over USB protocols using tools such as
tegrarcm or L4T's exec-uboot.sh/tegraflash.py, Tegra's USB device
mode controller is initialized and enumerated by the host PC running
the tool. Unfortunately, these tools do not shut down the USB
controller before executing the downloaded code, and so the host PC
does not "de-enumerate" the USB device. This patch implements optional
code to shut down the USB controller when U-Boot boots to avoid leaving
a stale USB device present.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/board2.c