freq.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * include/asm-sh/cpu-sh4/freq.h
  3. *
  4. * Copyright (C) 2002, 2003 Paul Mundt
  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_FREQ_H
  11. #define __ASM_CPU_SH4_FREQ_H
  12. #if defined(CONFIG_CPU_SUBTYPE_SH7722) || \
  13. defined(CONFIG_CPU_SUBTYPE_SH7723) || \
  14. defined(CONFIG_CPU_SUBTYPE_SH7343) || \
  15. defined(CONFIG_CPU_SUBTYPE_SH7366)
  16. #define FRQCR 0xa4150000
  17. #define VCLKCR 0xa4150004
  18. #define SCLKACR 0xa4150008
  19. #define SCLKBCR 0xa415000c
  20. #define IrDACLKCR 0xa4150010
  21. #define MSTPCR0 0xa4150030
  22. #define MSTPCR1 0xa4150034
  23. #define MSTPCR2 0xa4150038
  24. #elif defined(CONFIG_CPU_SUBTYPE_SH7757)
  25. #define FRQCR 0xffc80000
  26. #define OSCCR 0xffc80018
  27. #define PLLCR 0xffc80024
  28. #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \
  29. defined(CONFIG_CPU_SUBTYPE_SH7780)
  30. #define FRQCR 0xffc80000
  31. #elif defined(CONFIG_CPU_SUBTYPE_SH7724)
  32. #define FRQCRA 0xa4150000
  33. #define FRQCRB 0xa4150004
  34. #define VCLKCR 0xa4150048
  35. #define FCLKACR 0xa4150008
  36. #define FCLKBCR 0xa415000c
  37. #define FRQCR FRQCRA
  38. #define SCLKACR FCLKACR
  39. #define SCLKBCR FCLKBCR
  40. #define FCLKACR 0xa4150008
  41. #define FCLKBCR 0xa415000c
  42. #define IrDACLKCR 0xa4150018
  43. #define MSTPCR0 0xa4150030
  44. #define MSTPCR1 0xa4150034
  45. #define MSTPCR2 0xa4150038
  46. #elif defined(CONFIG_CPU_SUBTYPE_SH7734)
  47. #define FRQCR0 0xffc80000
  48. #define FRQCR2 0xffc80008
  49. #define FRQMR1 0xffc80014
  50. #define FRQMR2 0xffc80018
  51. #elif defined(CONFIG_CPU_SUBTYPE_SH7785)
  52. #define FRQCR0 0xffc80000
  53. #define FRQCR1 0xffc80004
  54. #define FRQMR1 0xffc80014
  55. #elif defined(CONFIG_CPU_SUBTYPE_SH7786)
  56. #define FRQCR0 0xffc40000
  57. #define FRQCR1 0xffc40004
  58. #define FRQMR1 0xffc40014
  59. #elif defined(CONFIG_CPU_SUBTYPE_SHX3)
  60. #define FRQCR0 0xffc00000
  61. #define FRQCR1 0xffc00004
  62. #define FRQMR1 0xffc00014
  63. #else
  64. #define FRQCR 0xffc00000
  65. #define FRQCR_PSTBY 0x0200
  66. #define FRQCR_PLLEN 0x0400
  67. #define FRQCR_CKOEN 0x0800
  68. #endif
  69. #define MIN_DIVISOR_NR 0
  70. #define MAX_DIVISOR_NR 3
  71. #endif /* __ASM_CPU_SH4_FREQ_H */