summaryrefslogtreecommitdiff
path: root/board/denx
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-11-08 23:18:27 +0000
committerStefano Babic <sbabic@denx.de>2011-11-11 11:36:58 +0100
commit8f59bc1fc01b31edb8ffc9fca9125bc524943234 (patch)
treea524f7704c23f0314b63af9fb66ceb529d7c822d /board/denx
parentdbb8f2790120ba7dea87db14870fdf821428fb45 (diff)
downloadu-boot-imx-8f59bc1fc01b31edb8ffc9fca9125bc524943234.zip
u-boot-imx-8f59bc1fc01b31edb8ffc9fca9125bc524943234.tar.gz
u-boot-imx-8f59bc1fc01b31edb8ffc9fca9125bc524943234.tar.bz2
M28EVK: Enable USB HOST support
This enables the second port, aka. the port with the USB connector on the M28EVK. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> Cc: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'board/denx')
-rw-r--r--board/denx/m28evk/m28evk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c
index 168ceeb..8cf3dc9 100644
--- a/board/denx/m28evk/m28evk.c
+++ b/board/denx/m28evk/m28evk.c
@@ -52,6 +52,13 @@ int board_early_init_f(void)
/* SSP2 clock at 96MHz */
mx28_set_sspclk(MXC_SSPCLK2, 96000, 0);
+#ifdef CONFIG_CMD_USB
+ mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT);
+ mxs_iomux_setup_pad(MX28_PAD_AUART3_TX__GPIO_3_13 |
+ MXS_PAD_12MA | MXS_PAD_3V3 | MXS_PAD_PULLUP);
+ gpio_direction_output(MX28_PAD_AUART3_TX__GPIO_3_13, 0);
+#endif
+
return 0;
}