timer.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * include/asm-sh/cpu-sh4/timer.h
  3. *
  4. * Copyright (C) 2004 Lineo Solutions, Inc.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef __ASM_CPU_SH4_TIMER_H
  11. #define __ASM_CPU_SH4_TIMER_H
  12. /*
  13. * ---------------------------------------------------------------------------
  14. * TMU Common definitions for SH4 processors
  15. * SH7750S/SH7750R
  16. * SH7751/SH7751R
  17. * SH7760
  18. * SH-X3
  19. * ---------------------------------------------------------------------------
  20. */
  21. #ifdef CONFIG_CPU_SUBTYPE_SHX3
  22. #define TMU_012_BASE 0xffc10000
  23. #define TMU_345_BASE 0xffc20000
  24. #else
  25. #define TMU_012_BASE 0xffd80000
  26. #define TMU_345_BASE 0xfe100000
  27. #endif
  28. #define TMU_TOCR TMU_012_BASE /* Not supported on all CPUs */
  29. #define TMU_012_TSTR (TMU_012_BASE + 0x04)
  30. #define TMU_345_TSTR (TMU_345_BASE + 0x04)
  31. #define TMU0_TCOR (TMU_012_BASE + 0x08)
  32. #define TMU0_TCNT (TMU_012_BASE + 0x0c)
  33. #define TMU0_TCR (TMU_012_BASE + 0x10)
  34. #define TMU1_TCOR (TMU_012_BASE + 0x14)
  35. #define TMU1_TCNT (TMU_012_BASE + 0x18)
  36. #define TMU1_TCR (TMU_012_BASE + 0x1c)
  37. #define TMU2_TCOR (TMU_012_BASE + 0x20)
  38. #define TMU2_TCNT (TMU_012_BASE + 0x24)
  39. #define TMU2_TCR (TMU_012_BASE + 0x28)
  40. #define TMU2_TCPR (TMU_012_BASE + 0x2c)
  41. #define TMU3_TCOR (TMU_345_BASE + 0x08)
  42. #define TMU3_TCNT (TMU_345_BASE + 0x0c)
  43. #define TMU3_TCR (TMU_345_BASE + 0x10)
  44. #define TMU4_TCOR (TMU_345_BASE + 0x14)
  45. #define TMU4_TCNT (TMU_345_BASE + 0x18)
  46. #define TMU4_TCR (TMU_345_BASE + 0x1c)
  47. #define TMU5_TCOR (TMU_345_BASE + 0x20)
  48. #define TMU5_TCNT (TMU_345_BASE + 0x24)
  49. #define TMU5_TCR (TMU_345_BASE + 0x28)
  50. #endif /* __ASM_CPU_SH4_TIMER_H */