]> git.sur5r.net Git - u-boot/commitdiff
USB: mx53loco: add end enable USB host support on port 1
authorWolfgang Grandegger <wg@denx.de>
Fri, 11 Nov 2011 13:03:37 +0000 (14:03 +0100)
committerRemy Bohmer <linux@bohmer.net>
Sun, 11 Dec 2011 13:49:50 +0000 (14:49 +0100)
Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Cc: Wolfgang Grandegger <wg@denx.de>
Cc: Jason Liu <r64343@freescale.com>
board/freescale/mx53loco/mx53loco.c
include/configs/mx53loco.h

index 3cf4195b5e3e75496a27e14df9c288e8ed97ca81..57170ce0452cd0fd134831d5f9b7cafad37a24bf 100644 (file)
@@ -78,6 +78,16 @@ static void setup_iomux_uart(void)
                                PAD_CTL_ODE_OPENDRAIN_ENABLE);
 }
 
+#ifdef CONFIG_USB_EHCI_MX5
+void board_ehci_hcd_init(int port)
+{
+       /* request VBUS power enable pin, GPIO[8}, gpio7 */
+       mxc_request_iomux(MX53_PIN_ATA_DA_2, IOMUX_CONFIG_ALT1);
+       gpio_direction_output(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 0);
+       gpio_set_value(IOMUX_TO_GPIO(MX53_PIN_ATA_DA_2), 1);
+}
+#endif
+
 static void setup_iomux_fec(void)
 {
        /*FEC_MDIO*/
index 537649ee164f0fec1c915177968213ededca7494..34a4edd41e921f038bc82716f9ad7b21af0c1f59 100644 (file)
 #define CONFIG_CMD_MII
 #define CONFIG_CMD_NET
 
+/* USB Configs */
+#define CONFIG_CMD_USB
+#define CONFIG_CMD_FAT
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_MX5
+#define CONFIG_USB_STORAGE
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_ASIX
+#define CONFIG_USB_ETHER_SMSC95XX
+#define CONFIG_MXC_USB_PORT    1
+#define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
+#define CONFIG_MXC_USB_FLAGS   0
+
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX              1