Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/awin Allow for overriding DVI/HDMI detection...
details: https://anonhg.NetBSD.org/src/rev/71d5c928f0ea
branches: trunk
changeset: 333798:71d5c928f0ea
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Nov 17 00:50:40 2014 +0000
description:
Allow for overriding DVI/HDMI detection with a kernel boot arg. Set
hdmi.forcemode=dvi or hdmi.forcemode=hdmi to disable auto-detection.
diffstat:
sys/arch/evbarm/awin/awin_machdep.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 740759f7b63a -r 71d5c928f0ea sys/arch/evbarm/awin/awin_machdep.c
--- a/sys/arch/evbarm/awin/awin_machdep.c Mon Nov 17 00:49:32 2014 +0000
+++ b/sys/arch/evbarm/awin/awin_machdep.c Mon Nov 17 00:50:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_machdep.c,v 1.28 2014/11/14 19:47:36 jmcneill Exp $ */
+/* $NetBSD: awin_machdep.c,v 1.29 2014/11/17 00:50:40 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.28 2014/11/14 19:47:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awin_machdep.c,v 1.29 2014/11/17 00:50:40 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -769,6 +769,20 @@
}
}
+ if (device_is_a(self, "awinhdmi")) {
+ char *display_mode;
+ if (get_bootconf_option(boot_args, "hdmi.forcemode",
+ BOOTOPT_TYPE_STRING, &display_mode)) {
+ if (strcasecmp(display_mode, "hdmi") == 0) {
+ prop_dictionary_set_cstring(dict,
+ "display-mode", "hdmi");
+ } else if (strcasecmp(display_mode, "dvi") == 0) {
+ prop_dictionary_set_cstring(dict,
+ "display-mode", "dvi");
+ }
+ }
+ }
+
#if NGENFB > 0
if (device_is_a(self, "genfb")) {
#ifdef DDB
Home |
Main Index |
Thread Index |
Old Index