diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2010-02-04 09:42:13 +0900 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-02-24 01:52:15 +0000 |
commit | b6f837575edc5213e00903afea240f0119ee5ec9 (patch) | |
tree | d115bae68ec67a5abf8663579e192f5c8ed856a2 /arch/arm/mach-s5p6442/include/mach/tick.h | |
parent | 5f7f6a4a0df9b43051d57fdb8ea96c083247a08f (diff) |
ARM: S5P6442: Add clock support for S5P6442
This patch adds clock support for S5P6442. This patch adds the clock
register definitions and the various system clocks in S5P6442.
Signed-off-by: Adityapratap Sharma <aditya.ps@samsung.com>
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-s5p6442/include/mach/tick.h')
-rw-r--r-- | arch/arm/mach-s5p6442/include/mach/tick.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-s5p6442/include/mach/tick.h b/arch/arm/mach-s5p6442/include/mach/tick.h new file mode 100644 index 00000000000..e1d4cabf829 --- /dev/null +++ b/arch/arm/mach-s5p6442/include/mach/tick.h @@ -0,0 +1,26 @@ +/* linux/arch/arm/mach-s5p6442/include/mach/tick.h + * + * Copyright (c) 2010 Samsung Electronics Co., Ltd. + * http://www.samsung.com/ + * + * Based on arch/arm/mach-s3c6400/include/mach/tick.h + * + * S5P6442 - 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(VA_VIC0 + VIC_RAW_STATUS); + return pend & (1 << (IRQ_TIMER4_VIC - S5P_IRQ_VIC0(0))); +} + +#define TICK_MAX (0xffffffff) + +#endif /* __ASM_ARCH_TICK_H */ |