diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2005-12-09 23:52:51 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2005-12-09 23:52:51 +0000 |
commit | 527962c8c7ba07b462efdd6ffef57a939e94fd15 (patch) | |
tree | eddd4eff56d3da42425157cd6434c82f11861812 | |
parent | b34658e8a9c1c6532d9ee2b8d1981669adf3d1f7 (diff) | |
download | src-527962c8c7ba07b462efdd6ffef57a939e94fd15.tar.gz src-527962c8c7ba07b462efdd6ffef57a939e94fd15.zip |
The IQ80321 clock is 200MHz, but the IQ80321 is 198MHz, so add a kernel option
to override the frequency
Notes
Notes:
svn path=/head/; revision=153277
-rw-r--r-- | sys/arm/xscale/i80321/i80321_timer.c | 5 | ||||
-rw-r--r-- | sys/arm/xscale/i80321/std.iq31244 | 1 | ||||
-rw-r--r-- | sys/conf/options.arm | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/sys/arm/xscale/i80321/i80321_timer.c b/sys/arm/xscale/i80321/i80321_timer.c index 66d34efdc3d2..c309cc032047 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 = { diff --git a/sys/arm/xscale/i80321/std.iq31244 b/sys/arm/xscale/i80321/std.iq31244 index 5994c6a8e360..c4c23bf7d620 100644 --- a/sys/arm/xscale/i80321/std.iq31244 +++ b/sys/arm/xscale/i80321/std.iq31244 @@ -4,3 +4,4 @@ include "../xscale/i80321/std.i80321" files "../xscale/i80321/files.iq31244" makeoptions KERNPHYSADDR=0xa0200000 makeoptions KERNVIRTADDR=0xc0200000 +options COUNTS_PER_SEC=198000000 diff --git a/sys/conf/options.arm b/sys/conf/options.arm index 22c80c3edbcf..d623efafd366 100644 --- a/sys/conf/options.arm +++ b/sys/conf/options.arm @@ -4,6 +4,7 @@ ARM9_CACHE_WRITE_THROUGH opt_global.h ARM_CACHE_LOCK_ENABLE opt_global.h ARMFPE opt_global.h ARM_USE_SMALL_ALLOC opt_global.h +COUNTS_PER_SEC opt_timer.h CPU_SA1100 opt_global.h CPU_SA1110 opt_global.h CPU_ARM9 opt_global.h |