aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2011-11-08 13:34:04 -0500
committerDavid Brown <davidb@codeaurora.org>2011-11-10 13:36:33 -0500
commit4a1840755294b2a14236ee7b9c74ede261156b09 (patch)
tree6e38f4ea3a5a84b4f074b7d76778de4d022fd9d7 /arch/arm/mach-msm
parent2852ccaed4461365e6627fadb9e214a52fa3c600 (diff)
msm: timer: Cleanup #includes and #defines
Remove unused/unnecessary #defines, #includes, and use the BIT macro appropriately. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/timer.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c
index 1cab55983d5..ce389ca4950 100644
--- a/arch/arm/mach-msm/timer.c
+++ b/arch/arm/mach-msm/timer.c
@@ -13,44 +13,32 @@
13 * 13 *
14 */ 14 */
15 15
16#include <linux/clocksource.h>
17#include <linux/clockchips.h>
16#include <linux/init.h> 18#include <linux/init.h>
17#include <linux/time.h>
18#include <linux/interrupt.h> 19#include <linux/interrupt.h>
19#include <linux/irq.h> 20#include <linux/irq.h>
20#include <linux/clk.h>
21#include <linux/clockchips.h>
22#include <linux/delay.h>
23#include <linux/io.h> 21#include <linux/io.h>
24 22
25#include <asm/mach/time.h> 23#include <asm/mach/time.h>
26#include <asm/hardware/gic.h> 24#include <asm/hardware/gic.h>
25#include <asm/localtimer.h>
27 26
28#include <mach/msm_iomap.h> 27#include <mach/msm_iomap.h>
29#include <mach/cpu.h> 28#include <mach/cpu.h>
29#include <mach/board.h>
30 30
31#define TIMER_MATCH_VAL 0x0000 31#define TIMER_MATCH_VAL 0x0000
32#define TIMER_COUNT_VAL 0x0004 32#define TIMER_COUNT_VAL 0x0004
33#define TIMER_ENABLE 0x0008 33#define TIMER_ENABLE 0x0008
34#define TIMER_ENABLE_CLR_ON_MATCH_EN 2 34#define TIMER_ENABLE_CLR_ON_MATCH_EN BIT(1)
35#define TIMER_ENABLE_EN 1 35#define TIMER_ENABLE_EN BIT(0)
36#define TIMER_CLEAR 0x000C 36#define TIMER_CLEAR 0x000C
37#define DGT_CLK_CTL 0x0034 37#define DGT_CLK_CTL 0x0034
38enum { 38#define DGT_CLK_CTL_DIV_4 0x3
39 DGT_CLK_CTL_DIV_1 = 0,
40 DGT_CLK_CTL_DIV_2 = 1,
41 DGT_CLK_CTL_DIV_3 = 2,
42 DGT_CLK_CTL_DIV_4 = 3,
43};
44#define CSR_PROTECTION 0x0020
45#define CSR_PROTECTION_EN 1
46 39
47#define GPT_HZ 32768 40#define GPT_HZ 32768
48 41
49enum timer_location {
50 LOCAL_TIMER = 0,
51 GLOBAL_TIMER = 1,
52};
53
54#define MSM_GLOBAL_TIMER MSM_CLOCK_DGT 42#define MSM_GLOBAL_TIMER MSM_CLOCK_DGT
55 43
56/* TODO: Remove these ifdefs */ 44/* TODO: Remove these ifdefs */