]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
M28EVK: Enable USB HOST support
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 8 Nov 2011 23:18:27 +0000 (23:18 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 11 Nov 2011 10:36:58 +0000 (11:36 +0100)
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>
board/denx/m28evk/m28evk.c
include/configs/m28evk.h

index 168ceeb6a515c7eb42677bc59983bbe6cc8c482f..8cf3dc9d4e5d83f354d4f8b7b2db53d2c0ea49ed 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_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;
 }
 
index c8b0cf513e6235dc9640965cde48e79471944481..52dcd4a6c587701ed1f4f1c1b74bb581e5a2d50f 100644 (file)
@@ -75,6 +75,7 @@
 #define        CONFIG_CMD_SETEXPR
 #define        CONFIG_CMD_SF
 #define        CONFIG_CMD_SPI
+#define        CONFIG_CMD_USB
 
 /*
  * Memory configurations
 #endif
 #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
+
 /*
  * SPI
  */