summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-03-02 05:17:29 +0000
committerStefano Babic <sbabic@denx.de>2013-03-07 17:22:58 +0100
commitebe1d17006001adfa375335acdd56f326264aeb8 (patch)
tree92ae78347ead6e1de90d60d690a1b4175ec4f18b /board
parente895aa45b93a2d27e6720c40f869c01854d3ca09 (diff)
downloadu-boot-imx-ebe1d17006001adfa375335acdd56f326264aeb8.zip
u-boot-imx-ebe1d17006001adfa375335acdd56f326264aeb8.tar.gz
u-boot-imx-ebe1d17006001adfa375335acdd56f326264aeb8.tar.bz2
mx23_olinuxino: Enable USB support
This enabled USB support for the mx23_olinuxino board. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'board')
-rw-r--r--board/olimex/mx23_olinuxino/mx23_olinuxino.c5
-rw-r--r--board/olimex/mx23_olinuxino/spl_boot.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/board/olimex/mx23_olinuxino/mx23_olinuxino.c b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
index 2501417..9252717 100644
--- a/board/olimex/mx23_olinuxino/mx23_olinuxino.c
+++ b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
@@ -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;
}
diff --git a/board/olimex/mx23_olinuxino/spl_boot.c b/board/olimex/mx23_olinuxino/spl_boot.c
index 3bbf5ad..a96c293 100644
--- a/board/olimex/mx23_olinuxino/spl_boot.c
+++ b/board/olimex/mx23_olinuxino/spl_boot.c
@@ -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)