Commit 44421e42 authored by Sascha Hauer's avatar Sascha Hauer

[ARM] MXC: do not include mach/hardware.h from mach/timex.h

Instead of including other header files, define CLOCK_TICK_RATE directly
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 9d631b83
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
#include <mach/vmalloc.h> #include <mach/vmalloc.h>
/*
* defines the hardware clock tick rate
*/
#define CLOCK_TICK_RATE 16000000
#define PHYS_OFFSET UL(0x08000000) #define PHYS_OFFSET UL(0x08000000)
/* /*
......
...@@ -289,9 +289,6 @@ extern int mx27_revision(void); ...@@ -289,9 +289,6 @@ extern int mx27_revision(void);
/* this CPU supports up to 192 GPIOs (don't forget the baseboard!) */ /* this CPU supports up to 192 GPIOs (don't forget the baseboard!) */
#define ARCH_NR_GPIOS (192 + 16) #define ARCH_NR_GPIOS (192 + 16)
/* OS clock tick rate */
#define CLOCK_TICK_RATE 13300000
/* Start of RAM */ /* Start of RAM */
#define PHYS_OFFSET SDRAM_BASE_ADDR #define PHYS_OFFSET SDRAM_BASE_ADDR
......
...@@ -15,11 +15,6 @@ ...@@ -15,11 +15,6 @@
#error "Do not include directly." #error "Do not include directly."
#endif #endif
/*!
* defines the hardware clock tick rate
*/
#define CLOCK_TICK_RATE 16625000
/* /*
* MX31 memory map: * MX31 memory map:
* *
......
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
#ifndef __ASM_ARCH_MXC_TIMEX_H__ #ifndef __ASM_ARCH_MXC_TIMEX_H__
#define __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__ */ #endif /* __ASM_ARCH_MXC_TIMEX_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment