freq.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_SH7366)
  15. #define FRQCR 0xa4150000
  16. #define VCLKCR 0xa4150004
  17. #define SCLKACR 0xa4150008
  18. #define SCLKBCR 0xa415000c
  19. #define IrDACLKCR 0xa4150010
  20. #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \
  21. defined(CONFIG_CPU_SUBTYPE_SH7780)
  22. #define FRQCR 0xffc80000
  23. #elif defined(CONFIG_CPU_SUBTYPE_SH7785)
  24. #define FRQCR0 0xffc80000
  25. #define FRQCR1 0xffc80004
  26. #define FRQMR1 0xffc80014
  27. #elif defined(CONFIG_CPU_SUBTYPE_SHX3)
  28. #define FRQCR 0xffc00014
  29. #else
  30. #define FRQCR 0xffc00000
  31. #define FRQCR_PSTBY 0x0200
  32. #define FRQCR_PLLEN 0x0400
  33. #define FRQCR_CKOEN 0x0800
  34. #endif
  35. #define MIN_DIVISOR_NR 0
  36. #define MAX_DIVISOR_NR 3
  37. #endif /* __ASM_CPU_SH4_FREQ_H */