diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-08 03:07:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-08 03:07:41 +0000 |
commit | 3484dda28c03f406179108456127b914d3a70d4a (patch) | |
tree | 8da05d45fae45e8815ba6d10268ffad3bf2a1938 | |
parent | acb27b9cf9b58698cf1e68345d729d548c4839de (diff) |
put the PCF_FREQ codes into the clock
-rw-r--r-- | sys/arch/sparc64/dev/pcfiic_ebus.c | 8 |
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; } |