Patchwork [U-Boot,13/14] tegra: usb: Enable USB on Seaboard

login
register
mail settings
Submitter Simon Glass
Date Nov. 24, 2011, 3:54 a.m.
Message ID <1322106896-23054-14-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/127429/
State New, archived
Headers show

Comments

Simon Glass - Nov. 24, 2011, 3:54 a.m.
Seaboard has a top port which is USB host or device, and a side port which
is host only.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 include/configs/seaboard.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 261f952..df1b44a 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -72,4 +72,18 @@ 
 
 #define CONFIG_ENV_SECT_SIZE    CONFIG_ENV_SIZE
 #define CONFIG_ENV_OFFSET       (CONFIG_SPI_FLASH_SIZE - CONFIG_ENV_SECT_SIZE)
+
+/* USB Host support */
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_TEGRA
+#define CONFIG_USB_STORAGE
+#define CONFIG_CMD_USB
+
+/* Select the order in which U-Boot sees USB ports */
+#define CONFIG_TEGRA_USB0	TEGRA_USB3_BASE
+#define CONFIG_TEGRA_USB1	TEGRA_USB1_BASE
+
+/* Put USB1 in host mode */
+#define CONFIG_TEGRA_USB1_HOST
+
 #endif /* __CONFIG_H */