summaryrefslogtreecommitdiff
path: root/board/efikamx/efikamx.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-06-24 21:46:07 +0200
committerRemy Bohmer <linux@bohmer.net>2011-12-11 14:50:14 +0100
commitd98d8bc1c913a5a1aea6b17365f90c430d1fc95a (patch)
tree876ebe9fefa2ddfdc24bee921334a5c475c62d91 /board/efikamx/efikamx.c
parentf93022c3b11f191141c9128ee88d297cec3b9330 (diff)
downloadu-boot-imx-d98d8bc1c913a5a1aea6b17365f90c430d1fc95a.zip
u-boot-imx-d98d8bc1c913a5a1aea6b17365f90c430d1fc95a.tar.gz
u-boot-imx-d98d8bc1c913a5a1aea6b17365f90c430d1fc95a.tar.bz2
USB: efikamx: Enable USB on EfikaMX and EfikaSB
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Cc: Wolfgang Grandegger <wg@denx.de> Cc: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'board/efikamx/efikamx.c')
-rw-r--r--board/efikamx/efikamx.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/efikamx/efikamx.c b/board/efikamx/efikamx.c
index 3d2cc1a..1f6c457 100644
--- a/board/efikamx/efikamx.c
+++ b/board/efikamx/efikamx.c
@@ -540,6 +540,15 @@ static inline void setup_iomux_ata(void) { }
#endif
/*
+ * EHCI USB
+ */
+#ifdef CONFIG_CMD_USB
+extern void setup_iomux_usb(void);
+#else
+static inline void setup_iomux_usb(void) { }
+#endif
+
+/*
* LED configuration
*/
void setup_iomux_led(void)
@@ -688,6 +697,12 @@ int board_late_init(void)
setup_iomux_led();
setup_iomux_ata();
+ setup_iomux_usb();
+
+ if (machine_is_efikasb())
+ setenv("preboot", "usb reset ; setenv stdin usbkbd\0");
+
+ setup_iomux_led();
efikamx_toggle_led(EFIKAMX_LED_BLUE);