aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24a0
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-21 09:06:35 -0400
committerBen Dooks <ben-linux@fluff.org>2008-12-15 16:46:41 -0500
commit9bc1aaeac0118611c30edf84995ebad5adfd6822 (patch)
treea274b3dfe8c52c191c6483877fb302418f26b480 /arch/arm/mach-s3c24a0
parentbcae8aeb320dfe8dde4b3512237a5b76737b0120 (diff)
[ARM] S3C24XX: Split timer pending code out
Split the timer pending code out to a seperate per-machine header so that when compiling for mach-s3c2410 or mach-s3c24a0 we can use the right timer code without having to #ifdef the timer driver. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c24a0')
-rw-r--r--arch/arm/mach-s3c24a0/include/mach/tick.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24a0/include/mach/tick.h b/arch/arm/mach-s3c24a0/include/mach/tick.h
new file mode 100644
index 000000000000..9dea8ba6fb72
--- /dev/null
+++ b/arch/arm/mach-s3c24a0/include/mach/tick.h
@@ -0,0 +1,15 @@
1/* linux/arch/arm/mach-s3c24a0/include/mach/tick.h
2 *
3 * Copyright 2008 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 * http://armlinux.simtec.co.uk/
6 *
7 * S3C24A0 - timer tick support
8 */
9
10#define SUBSRC_TIMER4 (1 << (IRQ_TIMER4 - IRQ_S3CUART_RX0))
11
12static inline int s3c24xx_ostimer_pending(void)
13{
14 return __raw_readl(S3C2410_SUBSRCPND) & SUBSRC_TIMER4;
15}