sandbox: convert to common time functions
[oweals/u-boot.git] / board / bf527-ezkit / bf527-ezkit.c
index a8800661130f5b2c1b811ef0fe301dfafc301ce7..211cf24ac303fc889b760ca02a91a897cc2304ae 100644 (file)
@@ -12,6 +12,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <asm/blackfin.h>
+#include <asm/gpio.h>
 #include <asm/net.h>
 #include <asm/mach-common/bits/otp.h>
 
@@ -68,3 +69,14 @@ int misc_init_r(void)
 
        return 0;
 }
+
+#ifdef CONFIG_USB_BLACKFIN
+void board_musb_init(void)
+{
+       /*
+        * BF527 EZ-KITs require PG13 to be high for HOST mode
+        */
+       gpio_request(GPIO_PG13, "musb-vbus");
+       gpio_direction_output(GPIO_PG13, 1);
+}
+#endif