summaryrefslogtreecommitdiff
path: root/drivers/watchdog/mxc_wdt.h
blob: 061731b46b61e5015a0cfbb18a1dfdb58619cebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *  linux/drivers/char/watchdog/mxc_wdt.h
 *
 *  BRIEF MODULE DESCRIPTION
 *      MXC Watchdog timer register definitions
 *
 * Author: MontaVista Software, Inc.
 *       <AKuster@mvista.com> or <source@mvista.com>
 *
 * 2005 (c) MontaVista Software, Inc.
 * Copyright 2007-2010 Freescale Semiconductor, Inc.
 * This file is licensed under the terms of the GNU General Public License
 * version 2. This program is licensed "as is" without any warranty of any
 * kind, whether express or implied.
 */

#ifndef __MXC_WDT_H__
#define __MXC_WDT_H__

#define MXC_WDT_WCR             0x00
#define MXC_WDT_WSR             0x02
#define MXC_WDT_WRSR            0x04
#define WCR_WOE_BIT             (1 << 6)
#define WCR_WDA_BIT             (1 << 5)
#define WCR_SRS_BIT             (1 << 4)
#define WCR_WRE_BIT             (1 << 3)
#define WCR_WDE_BIT             (1 << 2)
#define WCR_WDBG_BIT            (1 << 1)
#define WCR_WDZST_BIT           (1 << 0)
#define WDT_MAGIC_1             0x5555
#define WDT_MAGIC_2             0xAAAA

#define TIMER_MARGIN_MAX    	127
#define TIMER_MARGIN_DEFAULT	60	/* 60 secs */
#define TIMER_MARGIN_MIN	1

#endif				/* __MXC_WDT_H__ */