freq.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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_SH7763) || \
  25. defined(CONFIG_CPU_SUBTYPE_SH7780)
  26. #define FRQCR 0xffc80000
  27. #elif defined(CONFIG_CPU_SUBTYPE_SH7724)
  28. #define FRQCRA 0xa4150000
  29. #define FRQCRB 0xa4150004
  30. #define VCLKCR 0xa4150048
  31. #define FCLKACR 0xa4150008
  32. #define FCLKBCR 0xa415000c
  33. #define FRQCR FRQCRA
  34. #define SCLKACR FCLKACR
  35. #define SCLKBCR FCLKBCR
  36. #define FCLKACR 0xa4150008
  37. #define FCLKBCR 0xa415000c
  38. #define IrDACLKCR 0xa4150018
  39. #define MSTPCR0 0xa4150030
  40. #define MSTPCR1 0xa4150034
  41. #define MSTPCR2 0xa4150038
  42. #elif defined(CONFIG_CPU_SUBTYPE_SH7785)
  43. #define FRQCR0 0xffc80000
  44. #define FRQCR1 0xffc80004
  45. #define FRQMR1 0xffc80014
  46. #elif defined(CONFIG_CPU_SUBTYPE_SH7786)
  47. #define FRQCR0 0xffc40000
  48. #define FRQCR1 0xffc40004
  49. #define FRQMR1 0xffc40014
  50. #elif defined(CONFIG_CPU_SUBTYPE_SHX3)
  51. #define FRQCR 0xffc00014
  52. #else
  53. #define FRQCR 0xffc00000
  54. #define FRQCR_PSTBY 0x0200
  55. #define FRQCR_PLLEN 0x0400
  56. #define FRQCR_CKOEN 0x0800
  57. #endif
  58. #define MIN_DIVISOR_NR 0
  59. #define MAX_DIVISOR_NR 3
  60. #endif /* __ASM_CPU_SH4_FREQ_H */