]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
msm: timer: allow MSM_DGT_BASE to be overriden
authorDaniel Walker <dwalker@codeaurora.org>
Thu, 13 May 2010 22:39:52 +0000 (15:39 -0700)
committerDaniel Walker <dwalker@codeaurora.org>
Thu, 13 May 2010 23:08:26 +0000 (16:08 -0700)
Some SoC need to redefine MSM_DGT_BASE from it's default.
This allows it to be defined in a header to override the
default value.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/timer.c

index 4855b8ca51014443663b5dcaed57ae5c81ef92d8..dec5ca622d7daf6963450f612d7062109cae6e92 100644 (file)
@@ -25,7 +25,9 @@
 #include <asm/mach/time.h>
 #include <mach/msm_iomap.h>
 
+#ifndef MSM_DGT_BASE
 #define MSM_DGT_BASE (MSM_GPT_BASE + 0x10)
+#endif
 #define MSM_DGT_SHIFT (5)
 
 #define TIMER_MATCH_VAL         0x0000