Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm Enable tegracec and hdmicec



details:   https://anonhg.NetBSD.org/src/rev/d38fee738b61
branches:  trunk
changeset: 339638:d38fee738b61
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 01 21:20:46 2015 +0000

description:
Enable tegracec and hdmicec

diffstat:

 sys/arch/evbarm/conf/JETSONTK1        |  4 +++-
 sys/arch/evbarm/tegra/tegra_machdep.c |  8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 07923a072c9f -r d38fee738b61 sys/arch/evbarm/conf/JETSONTK1
--- a/sys/arch/evbarm/conf/JETSONTK1    Sat Aug 01 21:20:11 2015 +0000
+++ b/sys/arch/evbarm/conf/JETSONTK1    Sat Aug 01 21:20:46 2015 +0000
@@ -1,5 +1,5 @@
 #
-#      $NetBSD: JETSONTK1,v 1.29 2015/07/26 10:09:53 jmcneill Exp $
+#      $NetBSD: JETSONTK1,v 1.30 2015/08/01 21:20:46 jmcneill Exp $
 #
 #      NVIDIA Jetson TK1 - Tegra K1 development kit
 #      https://developer.nvidia.com/jetson-tk1
@@ -146,6 +146,8 @@
 
 # HDMI
 tegrahdmi0     at tegraio?             # HDMI
+tegracec0      at tegraio?             # HDMI CEC
+hdmicec*       at hdmicecbus?
 
 # USB 2.0
 ehci0          at tegraio? port 0      # USB1
diff -r 07923a072c9f -r d38fee738b61 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Aug 01 21:20:11 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Aug 01 21:20:46 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.17 2015/05/30 23:17:37 matt Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.18 2015/08/01 21:20:47 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.17 2015/05/30 23:17:37 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.18 2015/08/01 21:20:47 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -395,6 +395,10 @@
 #endif
        }
 
+       if (device_is_a(self, "tegracec")) {
+               prop_dictionary_set_cstring(dict, "hdmi-device", "tegrahdmi0");
+       }
+
 #ifdef BOARD_JETSONTK1
        if (device_is_a(self, "sdhc")
            && device_is_a(device_parent(self), "tegraio")) {



Home | Main Index | Thread Index | Old Index