freq.h 977 B

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