drv_features_wdt.h
2.18 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef __DRV_FEATURES_WDT_H__
#define __DRV_FEATURES_WDT_H__
#include "drv_features_chip_select.h"
/****************** WDT Feature Option List ************************
* [H] means hardware feature option. [S] means software feature option.
*1. [H]DRV_WDT_BASIC_REG
*2. [H]DRV_WDT_LENGTH_11BITS
*3. [H]DRV_WDT_SWRST
*4. [H]DRV_WDT_DSP
*5. [H]DRV_WDT_6573_REG
*6. [H]DRV_WDT_BASIC_REG
*****************************************************************/
/**************** WDT ******************/
#if defined(DRV_WDT_6205_SERIES)
#define DRV_WDT_LIMIT_REG
#define DRV_WDT_RESET_PKEY_RELEASE
#define DRV_WDT_6205_CHECK_STAT
#elif defined(DRV_WDT_6205B_SERIES)
#define DRV_WDT_LIMIT_REG
#elif defined(DRV_WDT_6208_SERIES)
#define DRV_WDT_LIMIT_REG
#define DRV_WDT_RESET_PKEY_RELEASE
#elif defined(DRV_WDT_6217_SERIES)
#define DRV_WDT_BASIC_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#elif defined(DRV_WDT_6276_SERIES)
#define DRV_WDT_BASIC_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#define DRV_WDT_DSP
#elif defined(DRV_WDT_6573_SERIES)
#define DRV_WDT_6573_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#define DRV_WDT_IRQ_MODE
#elif defined(DRV_WDT_6575_SERIES)
#define DRV_WDT_6575_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#elif defined(DRV_WDT_6250_SERIES)
#define DRV_WDT_BASIC_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#define DRV_WDT_RETN_REG
#elif defined(DRV_WDT_6260_SERIES)
#define DRV_WDT_BASIC_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#define DRV_WDT_RETN_REG
#elif defined(DRV_WDT_6261_SERIES)
#define DRV_WDT_BASIC_REG
#define DRV_WDT_LENGTH_11BITS
#define DRV_WDT_SWRST
#define DRV_WDT_RETN_REG
//#define DRV_WDT_HW_AUTO_RESTART // dongming: from MT6261, RGU has add a new feature,which enable the HW auto restart after wdt reset
//1.For USBlv2
//2. because add 32bit retention register,SW reset and restart register also from 16bit to 32bit
#endif
#ifdef __MEUT__
#define DCL_WDT_INTERFACE
#endif
/* Features for WDT */
#if defined(DRV_WDT_BASIC_REG) && defined(DRV_WDT_LIMIT_REG)
#error "WDT feature conflict!!"
#endif
#endif