Module Name: src Committed By: christos Date: Mon Apr 15 19:46:16 UTC 2013
Modified Files: src/sys/dev/pci/voyager: pwmclock.c Log Message: make this compile again; macallan, please commit the right fix! To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/voyager/pwmclock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/voyager/pwmclock.c diff -u src/sys/dev/pci/voyager/pwmclock.c:1.6 src/sys/dev/pci/voyager/pwmclock.c:1.7 --- src/sys/dev/pci/voyager/pwmclock.c:1.6 Sat Jun 2 17:36:45 2012 +++ src/sys/dev/pci/voyager/pwmclock.c Mon Apr 15 15:46:16 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: pwmclock.c,v 1.6 2012/06/02 21:36:45 dsl Exp $ */ +/* $NetBSD: pwmclock.c,v 1.7 2013/04/15 19:46:16 christos Exp $ */ /* * Copyright (c) 2011 Michael Lorenz @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pwmclock.c,v 1.6 2012/06/02 21:36:45 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pwmclock.c,v 1.7 2013/04/15 19:46:16 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -157,8 +157,10 @@ pwmclock_attach(device_t parent, device_ /* ok, let's see how far the cycle counter gets between interrupts */ DPRINTF("calibrating CPU timer...\n"); for (clk = 1; clk < 8; clk++) { +#if 0 REGVAL(LS2F_CHIPCFG0) = (REGVAL(LS2F_CHIPCFG0) & ~LS2FCFG_FREQSCALE_MASK) | clk; +#endif bus_space_write_4(sc->sc_memt, sc->sc_regh, SM502_PWM1, sc->sc_reg); acc = 0; @@ -234,8 +236,10 @@ pwmclock_shutdown(void *cookie) /* just in case the interrupt handler runs again after this */ sc->sc_step_wanted = 7; /* set the clock to full speed */ +#if 0 REGVAL(LS2F_CHIPCFG0) = (REGVAL(LS2F_CHIPCFG0) & ~LS2FCFG_FREQSCALE_MASK) | 7; +#endif } void @@ -292,9 +296,11 @@ pwmclock_intr(void *cookie) * we only change sc_step after doing that */ if (sc->sc_step_wanted != sc->sc_step) { +#if 0 REGVAL(LS2F_CHIPCFG0) = (REGVAL(LS2F_CHIPCFG0) & ~LS2FCFG_FREQSCALE_MASK) | sc->sc_step_wanted; +#endif } now = mips3_cp0_count_read();