ARM: SAMSUNG: Move S3C24XX header files to plat-samsung
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / plat-s5p / include / plat / s5p-time.h
blob575e88109db8e364fe59b0b98e981dc32d591067
1 /* linux/arch/arm/plat-s5p/include/plat/s5p-time.h
3 * Copyright 2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
6 * Header file for s5p time support
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __ASM_PLAT_S5P_TIME_H
14 #define __ASM_PLAT_S5P_TIME_H __FILE__
16 /* S5P HR-Timer Clock mode */
17 enum s5p_timer_mode {
18 S5P_PWM0,
19 S5P_PWM1,
20 S5P_PWM2,
21 S5P_PWM3,
22 S5P_PWM4,
25 struct s5p_timer_source {
26 unsigned int event_id;
27 unsigned int source_id;
30 /* Be able to sleep for atleast 4 seconds (usually more) */
31 #define S5PTIMER_MIN_RANGE 4
33 #define TCNT_MAX 0xffffffff
34 #define NON_PERIODIC 0
35 #define PERIODIC 1
37 extern void __init s5p_set_timer_source(enum s5p_timer_mode event,
38 enum s5p_timer_mode source);
39 extern struct sys_timer s5p_timer;
40 #endif /* __ASM_PLAT_S5P_TIME_H */