drv_features_gpio.h
6.11 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#ifndef __DRV_FEATURES_GPIO_H__
#define __DRV_FEATURES_GPIO_H__
#include "drv_features_chip_select.h"
/****************** GPIO Feature Option List ************************
* [H] means hardware feature option. [S] means software feature option.
*1.
*
*****************************************************************/
/**************** GPIO Feature Option******************/
#if defined(DRV_GPIO_6205_SERIES)
#define DRV_GPIO_REG_AS_6205
#define DRV_GPIO_6205_FUNC
#elif defined(DRV_GPIO_6205B_SERIES)
#define DRV_GPIO_REG_AS_6205B
#define DRV_GPIO_6205B_FUNC
#elif defined(DRV_GPIO_6208_SERIES)
#define DRV_GPIO_REG_AS_6208
#define DRV_GPIO_6208_FUNC
#elif defined(DRV_GPIO_6218_SERIES)
#define DRV_GPIO_REG_AS_6218
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_DISCONT
#elif defined(DRV_GPIO_6218B_SERIES)
#define DRV_GPIO_REG_AS_6218B
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_DISCONT
#elif defined(DRV_GPIO_6219_SERIES)
#define DRV_GPIO_REG_AS_6219
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_DISCONT
#elif defined(DRV_GPIO_6225_SERIES)
#define DRV_GPIO_REG_AS_6225
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_DISCONT
#elif defined(DRV_GPIO_6227_SERIES)
#define DRV_GPIO_REG_AS_6227
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_MODE8_SPECIAL_POS
#elif defined(DRV_GPIO_6228_SERIES)
#define DRV_GPIO_REG_AS_6228
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#elif defined(DRV_GPIO_6223_SERIES)
#define DRV_GPIO_REG_AS_6223
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_DISCONT
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_DEBUG_MODE
#define DRV_GPIO_CLK_OUT
#elif defined(DRV_GPIO_6238_SERIES)
#define DRV_GPIO_REG_AS_6238
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_TM_DIR
#elif defined(DRV_GPIO_6235_SERIES)
#define DRV_GPIO_REG_AS_6235
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_6236_SERIES)
#define DRV_GPIO_REG_AS_6236
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_6268T_SERIES)
#define DRV_GPIO_REG_AS_6268T
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#elif defined(DRV_GPIO_6268A_SERIES)
#define DRV_GPIO_REG_AS_6268A
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_6268_SERIES)
#define DRV_GPIO_REG_AS_6268
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_6270A_SERIES)
#define DRV_GPIO_REG_AS_6270A
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_TK6516_SERIES)
#define DRV_GPIO_REG_AS_TK6516
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_PULL_SEL
#elif defined(DRV_GPIO_6253T_SERIES)
#define DRV_GPIO_REG_AS_6253T
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_TM_DIR
#elif defined(DRV_GPIO_6253_SERIES)
#define DRV_GPIO_REG_AS_6253T
#define DRV_GPIO_6253_MODE11_DEFAULT
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_TM_DIR
#elif defined(DRV_GPIO_6255_SERIES)
#define DRV_GPIO_REG_AS_6255
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT2
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_MODE_4BITS
#define DRV_GPIO_BUS_LATENCY //modified by dongming for MT6255 bus latency
#elif defined(DRV_GPIO_6276_SERIES)
#define DRV_GPIO_REG_AS_6276
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT2
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_CLK_FROM_1
#if defined(MT6276_S01)
#define DRV_GPIO_MODE_3BITS
#endif
#elif defined(DRV_GPIO_6251_SERIES)
#define DRV_GPIO_REG_AS_6251
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_MODE_4BITS
#elif defined(DRV_GPIO_6253E_SERIES)
#define DRV_GPIO_REG_AS_6253E
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_TM_DIR
#elif defined(DRV_GPIO_6253E_SERIES_1)
#define DRV_GPIO_REG_AS_6253E_1
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_TM_DIR
#define GPIO_MODE_32BIT_LENGTH
#define DRV_GPIO_MODE_4BITS
#elif defined(DRV_GPIO_6573_SERIES)
#define DRV_GPIO_OFF
#elif defined(DRV_GPIO_6256_SERIES)
#define DRV_GPIO_REG_AS_6256
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT2
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_MODE_4BITS
#define DRV_GPIO_BUS_LATENCY //modified by dongming for MT6255 bus latency
#elif defined(DRV_GPIO_6250_SERIES)
#define DRV_GPIO_REG_AS_6250
#define DRV_GPIO_FULL_FUNC
#define DRV_GPIO_DIN_CONTI
#define DRV_GPIO_WO_GPO
#define DRV_GPIO_CLK_OUT2
#define DRV_GPIO_CLK_OUT
#define DRV_GPIO_PULL_SEL
#define DRV_GPIO_MODE_4BITS
#define DRV_GPIO_6250_SPECIAL_SET_REG // for PULLSEL,PULLEN sw mapping in MT6250
#define GPIO_MODE_32BIT_LENGTH
#else
#define DRV_GPIO_NEW_SW_ARCHI
#endif
#if !defined(DRV_GPIO_OFF)
#define DRV_GPIO_FULL_FUNC
#endif
/**************** GPIO Feature End******************/
#endif