[ARM] MXC: do not include mach/hardware.h from mach/timex.h
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 18 Dec 2008 10:24:03 +0000 (11:24 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 18 Dec 2008 15:40:12 +0000 (16:40 +0100)
Instead of including other header files, define CLOCK_TICK_RATE directly

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/include/mach/mx1.h
arch/arm/plat-mxc/include/mach/mx27.h
arch/arm/plat-mxc/include/mach/mx31.h
arch/arm/plat-mxc/include/mach/timex.h

index c45bf5f..8476a15 100644 (file)
 
 #include <mach/vmalloc.h>
 
-/*
- * defines the hardware clock tick rate
- */
-#define CLOCK_TICK_RATE        16000000
-
 #define PHYS_OFFSET    UL(0x08000000)
 
 /*
index 55bcbd5..ae86374 100644 (file)
@@ -289,9 +289,6 @@ extern int mx27_revision(void);
 /* this CPU supports up to 192 GPIOs (don't forget the baseboard!) */
 #define ARCH_NR_GPIOS          (192 + 16)
 
-/* OS clock tick rate */
-#define CLOCK_TICK_RATE         13300000
-
 /* Start of RAM */
 #define PHYS_OFFSET            SDRAM_BASE_ADDR
 
index 65c3109..2f6d9fc 100644 (file)
 #error "Do not include directly."
 #endif
 
-/*!
- * defines the hardware clock tick rate
- */
-#define CLOCK_TICK_RATE                16625000
-
 /*
  * MX31 memory map:
  *
index 0b0af02..07b4a73 100644 (file)
 #ifndef __ASM_ARCH_MXC_TIMEX_H__
 #define __ASM_ARCH_MXC_TIMEX_H__
 
-#include <mach/hardware.h>     /* for CLOCK_TICK_RATE */
+#if defined CONFIG_ARCH_MX1
+#define CLOCK_TICK_RATE                16000000
+#elif defined CONFIG_ARCH_MX2
+#define CLOCK_TICK_RATE                13300000
+#elif defined CONFIG_ARCH_MX3
+#define CLOCK_TICK_RATE                16625000
+#endif
 
 #endif                         /* __ASM_ARCH_MXC_TIMEX_H__ */