summaryrefslogtreecommitdiff
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
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>
-rw-r--r--board/freescale/mx28evk/mx28evk.c7
-rw-r--r--include/configs/mx28evk.h12
2 files changed, 19 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;
}
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 8a752aa..8f791aa 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -64,6 +64,7 @@
#define CONFIG_CMD_NET
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
+#define CONFIG_CMD_USB
/*
* Memory configurations
@@ -158,6 +159,17 @@
#endif
/*
+ * USB
+ */
+#ifdef CONFIG_CMD_USB
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_MXS
+#define CONFIG_EHCI_MXS_PORT 1
+#define CONFIG_EHCI_IS_TDI
+#define CONFIG_USB_STORAGE
+#endif
+
+/*
* Boot Linux
*/
#define CONFIG_CMDLINE_TAG