[U-Boot] [PATCH 1/3] tegra: usb: Add USB support to Tamonten boards
Thierry Reding
thierry.reding at avionic-design.de
Thu May 24 09:04:45 CEST 2012
This adds basic USB support for port 0. Device tree support is needed to
initialize the USB EHCI and will be added in a subsequent patch.
Signed-off-by: Thierry Reding <thierry.reding at avionic-design.de>
---
board/avionic-design/common/tamonten.c | 11 +++++++++++
board/avionic-design/common/tamonten.h | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index f23b657..794d90a 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -68,6 +68,12 @@ static void pin_mux_mmc(void)
}
#endif
+static void pin_mux_usb_default(void)
+{
+}
+
+void pin_mux_usb(void) __attribute__((weak, alias("pin_mux_usb_default")));
+
/*
* Routine: board_init
* Description: Early hardware init.
@@ -80,6 +86,11 @@ int board_init(void)
/* boot param addr */
gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100);
+#ifdef CONFIG_USB_EHCI_TEGRA
+ pin_mux_usb();
+ board_usb_init(gd->fdt_blob);
+#endif
+
return 0;
}
diff --git a/board/avionic-design/common/tamonten.h b/board/avionic-design/common/tamonten.h
index 0e60b0f..ee101b7 100644
--- a/board/avionic-design/common/tamonten.h
+++ b/board/avionic-design/common/tamonten.h
@@ -26,7 +26,7 @@
#ifndef _TAMONTEN_H_
#define _TAMONTEN_H_
-void tegra2_start(void);
void gpio_config_mmc(void);
+void pin_mux_usb(void);
#endif /* TAMONTEN_H */
--
1.7.10.2
More information about the U-Boot
mailing list