summaryrefslogtreecommitdiff
path: root/board/zipitz2
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2016-03-20 18:37:05 -0700
committerTom Rini <trini@konsulko.com>2016-03-27 09:12:58 -0400
commitafed7ebe8500e6f05ac93ceb5e3f75fd193fd786 (patch)
tree52e0f33c4fff7ff06714d654ba5692acdd5b0578 /board/zipitz2
parent634890bb5280ceec22aa3fc5e967aed0a2d0b795 (diff)
downloadu-boot-imx-afed7ebe8500e6f05ac93ceb5e3f75fd193fd786.zip
u-boot-imx-afed7ebe8500e6f05ac93ceb5e3f75fd193fd786.tar.gz
u-boot-imx-afed7ebe8500e6f05ac93ceb5e3f75fd193fd786.tar.bz2
zipitz2: enable USB host support
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Diffstat (limited to 'board/zipitz2')
-rw-r--r--board/zipitz2/zipitz2.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c
index 8fa1261..aefbeee 100644
--- a/board/zipitz2/zipitz2.c
+++ b/board/zipitz2/zipitz2.c
@@ -15,6 +15,7 @@
#include <asm/arch/regs-mmc.h>
#include <spi.h>
#include <asm/io.h>
+#include <usb.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -52,6 +53,26 @@ int dram_init(void)
return 0;
}
+#ifdef CONFIG_CMD_USB
+int board_usb_init(int index, enum usb_init_type init)
+{
+ /* enable port 2 */
+ writel(readl(UP2OCR) | UP2OCR_HXOE | UP2OCR_HXS |
+ UP2OCR_DMPDE | UP2OCR_DPPDE, UP2OCR);
+
+ return 0;
+}
+
+int board_usb_cleanup(int index, enum usb_init_type init)
+{
+ return 0;
+}
+
+void usb_board_stop(void)
+{
+}
+#endif
+
void dram_init_banksize(void)
{
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;