Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ingenic flash the LED to show we're doing some...
details: https://anonhg.NetBSD.org/src/rev/e1eec6efa0ae
branches: trunk
changeset: 336690:e1eec6efa0ae
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Mar 10 18:03:17 2015 +0000
description:
flash the LED to show we're doing something
( and as a side effect make sure the USB PHY is powered up )
diffstat:
sys/arch/mips/ingenic/ingenic_dwctwo.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 74a00428c0ea -r e1eec6efa0ae sys/arch/mips/ingenic/ingenic_dwctwo.c
--- a/sys/arch/mips/ingenic/ingenic_dwctwo.c Tue Mar 10 18:02:16 2015 +0000
+++ b/sys/arch/mips/ingenic/ingenic_dwctwo.c Tue Mar 10 18:03:17 2015 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index