]> git.sur5r.net Git - u-boot/commitdiff
tbs2910: support for usb otg host mode
authorSoeren Moch <smoch@web.de>
Tue, 5 May 2015 21:09:18 +0000 (23:09 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 15 May 2015 17:21:24 +0000 (19:21 +0200)
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>
board/tbs/tbs2910/tbs2910.c
include/configs/tbs2910.h

index 42b166d47e3156a22ea0eb5bcbb022c45f24e541..0b509b6dd903d3191fe815870cd7f0dcfcebb6a8 100644 (file)
@@ -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 */
@@ -390,6 +396,10 @@ int board_init(void)
 #endif
 #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;
 }
index 3a88f22bbf03d21e31660511344c7b3e6b7be1f9..d3f53f3147773e834624ba23e92968bbfb0a9502 100644 (file)
 #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