summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2011-12-05 16:19:38 -0700
committerTom Warren <twarren@nvidia.com>2011-12-13 13:24:18 -0800
commite70c9892f2445b073f765187b754630d56f5e18c (patch)
tree85d00904ea6c52a1c1170fa2c3eb9cb8039854f9 /include/configs
parent3c48935acca9c4dc554de6119f1b21171275789f (diff)
arm: Tegra3: enable USB support
BUG=chromium-os:23496 TEST=build and boot Waluigi T30. Usb detects devices OK. usb tree, usb part, ext2ls usb and ext2load usb work as expected. Signed-off-by: Tom Warren <twarren@nvidia.com> Change-Id: I40910e0c770bb33171ad9c8b4e5a6baaaac4a7df Reviewed-on: https://gerrit.chromium.org/gerrit/12392 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Commit-Ready: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/tegra3-common.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/configs/tegra3-common.h b/include/configs/tegra3-common.h
index 38d58bd117..69d6dfde5c 100644
--- a/include/configs/tegra3-common.h
+++ b/include/configs/tegra3-common.h
@@ -29,6 +29,37 @@
#define CONFIG_TEGRA3 /* NVidia Tegra3 core */
+/*
+ * USB Host.
+ */
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_TEGRA
+
+/* Tegra requires USB buffers to be aligned to a 32-byte boundary */
+#define CONFIG_USB_EHCI_DATA_ALIGN 32
+
+/*
+ * This parameter affects a TXFILLTUNING field that controls how much data is
+ * sent to the latency fifo before it is sent to the wire. Without this
+ * parameter, the default (2) causes occasional Data Buffer Errors in OUT
+ * packets depending on the buffer address and size.
+ */
+#define CONFIG_USB_EHCI_TXFIFO_THRESH 10
+
+#define CONFIG_EHCI_IS_TDI
+#define CONFIG_EHCI_DCACHE
+#define CONFIG_EHCI_HAS_STATUS2
+#define CONFIG_USB_MAX_CONTROLLER_COUNT 3
+#define CONFIG_USB_STORAGE
+#define CONFIG_USB_STOR_NO_RETRY
+
+#define CONFIG_CMD_USB /* USB Host support */
+
+/* partition types and file systems we want */
+#define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_EXT2
+
/* include default commands */
#include <config_cmd_default.h>