From 3484dda28c03f406179108456127b914d3a70d4a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 8 Jun 2008 03:07:41 +0000 Subject: put the PCF_FREQ codes into the clock --- sys/arch/sparc64/dev/pcfiic_ebus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/sparc64/dev/pcfiic_ebus.c') 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 @@ -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; } -- cgit v1.2.3