Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-sh/cpu-sh4/watchdog.h |
| 3 | * |
| 4 | * Copyright (C) 2002, 2003 Paul Mundt |
Valentin R Sitsikov | f72f787 | 2009-10-16 10:45:47 +0000 | [diff] [blame] | 5 | * Copyright (C) 2009 Siemens AG |
| 6 | * Copyright (C) 2009 Sitdikov Valentin |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Valentin R Sitsikov | f72f787 | 2009-10-16 10:45:47 +0000 | [diff] [blame] | 15 | #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*/ |
Kuninori Morimoto | 67eaa3e | 2010-03-16 02:02:08 +0000 | [diff] [blame] | 24 | /* Register definitions */ |
| 25 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) || \ |
| 26 | defined(CONFIG_CPU_SUBTYPE_SH7723) || \ |
| 27 | defined(CONFIG_CPU_SUBTYPE_SH7724) |
| 28 | #define WTCNT 0xa4520000 |
| 29 | #define WTCSR 0xa4520004 |
Valentin R Sitsikov | f72f787 | 2009-10-16 10:45:47 +0000 | [diff] [blame] | 30 | #else |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | /* Register definitions */ |
| 32 | #define WTCNT 0xffc00008 |
| 33 | #define WTCSR 0xffc0000c |
Valentin R Sitsikov | f72f787 | 2009-10-16 10:45:47 +0000 | [diff] [blame] | 34 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
| 36 | /* Bit definitions */ |
| 37 | #define WTCSR_TME 0x80 |
| 38 | #define WTCSR_WT 0x40 |
| 39 | #define WTCSR_RSTS 0x20 |
| 40 | #define WTCSR_WOVF 0x10 |
| 41 | #define WTCSR_IOVF 0x08 |
| 42 | |
| 43 | #endif /* __ASM_CPU_SH4_WATCHDOG_H */ |
| 44 | |