freq.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_SH7785)
  28. #define FRQCR0 0xffc80000
  29. #define FRQCR1 0xffc80004
  30. #define FRQMR1 0xffc80014
  31. #elif defined(CONFIG_CPU_SUBTYPE_SH7786)
  32. #define FRQCR0 0xffc40000
  33. #define FRQCR1 0xffc40004
  34. #define FRQMR1 0xffc40014
  35. #elif defined(CONFIG_CPU_SUBTYPE_SHX3)
  36. #define FRQCR 0xffc00014
  37. #else
  38. #define FRQCR 0xffc00000
  39. #define FRQCR_PSTBY 0x0200
  40. #define FRQCR_PLLEN 0x0400
  41. #define FRQCR_CKOEN 0x0800
  42. #endif
  43. #define MIN_DIVISOR_NR 0
  44. #define MAX_DIVISOR_NR 3
  45. #endif /* __ASM_CPU_SH4_FREQ_H */