]> git.sur5r.net Git - u-boot/commitdiff
mx23_olinuxino: Enable USB support
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 2 Mar 2013 05:17:29 +0000 (05:17 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Mar 2013 16:22:58 +0000 (17:22 +0100)
This enabled USB support for the mx23_olinuxino board.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
board/olimex/mx23_olinuxino/mx23_olinuxino.c
board/olimex/mx23_olinuxino/spl_boot.c
include/configs/mx23_olinuxino.h

index 250141761309541e482b1ec180ebf6a93d48a883..92527177ca44d2b9cd37066861ff2ceccc72781d 100644 (file)
@@ -45,6 +45,11 @@ int board_early_init_f(void)
        /* SSP0 clock at 96MHz */
        mxs_set_sspclk(MXC_SSPCLK0, 96000, 0);
 
+#ifdef CONFIG_CMD_USB
+       /* Enable LAN9512 */
+       gpio_direction_output(MX23_PAD_GPMI_ALE__GPIO_0_17, 1);
+#endif
+
        return 0;
 }
 
index 3bbf5ad7a36ae3532a7d9f1d0d94cd49d22e506a..a96c293c0ae7f8e12201643491d2b5faf82b654b 100644 (file)
@@ -95,6 +95,10 @@ const iomux_cfg_t iomux_setup[] = {
        MX23_PAD_SSP1_DATA2__SSP1_DATA2 | MUX_CONFIG_SSP,
        MX23_PAD_SSP1_DATA3__SSP1_DATA3 | MUX_CONFIG_SSP,
        MX23_PAD_SSP1_SCK__SSP1_SCK | MUX_CONFIG_SSP,
+
+       /* Ethernet */
+       MX23_PAD_GPMI_ALE__GPIO_0_17 |
+               (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL),
 };
 
 void board_init_ll(void)
index d01994400a46d66f5c53cd13da7486daf4b793ed..90dda01448c09cf6e58bb80422c73cdd2bebcbe6 100644 (file)
@@ -60,6 +60,7 @@
 #define        CONFIG_CMD_GPIO
 #define        CONFIG_CMD_LED
 #define        CONFIG_CMD_MMC
+#define        CONFIG_CMD_USB
 
 /*
  * Memory configurations
  */
 #define CONFIG_APBH_DMA
 
+/* USB */
+#ifdef CONFIG_CMD_USB
+#define        CONFIG_USB_EHCI
+#define        CONFIG_USB_EHCI_MXS
+#define        CONFIG_EHCI_MXS_PORT0
+#define        CONFIG_USB_MAX_CONTROLLER_COUNT 1
+#define        CONFIG_EHCI_IS_TDI
+#define        CONFIG_USB_STORAGE
+#endif
+
 /*
  * Boot Linux
  */