From 8b4563979992dc0e3b0d4e4926e655bc2048e499 Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Sat, 29 May 2004 22:50:19 +0100 Subject: [PATCH] [ARM PATCH] 1872/1: base clock difference between PXA25x and PXA27x Patch from Nicolas Pitre --- include/asm-arm/arch-pxa/timex.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/include/asm-arm/arch-pxa/timex.h b/include/asm-arm/arch-pxa/timex.h index fab199fc334e..aa125ec56a32 100644 --- a/include/asm-arm/arch-pxa/timex.h +++ b/include/asm-arm/arch-pxa/timex.h @@ -10,8 +10,16 @@ * published by the Free Software Foundation. */ -/* - * PXA250/210 timer - */ -#define CLOCK_TICK_RATE 3686400 -#define CLOCK_TICK_FACTOR 80 +#include + +#if defined(CONFIG_PXA25x) +/* PXA250/210 timer base */ +#define CLOCK_TICK_RATE 3686400 +#elif defined(CONFIG_PXA27x) +/* PXA27x timer base */ +#ifdef CONFIG_MACH_MAINSTONE +#define CLOCK_TICK_RATE 3249600 +#else +#define CLOCK_TICK_RATE 3250000 +#endif +#endif -- 2.39.5