Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/tegra Jetson TK1: USB1 VBUS power is control...



details:   https://anonhg.NetBSD.org/src/rev/3ab233f91050
branches:  trunk
changeset: 338074:3ab233f91050
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat May 09 18:57:30 2015 +0000

description:
Jetson TK1: USB1 VBUS power is controlled by GPIO N4

diffstat:

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

diffs (29 lines):

diff -r 6afbce1c0e86 -r 3ab233f91050 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 09 18:56:51 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 09 18:57:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.11 2015/05/09 12:08:30 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.12 2015/05/09 18:57:30 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.11 2015/05/09 12:08:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.12 2015/05/09 18:57:30 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -399,7 +399,9 @@
                struct tegraio_attach_args * const tio = aux;
                const struct tegra_locators * const loc = &tio->tio_loc;
 
-               if (loc->loc_port == 2) {
+               if (loc->loc_port == 0) {
+                       prop_dictionary_set_cstring(dict, "vbus-gpio", "N4");
+               } else if (loc->loc_port == 2) {
                        prop_dictionary_set_cstring(dict, "vbus-gpio", "N5");
                }
        }



Home | Main Index | Thread Index | Old Index