summaryrefslogtreecommitdiff
path: root/board/tbs
diff options
context:
space:
mode:
authorSoeren Moch <smoch@web.de>2015-05-05 23:09:18 +0200
committerStefano Babic <sbabic@denx.de>2015-05-15 19:21:24 +0200
commitd896276d27bf688cdd3be9c76bff7efc4e4d80b6 (patch)
tree3de9dde35d142ad5629679ddee79c5f3ad3ec929 /board/tbs
parente719cdde3c508a8f78629eb00327901697b18fec (diff)
tbs2910: support for usb otg host mode
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>
Diffstat (limited to 'board/tbs')
-rw-r--r--board/tbs/tbs2910/tbs2910.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/tbs/tbs2910/tbs2910.c b/board/tbs/tbs2910/tbs2910.c
index 42b166d47e..0b509b6dd9 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;
}