diff options
author | cognet <cognet@FreeBSD.org> | 2005-12-09 23:52:51 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-12-09 23:52:51 +0000 |
commit | 24415ea106fd2499e40da73abdab7a32d7b00cdb (patch) | |
tree | eddd4eff56d3da42425157cd6434c82f11861812 /sys/arm/xscale/i80321/i80321_timer.c | |
parent | 29be5fb867706a87e60198e9b048335309b7edae (diff) | |
download | FreeBSD-src-24415ea106fd2499e40da73abdab7a32d7b00cdb.zip FreeBSD-src-24415ea106fd2499e40da73abdab7a32d7b00cdb.tar.gz |
The IQ80321 clock is 200MHz, but the IQ80321 is 198MHz, so add a kernel option
to override the frequency
Diffstat (limited to 'sys/arm/xscale/i80321/i80321_timer.c')
-rw-r--r-- | sys/arm/xscale/i80321/i80321_timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/xscale/i80321/i80321_timer.c b/sys/arm/xscale/i80321/i80321_timer.c index 66d34ef..c309cc0 100644 --- a/sys/arm/xscale/i80321/i80321_timer.c +++ b/sys/arm/xscale/i80321/i80321_timer.c @@ -61,6 +61,8 @@ __FBSDID("$FreeBSD$"); #include <arm/xscale/xscalevar.h> +#include "opt_timer.h" + void (*i80321_hardclock_hook)(void) = NULL; struct i80321_timer_softc { device_t dev; @@ -74,7 +76,10 @@ static uint32_t counts_per_hz; static int ticked = 0; +#ifndef COUNTS_PER_SEC #define COUNTS_PER_SEC 200000000 /* 200MHz */ +#endif + #define COUNTS_PER_USEC (COUNTS_PER_SEC / 1000000) static struct timecounter i80321_timer_timecounter = { |