All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode
@ 2015-05-05 21:09 Soeren Moch
  2015-05-05 21:09 ` [U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected Soeren Moch
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Soeren Moch @ 2015-05-05 21:09 UTC (permalink / raw)
  To: u-boot

Add support for USB OTG host mode. Only high speed devices supported so far
(e.g. usb 2.0 hub required to connect a keyboard).

Signed-off-by: Soeren Moch <smoch@web.de>
---
Cc: Stefano Babic <sbabic@denx.de>
---
 board/tbs/tbs2910/tbs2910.c | 10 ++++++++++
 include/configs/tbs2910.h   |  1 +
 2 files changed, 11 insertions(+)

diff --git a/board/tbs/tbs2910/tbs2910.c b/board/tbs/tbs2910/tbs2910.c
index 42b166d..0b509b6 100644
--- a/board/tbs/tbs2910/tbs2910.c
+++ b/board/tbs/tbs2910/tbs2910.c
@@ -372,6 +372,12 @@ static const struct boot_mode board_boot_modes[] = {
 };
 #endif
 
+#ifdef CONFIG_USB_EHCI_MX6
+static iomux_v3_cfg_t const usb_otg_pads[] = {
+	MX6_PAD_ENET_RX_ER__USB_OTG_ID | MUX_PAD_CTRL(NO_PAD_CTRL),
+};
+#endif
+
 int board_init(void)
 {
 	/* address of boot parameters */
@@ -391,6 +397,10 @@ int board_init(void)
 #ifdef CONFIG_CMD_BMODE
 	add_board_boot_modes(board_boot_modes);
 #endif
+#ifdef CONFIG_USB_EHCI_MX6
+	imx_iomux_v3_setup_multiple_pads(
+		usb_otg_pads, ARRAY_SIZE(usb_otg_pads));
+#endif
 	return 0;
 }
 
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index 7089378..e5828e0 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -163,6 +163,7 @@
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_MX6
 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
+#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
 #define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
 #define CONFIG_USB_STORAGE
 #define CONFIG_CMD_USB_MASS_STORAGE
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-05-15 13:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 21:09 [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode Soeren Moch
2015-05-05 21:09 ` [U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected Soeren Moch
2015-05-15 13:06   ` Stefano Babic
2015-05-05 21:09 ` [U-Boot] [PATCH 3/5] tbs2910: use default CONFIG_SYS_PBSIZE Soeren Moch
2015-05-15 13:06   ` Stefano Babic
2015-05-05 21:09 ` [U-Boot] [PATCH 4/5] tbs2910: add CONFIG_SUPPORT_EMMC_BOOT Soeren Moch
2015-05-15 13:06   ` Stefano Babic
2015-05-05 21:09 ` [U-Boot] [PATCH 5/5] tbs2910: add ext4 write support Soeren Moch
2015-05-11 18:12   ` Soeren Moch
2015-05-15 13:06 ` [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.