summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/pcfiic_ebus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/pcfiic_ebus.c b/sys/arch/sparc64/dev/pcfiic_ebus.c
index a32409eb661..3d782600595 100644
--- a/sys/arch/sparc64/dev/pcfiic_ebus.c
+++ b/sys/arch/sparc64/dev/pcfiic_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcfiic_ebus.c,v 1.12 2008/04/16 19:00:07 kettenis Exp $ */
+/* $OpenBSD: pcfiic_ebus.c,v 1.13 2008/06/08 03:07:40 deraadt Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -90,7 +90,7 @@ pcfiic_ebus_attach(struct device *parent, struct device *self, void *aux)
struct ebus_attach_args *ea = aux;
char compat[32];
u_int64_t addr;
- u_int8_t clock = PCF_CLOCK_12;
+ u_int8_t clock = PCF_CLOCK_12 | PCF_FREQ_90;
int swapregs = 0;
if (ea->ea_nregs < 1 || ea->ea_nregs > 2) {
@@ -108,9 +108,9 @@ pcfiic_ebus_attach(struct device *parent, struct device *self, void *aux)
int clk = getpropint(findroot(), "clock-frequency", 0);
if (clk < 105000000)
- clock = PCF_CLOCK_3;
+ clock = PCF_CLOCK_3 | PCF_FREQ_90;
else if (clk < 160000000)
- clock = PCF_CLOCK_4_43;
+ clock = PCF_CLOCK_4_43 | PCF_FREQ_90;
swapregs = 1;
}