summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-04-28 10:11:00 -0700
committerSimon Glass <sjg@chromium.org>2011-08-24 09:54:52 -0700
commit893172f218c203f9fcf7210229167b4f168df44a (patch)
treeeda4c428ad3e7fc9eb1da84d3b1ce52087fab90e /include
parent696ba76e40fefcc58848b5e86575915927840c6a (diff)
Tegra2: Add USB support
This adds basic USB support for port 0. The other port is not supported by this CL. BUG=chromium-os:13875 TEST=Put USB stick in side port. Then: Tegra2 (SeaBoard) # ext2load usb 0:3 10000000 /boot/vmlinuz Loading file "/boot/vmlinuz" from usb device 0:3 (gpt3) 2745808 bytes read Tegra2 (SeaBoard) # Change-Id: I10f9228377ee7ed7817bb30bf665d69c5e74f239 Review URL: http://codereview.chromium.org/6896012
Diffstat (limited to 'include')
-rw-r--r--include/configs/seaboard.h10
-rw-r--r--include/configs/tegra2-common.h30
2 files changed, 40 insertions, 0 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 27c8ae1d37..76ffd9578a 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -43,4 +43,14 @@
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_TEGRA2_GPIO
#define CONFIG_CMD_TEGRA2_GPIO_INFO
+
+/* To select the order in which U-Boot sees USB ports */
+#define CONFIG_TEGRA2_USB0 NV_PA_USB3_BASE
+#define CONFIG_TEGRA2_USB1 NV_PA_USB1_BASE
+#define CONFIG_TEGRA2_USB2 0
+#define CONFIG_TEGRA2_USB3 0
+
+/* Put USB1 in host mode */
+#define CONFIG_TEGRA2_USB1_HOST
+
#endif /* __CONFIG_H */
diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index febce35ac1..ae417ea7c0 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -84,6 +84,36 @@
#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
115200}
+
+/*
+ * USB Host.
+ */
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_TEGRA
+#define CONFIG_USB_CONTROLLER_INSTANCES 2
+
+/* Tegra2 requires USB buffers to be aligned to a word boundary */
+#define CONFIG_USB_EHCI_DATA_ALIGN 4
+
+/*
+ * 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_USB_STORAGE
+
+#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>