Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc set properties to signal Mac Mini vid...



details:   https://anonhg.NetBSD.org/src/rev/c71fb745aed4
branches:  trunk
changeset: 826032:c71fb745aed4
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Aug 11 22:55:49 2017 +0000

description:
set properties to signal Mac Mini video output wiring to radeonfb

diffstat:

 sys/arch/macppc/macppc/machdep.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r aaed012f6ed6 -r c71fb745aed4 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Fri Aug 11 21:03:23 2017 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Fri Aug 11 22:55:49 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.165 2017/07/14 21:36:19 macallan Exp $   */
+/*     $NetBSD: machdep.c,v 1.166 2017/08/11 22:55:49 macallan Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.165 2017/07/14 21:36:19 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.166 2017/08/11 22:55:49 macallan Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -396,6 +396,10 @@
                "PowerBook4,3", "PowerBook6,3", "PowerBook6,5", NULL};
        const char *pismo[] = {
                "PowerBook3,1", NULL};
+       const char *mini1[] = {
+               "PowerMac10,1", NULL};
+       const char *mini2[] = {
+               "PowerMac10,2", NULL};
        int node;
 
        node = OF_finddevice("/");
@@ -410,6 +414,12 @@
                prop_dictionary_set(dict, "EDID", edid);
                prop_object_release(edid);
        }
+       if (of_compatible(node, mini1) != -1) {
+               prop_dictionary_set_bool(dict, "dvi-internal", 1);
+       }
+       if (of_compatible(node, mini2) != -1) {
+               prop_dictionary_set_bool(dict, "dvi-external", 1);
+       }
 }
 
 static void



Home | Main Index | Thread Index | Old Index