From 4dd5ab1bbe75add54536e4d85db36a5aaefc5fd2 Mon Sep 17 00:00:00 2001 From: macallan Date: Tue, 10 Mar 2015 18:03:17 +0000 Subject: [PATCH] flash the LED to show we're doing something ( and as a side effect make sure the USB PHY is powered up ) --- sys/arch/mips/ingenic/ingenic_dwctwo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips/ingenic/ingenic_dwctwo.c b/sys/arch/mips/ingenic/ingenic_dwctwo.c index 9edce630922d..3bff82b64caf 100644 --- a/sys/arch/mips/ingenic/ingenic_dwctwo.c +++ b/sys/arch/mips/ingenic/ingenic_dwctwo.c @@ -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 -__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, device_t self, void *aux) 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;