Module Name:    src
Committed By:   macallan
Date:           Tue Mar 10 18:03:18 UTC 2015

Modified Files:
        src/sys/arch/mips/ingenic: ingenic_dwctwo.c

Log Message:
flash the LED to show we're doing something
( and as a side effect make sure the USB PHY is powered up )


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/ingenic/ingenic_dwctwo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/ingenic/ingenic_dwctwo.c
diff -u src/sys/arch/mips/ingenic/ingenic_dwctwo.c:1.6 src/sys/arch/mips/ingenic/ingenic_dwctwo.c:1.7
--- src/sys/arch/mips/ingenic/ingenic_dwctwo.c:1.6	Mon Mar  9 13:23:57 2015
+++ src/sys/arch/mips/ingenic/ingenic_dwctwo.c	Tue Mar 10 18:03:17 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: ingenic_dwctwo.c,v 1.6 2015/03/09 13:23:57 macallan Exp $ */
+/*	$NetBSD: ingenic_dwctwo.c,v 1.7 2015/03/10 18:03:17 macallan Exp $ */
 
 /*-
  * Copyright (c) 2014 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.6 2015/03/09 13:23:57 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.7 2015/03/10 18:03:17 macallan Exp $");
 
 /*
  * adapted from bcm2835_dwctwo.c
@@ -137,6 +137,10 @@ ingenic_dwc2_attach(device_t parent, dev
 	aprint_naive(": USB controller\n");
 	aprint_normal(": USB controller\n");
 
+	gpio_set(5, 15, 0);
+	delay(250000);
+	gpio_set(5, 15, 1);
+	
 	reg = readreg(JZ_USBPCR);
 	reg |= PCR_VBUSVLDEXTSEL;
 	reg |= PCR_VBUSVLDEXT;

Reply via email to