blob: 7672301d0c70917da242ce4e398fa5d4b84712f9 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * include/asm-sh/cpu-sh4/watchdog.h
3 *
4 * Copyright (C) 2002, 2003 Paul Mundt
Valentin R Sitsikovf72f7872009-10-16 10:45:47 +00005 * Copyright (C) 2009 Siemens AG
6 * Copyright (C) 2009 Sitdikov Valentin
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 *
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
Valentin R Sitsikovf72f7872009-10-16 10:45:47 +000015#if defined(CONFIG_CPU_SUBTYPE_SH7785) || defined(CONFIG_CPU_SUBTYPE_SH7780)
16/* Prefix definition */
17#define WTBST_HIGH 0x55
18/* Register definitions */
19#define WTCNT_R 0xffcc0010 /*WDTCNT*/
20#define WTCSR 0xffcc0004 /*WDTCSR*/
21#define WTCNT 0xffcc0000 /*WDTST*/
22#define WTST WTCNT
23#define WTBST 0xffcc0008 /*WDTBST*/
24#else
Linus Torvalds1da177e2005-04-16 15:20:36 -070025/* Register definitions */
26#define WTCNT 0xffc00008
27#define WTCSR 0xffc0000c
Valentin R Sitsikovf72f7872009-10-16 10:45:47 +000028#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
30/* Bit definitions */
31#define WTCSR_TME 0x80
32#define WTCSR_WT 0x40
33#define WTCSR_RSTS 0x20
34#define WTCSR_WOVF 0x10
35#define WTCSR_IOVF 0x08
36
37#endif /* __ASM_CPU_SH4_WATCHDOG_H */
38