summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-06-08 15:00:03 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:19 -0700
commitd14d93d41effdee008e4b0ef623853339b00c61c (patch)
treeccce982c7f15bf4d5b20e0f648f10072b8cce104 /drivers
parent5e285a53c7e0a8922a7f46071f0a9708ff48b305 (diff)
tegra2: Tidy up USB implementation
This tidied up the USB configuration a little, to ready it for run-time configuration. BUG=chromium-os:11623 TEST=Build and boot U-Boot, usb start, network boot Change-Id: Ifdd5790c727cd697553455b57b167cd8dc51a823 Reviewed-on: http://gerrit.chromium.org/gerrit/2346 Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-tegra.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 04e43b840e..553e0ebf7c 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -31,18 +31,6 @@
/*
- * This is a list of base addresses for each USB port. These CONFIG_TEGRA2_...
- * values are defined in the board config files. Non-existent ports are zero.
- */
-int USB_base_addr[5] = {
- CONFIG_TEGRA2_USB0,
- CONFIG_TEGRA2_USB1,
- CONFIG_TEGRA2_USB2,
- CONFIG_TEGRA2_USB3,
- 0
-};
-
-/*
* Create the appropriate control structures to manage
* a new EHCI host controller.
*/
@@ -62,9 +50,7 @@ int ehci_hcd_init(void)
*/
int ehci_hcd_stop(void)
{
-#ifdef CONFIG_TEGRA2_USB1_HOST
- usb1_set_host_mode();
-#endif
+ usb_set_host_mode();
ehci_writel(&hcor->or_usbcmd, 0);
udelay(1000);
ehci_writel(&hcor->or_usbcmd, 2);