1 /* linux/arch/arm/plat-samsung/include/plat/s5p-time.h 2 * 3 * Copyright 2011 Samsung Electronics Co., Ltd. 4 * http://www.samsung.com/ 5 * 6 * Header file for s5p time support 7 * 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. 11 */ 12 13 #ifndef __ASM_PLAT_S5P_TIME_H 14 #define __ASM_PLAT_S5P_TIME_H __FILE__ 15 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, 23 }; 24 25 struct s5p_timer_source { 26 unsigned int event_id; 27 unsigned int source_id; 28 }; 29 30 /* Be able to sleep for atleast 4 seconds (usually more) */ 31 #define S5PTIMER_MIN_RANGE 4 32 33 #define TCNT_MAX 0xffffffff 34 #define NON_PERIODIC 0 35 #define PERIODIC 1 36 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 */ 41