Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/awin BPI has no programmable current limiter...



details:   https://anonhg.NetBSD.org/src/rev/41af63b4d7fc
branches:  trunk
changeset: 355896:41af63b4d7fc
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sun Aug 20 14:52:36 2017 +0000

description:
BPI has no programmable current limiters for the USB host, just a PCB fuse

diffstat:

 sys/arch/evbarm/awin/awin_machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 3f8f06413f44 -r 41af63b4d7fc sys/arch/evbarm/awin/awin_machdep.c
--- a/sys/arch/evbarm/awin/awin_machdep.c       Sun Aug 20 12:51:38 2017 +0000
+++ b/sys/arch/evbarm/awin/awin_machdep.c       Sun Aug 20 14:52:36 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: awin_machdep.c,v 1.49 2016/10/20 09:53:07 skrll Exp $ */
+/*     $NetBSD: awin_machdep.c,v 1.50 2017/08/20 14:52:36 tnn Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.49 2016/10/20 09:53:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.50 2017/08/20 14:52:36 tnn Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -722,12 +722,14 @@
                } else {
                        prop_dictionary_set_cstring(dict, "usb0drv", ">PB2");
                }
+#if AWIN_board != AWIN_bpi
+               prop_dictionary_set_cstring(dict, "usb1drv", ">PH6");
                prop_dictionary_set_cstring(dict, "usb2drv", ">PH3");
+#endif
                prop_dictionary_set_cstring(dict, "usb0iddet",
                    (cubietruck_p ? "<PH19" : "<PH4"));
                prop_dictionary_set_cstring(dict, "usb0vbusdet",
                    (cubietruck_p ? "<PH22" : "<PH5"));
-               prop_dictionary_set_cstring(dict, "usb1drv", ">PH6");
 #endif
 #if AWIN_board == AWIN_cubietruck
                prop_dictionary_set_cstring(dict, "usb0restrict", ">PH0");



Home | Main Index | Thread Index | Old Index