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 5V/12V power to molex connector on Jet...



details:   https://anonhg.NetBSD.org/src/rev/01438121ef37
branches:  trunk
changeset: 338193:01438121ef37
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu May 14 00:02:00 2015 +0000

description:
5V/12V power to molex connector on Jetson TK1 is controlled by GPIO EE2

diffstat:

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

diffs (30 lines):

diff -r 609245381280 -r 01438121ef37 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Thu May 14 00:00:44 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Thu May 14 00:02:00 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.14 2015/05/13 11:07:02 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.15 2015/05/14 00:02:00 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.14 2015/05/13 11:07:02 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.15 2015/05/14 00:02:00 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -390,6 +390,11 @@
                }
        }
 
+       if (device_is_a(self, "ahcisata")
+           && device_is_a(device_parent(self), "tegraio")) {
+               prop_dictionary_set_cstring(dict, "power-gpio", "EE2");
+       }
+
        if (device_is_a(self, "ehci")
            && device_is_a(device_parent(self), "tegraio")) {
                struct tegraio_attach_args * const tio = aux;



Home | Main Index | Thread Index | Old Index