aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s5p6440/include/mach/tick.h
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2010-01-14 08:15:39 +0900
committerBen Dooks <ben-linux@fluff.org>2010-01-15 19:16:27 +0900
commit5f3545f64a44b2b2dac34141dba23d18cdf40a92 (patch)
tree60bd51bbf274ccc32f00d320834e965b4a2afbc5 /arch/arm/mach-s5p6440/include/mach/tick.h
parentb7db51be43bc8f9943324a00b80e5d034de0a733 (diff)
ARM: S5P6440: Add Timer support
This patch adds timer support for S5P6440 CPU. Signed-off-by: Atul Dahiya <atul.dahiya@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5p6440/include/mach/tick.h')
-rw-r--r--arch/arm/mach-s5p6440/include/mach/tick.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-s5p6440/include/mach/tick.h b/arch/arm/mach-s5p6440/include/mach/tick.h
new file mode 100644
index 00000000000..0815aeb4f2c
--- /dev/null
+++ b/arch/arm/mach-s5p6440/include/mach/tick.h
@@ -0,0 +1,24 @@
+/* linux/arch/arm/mach-s5p6440/include/mach/tick.h
+ *
+ * Copyright (c) 2009 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com/
+ *
+ * S5P6440 - Timer tick support definitions
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+#ifndef __ASM_ARCH_TICK_H
+#define __ASM_ARCH_TICK_H __FILE__
+
+static inline u32 s3c24xx_ostimer_pending(void)
+{
+ u32 pend = __raw_readl(S5P_VA_VIC0 + VIC_RAW_STATUS);
+ return pend & (1 << (IRQ_TIMER4_VIC - S5P_IRQ_VIC0(0)));
+}
+
+#define TICK_MAX (0xffffffff)
+
+#endif /* __ASM_ARCH_TICK_H */