From 43fc4b8beda0c26479f8e897decc3e51a14fd12b Mon Sep 17 00:00:00 2001 From: Deepak Saxena Date: Tue, 23 Aug 2005 13:30:29 -0700 Subject: [PATCH] --- yaml --- r: 5989 b: refs/heads/master c: 9138dccbb9f39f12474554ef93dcc24de2e9c8f6 h: refs/heads/master i: 5987: a01c1a8c0a1c79cc61eb05bb684f35f2ef38b71f v: v3 --- [refs] | 2 +- trunk/include/asm-arm/arch-ixp4xx/timex.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 2c9a3006b5ba..3c88201ec22b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d10689b68aff7b48e3de1a3f7fcd6567bd2905af +refs/heads/master: 9138dccbb9f39f12474554ef93dcc24de2e9c8f6 diff --git a/trunk/include/asm-arm/arch-ixp4xx/timex.h b/trunk/include/asm-arm/arch-ixp4xx/timex.h index 38c9d77d3727..3745e35cc030 100644 --- a/trunk/include/asm-arm/arch-ixp4xx/timex.h +++ b/trunk/include/asm-arm/arch-ixp4xx/timex.h @@ -7,7 +7,9 @@ /* * We use IXP425 General purpose timer for our timer needs, it runs at - * 66.66... MHz + * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the + * timer register ignores the bottom 2 bits of the LATCH value. */ -#define CLOCK_TICK_RATE (66666666) +#define FREQ 66666666 +#define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ)