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 support video=<mode> kernel cmdline fo...



details:   https://anonhg.NetBSD.org/src/rev/bdd6dc0b15a8
branches:  trunk
changeset: 341629:bdd6dc0b15a8
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 14 13:28:53 2015 +0000

description:
support video=<mode> kernel cmdline for setting HDMI-A-1 preferred video mode

diffstat:

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

diffs (34 lines):

diff -r 5fdf7c69b14c -r bdd6dc0b15a8 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Nov 14 13:27:29 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Nov 14 13:28:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.26 2015/11/11 12:37:52 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.27 2015/11/14 13:28:53 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.26 2015/11/11 12:37:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.27 2015/11/14 13:28:53 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -431,9 +431,15 @@
        }
 
        if (device_is_a(self, "tegradrm")) {
+               const char *video = tegra_bootconf_strdup("video");
+
                if (tegra_bootconf_match("hdmi.forcemode", "dvi")) {
                        prop_dictionary_set_bool(dict, "force-dvi", true);
                }
+
+               if (video) {
+                       prop_dictionary_set_cstring(dict, "HDMI-A-1", video);
+               }
        }
 
        if (device_is_a(self, "tegracec")) {



Home | Main Index | Thread Index | Old Index