Module Name: src
Committed By: jmcneill
Date: Sat Nov 14 13:28:53 UTC 2015
Modified Files:
src/sys/arch/evbarm/tegra: tegra_machdep.c
Log Message:
support video=<mode> kernel cmdline for setting HDMI-A-1 preferred video mode
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/evbarm/tegra/tegra_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/tegra/tegra_machdep.c
diff -u src/sys/arch/evbarm/tegra/tegra_machdep.c:1.26 src/sys/arch/evbarm/tegra/tegra_machdep.c:1.27
--- src/sys/arch/evbarm/tegra/tegra_machdep.c:1.26 Wed Nov 11 12:37:52 2015
+++ src/sys/arch/evbarm/tegra/tegra_machdep.c Sat Nov 14 13:28:53 2015
@@ -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 <[email protected]>
@@ -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 @@ tegra_device_register(device_t self, voi
}
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")) {