switch G5 iMacs to full speed

This commit is contained in:
macallan 2021-03-10 19:45:41 +00:00
parent f67047dab3
commit 9db155512c
1 changed files with 11 additions and 3 deletions

View File

@ -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 @@ initppc(u_int startkernel, u_int endkernel, char *args)
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);
}
}