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 for Jetson TK1, GPIO N5 controls vbus ...



details:   https://anonhg.NetBSD.org/src/rev/6c737979c71d
branches:  trunk
changeset: 808178:6c737979c71d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat May 09 12:08:30 2015 +0000

description:
for Jetson TK1, GPIO N5 controls vbus vdd for USB2

diffstat:

 sys/arch/evbarm/tegra/tegra_machdep.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 8c2c90b806b7 -r 6c737979c71d sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 09 12:07:52 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat May 09 12:08:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.10 2015/05/03 17:24:45 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.11 2015/05/09 12:08: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.10 2015/05/03 17:24:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.11 2015/05/09 12:08:30 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -393,5 +393,15 @@
                        prop_dictionary_set_cstring(dict, "wp-gpio", "Q4");
                }
        }
+
+       if (device_is_a(self, "ehci")
+           && device_is_a(device_parent(self), "tegraio")) {
+               struct tegraio_attach_args * const tio = aux;
+               const struct tegra_locators * const loc = &tio->tio_loc;
+
+               if (loc->loc_port == 2) {
+                       prop_dictionary_set_cstring(dict, "vbus-gpio", "N5");
+               }
+       }
 #endif
 }



Home | Main Index | Thread Index | Old Index