regs-mct.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* arch/arm/mach-exynos4/include/mach/regs-mct.h
  2. *
  3. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * EXYNOS4 MCT configutation
  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_ARCH_REGS_MCT_H
  13. #define __ASM_ARCH_REGS_MCT_H __FILE__
  14. #include <mach/map.h>
  15. #define EXYNOS4_MCTREG(x) (S5P_VA_SYSTIMER + (x))
  16. #define EXYNOS4_MCT_G_CNT_L EXYNOS4_MCTREG(0x100)
  17. #define EXYNOS4_MCT_G_CNT_U EXYNOS4_MCTREG(0x104)
  18. #define EXYNOS4_MCT_G_CNT_WSTAT EXYNOS4_MCTREG(0x110)
  19. #define EXYNOS4_MCT_G_COMP0_L EXYNOS4_MCTREG(0x200)
  20. #define EXYNOS4_MCT_G_COMP0_U EXYNOS4_MCTREG(0x204)
  21. #define EXYNOS4_MCT_G_COMP0_ADD_INCR EXYNOS4_MCTREG(0x208)
  22. #define EXYNOS4_MCT_G_TCON EXYNOS4_MCTREG(0x240)
  23. #define EXYNOS4_MCT_G_INT_CSTAT EXYNOS4_MCTREG(0x244)
  24. #define EXYNOS4_MCT_G_INT_ENB EXYNOS4_MCTREG(0x248)
  25. #define EXYNOS4_MCT_G_WSTAT EXYNOS4_MCTREG(0x24C)
  26. #define EXYNOS4_MCT_L0_BASE EXYNOS4_MCTREG(0x300)
  27. #define EXYNOS4_MCT_L1_BASE EXYNOS4_MCTREG(0x400)
  28. #define MCT_L_TCNTB_OFFSET (0x00)
  29. #define MCT_L_ICNTB_OFFSET (0x08)
  30. #define MCT_L_TCON_OFFSET (0x20)
  31. #define MCT_L_INT_CSTAT_OFFSET (0x30)
  32. #define MCT_L_INT_ENB_OFFSET (0x34)
  33. #define MCT_L_WSTAT_OFFSET (0x40)
  34. #define MCT_G_TCON_START (1 << 8)
  35. #define MCT_G_TCON_COMP0_AUTO_INC (1 << 1)
  36. #define MCT_G_TCON_COMP0_ENABLE (1 << 0)
  37. #define MCT_L_TCON_INTERVAL_MODE (1 << 2)
  38. #define MCT_L_TCON_INT_START (1 << 1)
  39. #define MCT_L_TCON_TIMER_START (1 << 0)
  40. #endif /* __ASM_ARCH_REGS_MCT_H */