-/* $OpenBSD: agtimer.c,v 1.10 2020/07/12 20:36:37 naddy Exp $ */
+/* $OpenBSD: agtimer.c,v 1.11 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
OF_getpropint(sc->sc_node, "clock-frequency", agtimer_frequency);
sc->sc_ticks_per_second = agtimer_frequency;
- printf(": tick rate %d KHz\n", sc->sc_ticks_per_second /1000);
+ printf(": %d kHz\n", sc->sc_ticks_per_second / 1000);
/* XXX: disable user access */
sc->sc_ticks_per_second = agtimer_frequency;
agtimer_timecounter.tc_frequency = sc->sc_ticks_per_second;
- printf("agtimer0: adjusting clock: new tick rate %d KHz\n",
- sc->sc_ticks_per_second /1000);
+ printf("agtimer0: adjusting clock: new rate %d kHz\n",
+ sc->sc_ticks_per_second / 1000);
}
void
-/* $OpenBSD: amptimer.c,v 1.9 2020/07/14 15:34:14 patrick Exp $ */
+/* $OpenBSD: amptimer.c,v 1.10 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
panic("amptimer_attach: bus_space_map priv timer failed!");
sc->sc_ticks_per_second = amptimer_frequency;
- printf(": tick rate %d KHz\n", sc->sc_ticks_per_second /1000);
+ printf(": %d kHz\n", sc->sc_ticks_per_second / 1000);
sc->sc_ioh = ioh;
sc->sc_pioh = pioh;
sc->sc_ticks_per_second = amptimer_frequency;
amptimer_timecounter.tc_frequency = sc->sc_ticks_per_second;
- printf("amptimer0: adjusting clock: new tick rate %d KHz\n",
- sc->sc_ticks_per_second /1000);
+ printf("amptimer0: adjusting clock: new rate %d kHz\n",
+ sc->sc_ticks_per_second / 1000);
}
void
-/* $OpenBSD: amdisplay.c,v 1.12 2020/05/25 09:55:48 jsg Exp $ */
+/* $OpenBSD: amdisplay.c,v 1.13 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2016 Ian Sutton <ians@openbsd.org>
*
#define DEVNAME(_s) ((_s)->sc_dev.dv_xname)
-#define LCD_MAX_PELCLK 170000 /* KHz */
+#define LCD_MAX_PELCLK 170000 /* kHz */
#define LCD_MASTER_OSC 24000000 /* Hz */
#define LCD_M1_MAX 2048
#define LCD_M2_MAX 31
}
i = 0;
- printf("%s: %s :: %d KHz pclk\n", DEVNAME(sc),
+ printf("%s: %s :: %d kHz pclk\n", DEVNAME(sc),
sc->sc_active_mode->name, sc->sc_active_mode->dot_clock);
pel_clk *= 2000;
-/* $OpenBSD: dmtimer.c,v 1.8 2019/05/06 03:45:58 mlarkin Exp $ */
+/* $OpenBSD: dmtimer.c,v 1.9 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Raphael Graf <r@undefined.ch>
/*
* would be interesting to play with trigger mode while having one timer
- * in 32KHz mode, and the other timer running in sysclk mode and use
+ * in 32kHz mode, and the other timer running in sysclk mode and use
* the high resolution speeds (matters more for delay than tick timer
*/
-/* $OpenBSD: gptimer.c,v 1.10 2021/01/19 12:29:07 kettenis Exp $ */
+/* $OpenBSD: gptimer.c,v 1.11 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
/*
* would be interesting to play with trigger mode while having one timer
- * in 32KHz mode, and the other timer running in sysclk mode and use
+ * in 32kHz mode, and the other timer running in sysclk mode and use
* the high resolution speeds (matters more for delay than tick timer
*/
-/* $OpenBSD: ommmc.c,v 1.37 2020/07/05 06:56:34 jsg Exp $ */
+/* $OpenBSD: ommmc.c,v 1.38 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
struct device *sdmmc; /* generic SD/MMC device */
int clockbit; /* clock control bit */
- uint32_t clkbase; /* base clock frequency in KHz */
+ uint32_t clkbase; /* base clock frequency in kHz */
int maxblklen; /* maximum block length */
int flags; /* flags for this host */
uint32_t ocr; /* OCR value from capabilities */
/*
* Return the smallest possible base clock frequency divisor value
- * for the CLOCK_CTL register to produce `freq' (KHz).
+ * for the CLOCK_CTL register to produce `freq' (kHz).
*/
static int
ommmc_clock_divisor(struct ommmc_softc *sc, uint32_t freq)
-/* $OpenBSD: prcm.c,v 1.14 2020/04/05 13:11:13 kettenis Exp $ */
+/* $OpenBSD: prcm.c,v 1.15 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
uint32_t prcm_fmask_addr[PRCM_REG_MAX];
#define SYS_CLK 13 /* SYS_CLK speed in MHz */
-#define PRCM_AM335X_MASTER_OSC 24000 /* KHz */
+#define PRCM_AM335X_MASTER_OSC 24000 /* kHz */
struct prcm_softc {
-/* $OpenBSD: sxitimer.c,v 1.14 2020/07/06 13:33:07 pirofti Exp $ */
+/* $OpenBSD: sxitimer.c,v 1.15 2021/01/19 18:04:43 kettenis Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Raphael Graf <r@undefined.ch>
arm_clock_register(sxitimer_cpu_initclocks, sxitimer_delay,
sxitimer_setstatclockrate, NULL);
- printf(": cntrtimer @ %dKHz", freq / 1000);
+ printf(": %d kHz", freq / 1000);
bus_space_write_4(sxitimer_iot, sxitimer_ioh,
TIMER_INTV(CNTRTIMER), ival);
/*
* would be interesting to play with trigger mode while having one timer
- * in 32KHz mode, and the other timer running in sysclk mode and use
+ * in 32kHz mode, and the other timer running in sysclk mode and use
* the high resolution speeds (matters more for delay than tick timer)
*/