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 switch G5 iMacs to full speed



details:   https://anonhg.NetBSD.org/src/rev/98df4a3838c0
branches:  trunk
changeset: 953485:98df4a3838c0
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Mar 10 19:45:41 2021 +0000

description:
switch G5 iMacs to full speed

diffstat:

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

diffs (42 lines):

diff -r 8890672cf99e -r 98df4a3838c0 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Wed Mar 10 18:29:07 2021 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Wed Mar 10 19:45:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.173 2021/02/27 02:52:48 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.174 2021/03/10 19:45:41 macallan Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.173 2021/02/27 02:52:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 2021/03/10 19:45:41 macallan Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -145,6 +145,14 @@
                int clock_ih = OF_open("/u3/i2c/i2c-hwclock");
                if (clock_ih != 0) {
                        OF_call_method_1("slew-high", clock_ih, 0);
+                       OF_close(clock_ih);
+               }
+       }
+       if  (strncmp(model_name, "PowerMac8,", 10) == 0) {
+               int smu_ih = OF_open("/smu");
+               if (smu_ih != 0) {
+                       OF_call_method_1("smu-powertune-hi", smu_ih, 0);
+                       OF_close(smu_ih);
                }
        }
 
@@ -360,7 +368,7 @@
        }
        if (!of_to_uint32_prop(dict, node, "address", "address")) {
                uint32_t fbaddr = 0;
-                       OF_interpret("frame-buffer-adr", 0, 1, &fbaddr);
+               OF_interpret("frame-buffer-adr", 0, 1, &fbaddr);
                if (fbaddr != 0)
                        prop_dictionary_set_uint32(dict, "address", fbaddr);
        }



Home | Main Index | Thread Index | Old Index