summaryrefslogtreecommitdiff
path: root/board/freescale/mx28evk/mx28evk.c
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd.eu>2012-01-18 01:33:08 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-27 21:19:22 +0100
commit598aa2bbfb5aeab43fbfb5ca63218daa9c425871 (patch)
tree13fb873b0df3b96253d3411a5562e4429613ee61 /board/freescale/mx28evk/mx28evk.c
parent9588d942198eeaa65a292d47a25bd1177ef2046b (diff)
downloadu-boot-imx-598aa2bbfb5aeab43fbfb5ca63218daa9c425871.zip
u-boot-imx-598aa2bbfb5aeab43fbfb5ca63218daa9c425871.tar.gz
u-boot-imx-598aa2bbfb5aeab43fbfb5ca63218daa9c425871.tar.bz2
mx28evk: add USB support
This patch enables USB host support on the MX28EVK board. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/freescale/mx28evk/mx28evk.c')
-rw-r--r--board/freescale/mx28evk/mx28evk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
index 0d04d44..1bc83e9 100644
--- a/board/freescale/mx28evk/mx28evk.c
+++ b/board/freescale/mx28evk/mx28evk.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_AUART2_RX__GPIO_3_8 |
+ MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL);
+ gpio_direction_output(MX28_PAD_AUART2_RX__GPIO_3_8, 1);
+#endif
+
return 0;
}