mx28evk: add USB support
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Wed, 18 Jan 2012 01:33:08 +0000 (01:33 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:22 +0000 (21:19 +0100)
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>
board/freescale/mx28evk/mx28evk.c
include/configs/mx28evk.h

index 0d04d447ad4ae2bb197daf1cdf30491719526372..1bc83e96035e2f0579f18fb1a0c95aa7879cf422 100644 (file)
@@ -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;
 }
 
index 8a752aa2a484008e7d85d18eb3379e79d4470f12..8f791aa4847dcb63d09b2619aeca1fc48410682a 100644 (file)
@@ -64,6 +64,7 @@
 #define CONFIG_CMD_NET
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_PING
+#define CONFIG_CMD_USB
 
 /*
  * Memory configurations
 #define        CONFIG_RTC_MXS
 #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
  */