Path: blob/master/arch/sh/include/cpu-sh4/cpu/watchdog.h
26516 views
/* SPDX-License-Identifier: GPL-2.01*2* include/asm-sh/cpu-sh4/watchdog.h3*4* Copyright (C) 2002, 2003 Paul Mundt5* Copyright (C) 2009 Siemens AG6* Copyright (C) 2009 Sitdikov Valentin7*/8#ifndef __ASM_CPU_SH4_WATCHDOG_H9#define __ASM_CPU_SH4_WATCHDOG_H1011#if defined(CONFIG_CPU_SUBTYPE_SH7785) || defined(CONFIG_CPU_SUBTYPE_SH7780)12/* Prefix definition */13#define WTBST_HIGH 0x5514/* Register definitions */15#define WTCNT_R 0xffcc0010 /*WDTCNT*/16#define WTCSR 0xffcc0004 /*WDTCSR*/17#define WTCNT 0xffcc0000 /*WDTST*/18#define WTST WTCNT19#define WTBST 0xffcc0008 /*WDTBST*/20/* Register definitions */21#elif defined(CONFIG_CPU_SUBTYPE_SH7722) || \22defined(CONFIG_CPU_SUBTYPE_SH7723) || \23defined(CONFIG_CPU_SUBTYPE_SH7724)24#define WTCNT 0xa452000025#define WTCSR 0xa452000426#else27/* Register definitions */28#define WTCNT 0xffc0000829#define WTCSR 0xffc0000c30#endif3132/* Bit definitions */33#define WTCSR_TME 0x8034#define WTCSR_WT 0x4035#define WTCSR_RSTS 0x2036#define WTCSR_WOVF 0x1037#define WTCSR_IOVF 0x083839#endif /* __ASM_CPU_SH4_WATCHDOG_H */40414243