watchdog.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * include/asm-sh/cpu-sh4/watchdog.h
  3. *
  4. * Copyright (C) 2002, 2003 Paul Mundt
  5. * Copyright (C) 2009 Siemens AG
  6. * Copyright (C) 2009 Sitdikov Valentin
  7. *
  8. * This file is subject to the terms and conditions of the GNU General Public
  9. * License. See the file "COPYING" in the main directory of this archive
  10. * for more details.
  11. */
  12. #ifndef __ASM_CPU_SH4_WATCHDOG_H
  13. #define __ASM_CPU_SH4_WATCHDOG_H
  14. #if defined(CONFIG_CPU_SUBTYPE_SH7785) || defined(CONFIG_CPU_SUBTYPE_SH7780)
  15. /* Prefix definition */
  16. #define WTBST_HIGH 0x55
  17. /* Register definitions */
  18. #define WTCNT_R 0xffcc0010 /*WDTCNT*/
  19. #define WTCSR 0xffcc0004 /*WDTCSR*/
  20. #define WTCNT 0xffcc0000 /*WDTST*/
  21. #define WTST WTCNT
  22. #define WTBST 0xffcc0008 /*WDTBST*/
  23. /* Register definitions */
  24. #elif defined(CONFIG_CPU_SUBTYPE_SH7722) || \
  25. defined(CONFIG_CPU_SUBTYPE_SH7723) || \
  26. defined(CONFIG_CPU_SUBTYPE_SH7724)
  27. #define WTCNT 0xa4520000
  28. #define WTCSR 0xa4520004
  29. #else
  30. /* Register definitions */
  31. #define WTCNT 0xffc00008
  32. #define WTCSR 0xffc0000c
  33. #endif
  34. /* Bit definitions */
  35. #define WTCSR_TME 0x80
  36. #define WTCSR_WT 0x40
  37. #define WTCSR_RSTS 0x20
  38. #define WTCSR_WOVF 0x10
  39. #define WTCSR_IOVF 0x08
  40. #endif /* __ASM_CPU_SH4_WATCHDOG_H */