s5p-time.h 962 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef __ASM_PLAT_S5P_TIME_H
  13. #define __ASM_PLAT_S5P_TIME_H __FILE__
  14. /* S5P HR-Timer Clock mode */
  15. enum s5p_timer_mode {
  16. S5P_PWM0,
  17. S5P_PWM1,
  18. S5P_PWM2,
  19. S5P_PWM3,
  20. S5P_PWM4,
  21. };
  22. struct s5p_timer_source {
  23. unsigned int event_id;
  24. unsigned int source_id;
  25. };
  26. /* Be able to sleep for atleast 4 seconds (usually more) */
  27. #define S5PTIMER_MIN_RANGE 4
  28. #define TCNT_MAX 0xffffffff
  29. #define NON_PERIODIC 0
  30. #define PERIODIC 1
  31. extern void __init s5p_set_timer_source(enum s5p_timer_mode event,
  32. enum s5p_timer_mode source);
  33. extern struct sys_timer s5p_timer;
  34. #endif /* __ASM_PLAT_S5P_TIME_H */