blob: 125b835e19ece864c37d7c15d03a28258af97a6b (
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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
|
/*
* Freescale TIMROT Register Definitions
*
* Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* This file is created by xml file. Don't Edit it.
*
* Xml Revision: 1.40
* Template revision: 26195
*/
#ifndef __ARCH_ARM___TIMROT_H
#define __ARCH_ARM___TIMROT_H
#define HW_TIMROT_ROTCTRL (0x00000000)
#define HW_TIMROT_ROTCTRL_SET (0x00000004)
#define HW_TIMROT_ROTCTRL_CLR (0x00000008)
#define HW_TIMROT_ROTCTRL_TOG (0x0000000c)
#define BM_TIMROT_ROTCTRL_SFTRST 0x80000000
#define BM_TIMROT_ROTCTRL_CLKGATE 0x40000000
#define BM_TIMROT_ROTCTRL_ROTARY_PRESENT 0x20000000
#define BM_TIMROT_ROTCTRL_TIM3_PRESENT 0x10000000
#define BM_TIMROT_ROTCTRL_TIM2_PRESENT 0x08000000
#define BM_TIMROT_ROTCTRL_TIM1_PRESENT 0x04000000
#define BM_TIMROT_ROTCTRL_TIM0_PRESENT 0x02000000
#define BP_TIMROT_ROTCTRL_STATE 22
#define BM_TIMROT_ROTCTRL_STATE 0x01C00000
#define BF_TIMROT_ROTCTRL_STATE(v) \
(((v) << 22) & BM_TIMROT_ROTCTRL_STATE)
#define BP_TIMROT_ROTCTRL_DIVIDER 16
#define BM_TIMROT_ROTCTRL_DIVIDER 0x003F0000
#define BF_TIMROT_ROTCTRL_DIVIDER(v) \
(((v) << 16) & BM_TIMROT_ROTCTRL_DIVIDER)
#define BP_TIMROT_ROTCTRL_RSRVD3 13
#define BM_TIMROT_ROTCTRL_RSRVD3 0x0000E000
#define BF_TIMROT_ROTCTRL_RSRVD3(v) \
(((v) << 13) & BM_TIMROT_ROTCTRL_RSRVD3)
#define BM_TIMROT_ROTCTRL_RELATIVE 0x00001000
#define BP_TIMROT_ROTCTRL_OVERSAMPLE 10
#define BM_TIMROT_ROTCTRL_OVERSAMPLE 0x00000C00
#define BF_TIMROT_ROTCTRL_OVERSAMPLE(v) \
(((v) << 10) & BM_TIMROT_ROTCTRL_OVERSAMPLE)
#define BV_TIMROT_ROTCTRL_OVERSAMPLE__8X 0x0
#define BV_TIMROT_ROTCTRL_OVERSAMPLE__4X 0x1
#define BV_TIMROT_ROTCTRL_OVERSAMPLE__2X 0x2
#define BV_TIMROT_ROTCTRL_OVERSAMPLE__1X 0x3
#define BM_TIMROT_ROTCTRL_POLARITY_B 0x00000200
#define BM_TIMROT_ROTCTRL_POLARITY_A 0x00000100
#define BP_TIMROT_ROTCTRL_SELECT_B 4
#define BM_TIMROT_ROTCTRL_SELECT_B 0x000000F0
#define BF_TIMROT_ROTCTRL_SELECT_B(v) \
(((v) << 4) & BM_TIMROT_ROTCTRL_SELECT_B)
#define BV_TIMROT_ROTCTRL_SELECT_B__NEVER_TICK 0x0
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM0 0x1
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM1 0x2
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM2 0x3
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM3 0x4
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM4 0x5
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM5 0x6
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM6 0x7
#define BV_TIMROT_ROTCTRL_SELECT_B__PWM7 0x8
#define BV_TIMROT_ROTCTRL_SELECT_B__ROTARYA 0x9
#define BV_TIMROT_ROTCTRL_SELECT_B__ROTARYB 0xA
#define BP_TIMROT_ROTCTRL_SELECT_A 0
#define BM_TIMROT_ROTCTRL_SELECT_A 0x0000000F
#define BF_TIMROT_ROTCTRL_SELECT_A(v) \
(((v) << 0) & BM_TIMROT_ROTCTRL_SELECT_A)
#define BV_TIMROT_ROTCTRL_SELECT_A__NEVER_TICK 0x0
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM0 0x1
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM1 0x2
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM2 0x3
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM3 0x4
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM4 0x5
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM5 0x6
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM6 0x7
#define BV_TIMROT_ROTCTRL_SELECT_A__PWM7 0x8
#define BV_TIMROT_ROTCTRL_SELECT_A__ROTARYA 0x9
#define BV_TIMROT_ROTCTRL_SELECT_A__ROTARYB 0xA
#define HW_TIMROT_ROTCOUNT (0x00000010)
#define BP_TIMROT_ROTCOUNT_RSRVD1 16
#define BM_TIMROT_ROTCOUNT_RSRVD1 0xFFFF0000
#define BF_TIMROT_ROTCOUNT_RSRVD1(v) \
(((v) << 16) & BM_TIMROT_ROTCOUNT_RSRVD1)
#define BP_TIMROT_ROTCOUNT_UPDOWN 0
#define BM_TIMROT_ROTCOUNT_UPDOWN 0x0000FFFF
#define BF_TIMROT_ROTCOUNT_UPDOWN(v) \
(((v) << 0) & BM_TIMROT_ROTCOUNT_UPDOWN)
/*
* multi-register-define name HW_TIMROT_TIMCTRLn
* base 0x00000020
* count 3
* offset 0x40
*/
#define HW_TIMROT_TIMCTRLn(n) (0x00000020 + (n) * 0x40)
#define HW_TIMROT_TIMCTRLn_SET(n) (0x00000024 + (n) * 0x40)
#define HW_TIMROT_TIMCTRLn_CLR(n) (0x00000028 + (n) * 0x40)
#define HW_TIMROT_TIMCTRLn_TOG(n) (0x0000002c + (n) * 0x40)
#define BP_TIMROT_TIMCTRLn_RSRVD3 16
#define BM_TIMROT_TIMCTRLn_RSRVD3 0xFFFF0000
#define BF_TIMROT_TIMCTRLn_RSRVD3(v) \
(((v) << 16) & BM_TIMROT_TIMCTRLn_RSRVD3)
#define BM_TIMROT_TIMCTRLn_IRQ 0x00008000
#define BM_TIMROT_TIMCTRLn_IRQ_EN 0x00004000
#define BP_TIMROT_TIMCTRLn_RSRVD2 12
#define BM_TIMROT_TIMCTRLn_RSRVD2 0x00003000
#define BF_TIMROT_TIMCTRLn_RSRVD2(v) \
(((v) << 12) & BM_TIMROT_TIMCTRLn_RSRVD2)
#define BM_TIMROT_TIMCTRLn_MATCH_MODE 0x00000800
#define BP_TIMROT_TIMCTRLn_RSRVD1 9
#define BM_TIMROT_TIMCTRLn_RSRVD1 0x00000600
#define BF_TIMROT_TIMCTRLn_RSRVD1(v) \
(((v) << 9) & BM_TIMROT_TIMCTRLn_RSRVD1)
#define BM_TIMROT_TIMCTRLn_POLARITY 0x00000100
#define BM_TIMROT_TIMCTRLn_UPDATE 0x00000080
#define BM_TIMROT_TIMCTRLn_RELOAD 0x00000040
#define BP_TIMROT_TIMCTRLn_PRESCALE 4
#define BM_TIMROT_TIMCTRLn_PRESCALE 0x00000030
#define BF_TIMROT_TIMCTRLn_PRESCALE(v) \
(((v) << 4) & BM_TIMROT_TIMCTRLn_PRESCALE)
#define BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_1 0x0
#define BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_2 0x1
#define BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_4 0x2
#define BV_TIMROT_TIMCTRLn_PRESCALE__DIV_BY_8 0x3
#define BP_TIMROT_TIMCTRLn_SELECT 0
#define BM_TIMROT_TIMCTRLn_SELECT 0x0000000F
#define BF_TIMROT_TIMCTRLn_SELECT(v) \
(((v) << 0) & BM_TIMROT_TIMCTRLn_SELECT)
#define BV_TIMROT_TIMCTRLn_SELECT__NEVER_TICK 0x0
#define BV_TIMROT_TIMCTRLn_SELECT__PWM0 0x1
#define BV_TIMROT_TIMCTRLn_SELECT__PWM1 0x2
#define BV_TIMROT_TIMCTRLn_SELECT__PWM2 0x3
#define BV_TIMROT_TIMCTRLn_SELECT__PWM3 0x4
#define BV_TIMROT_TIMCTRLn_SELECT__PWM4 0x5
#define BV_TIMROT_TIMCTRLn_SELECT__PWM5 0x6
#define BV_TIMROT_TIMCTRLn_SELECT__PWM6 0x7
#define BV_TIMROT_TIMCTRLn_SELECT__PWM7 0x8
#define BV_TIMROT_TIMCTRLn_SELECT__ROTARYA 0x9
#define BV_TIMROT_TIMCTRLn_SELECT__ROTARYB 0xA
#define BV_TIMROT_TIMCTRLn_SELECT__32KHZ_XTAL 0xB
#define BV_TIMROT_TIMCTRLn_SELECT__8KHZ_XTAL 0xC
#define BV_TIMROT_TIMCTRLn_SELECT__4KHZ_XTAL 0xD
#define BV_TIMROT_TIMCTRLn_SELECT__1KHZ_XTAL 0xE
#define BV_TIMROT_TIMCTRLn_SELECT__TICK_ALWAYS 0xF
/*
* multi-register-define name HW_TIMROT_RUNNING_COUNTn
* base 0x00000030
* count 3
* offset 0x40
*/
#define HW_TIMROT_RUNNING_COUNTn(n) (0x00000030 + (n) * 0x40)
#define BP_TIMROT_RUNNING_COUNTn_RUNNING_COUNT 0
#define BM_TIMROT_RUNNING_COUNTn_RUNNING_COUNT 0xFFFFFFFF
#define BF_TIMROT_RUNNING_COUNTn_RUNNING_COUNT(v) (v)
/*
* multi-register-define name HW_TIMROT_FIXED_COUNTn
* base 0x00000040
* count 3
* offset 0x40
*/
#define HW_TIMROT_FIXED_COUNTn(n) (0x00000040 + (n) * 0x40)
#define BP_TIMROT_FIXED_COUNTn_FIXED_COUNT 0
#define BM_TIMROT_FIXED_COUNTn_FIXED_COUNT 0xFFFFFFFF
#define BF_TIMROT_FIXED_COUNTn_FIXED_COUNT(v) (v)
/*
* multi-register-define name HW_TIMROT_MATCH_COUNTn
* base 0x00000050
* count 4
* offset 0x40
*/
#define HW_TIMROT_MATCH_COUNTn(n) (0x00000050 + (n) * 0x40)
#define BP_TIMROT_MATCH_COUNTn_MATCH_COUNT 0
#define BM_TIMROT_MATCH_COUNTn_MATCH_COUNT 0xFFFFFFFF
#define BF_TIMROT_MATCH_COUNTn_MATCH_COUNT(v) (v)
#define HW_TIMROT_TIMCTRL3 (0x000000e0)
#define HW_TIMROT_TIMCTRL3_SET (0x000000e4)
#define HW_TIMROT_TIMCTRL3_CLR (0x000000e8)
#define HW_TIMROT_TIMCTRL3_TOG (0x000000ec)
#define BP_TIMROT_TIMCTRL3_RSRVD2 20
#define BM_TIMROT_TIMCTRL3_RSRVD2 0xFFF00000
#define BF_TIMROT_TIMCTRL3_RSRVD2(v) \
(((v) << 20) & BM_TIMROT_TIMCTRL3_RSRVD2)
#define BP_TIMROT_TIMCTRL3_TEST_SIGNAL 16
#define BM_TIMROT_TIMCTRL3_TEST_SIGNAL 0x000F0000
#define BF_TIMROT_TIMCTRL3_TEST_SIGNAL(v) \
(((v) << 16) & BM_TIMROT_TIMCTRL3_TEST_SIGNAL)
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__NEVER_TICK 0x0
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM0 0x1
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM1 0x2
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM2 0x3
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM3 0x4
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM4 0x5
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM5 0x6
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM6 0x7
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__PWM7 0x8
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__ROTARYA 0x9
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__ROTARYB 0xA
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__32KHZ_XTAL 0xB
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__8KHZ_XTAL 0xC
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__4KHZ_XTAL 0xD
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__1KHZ_XTAL 0xE
#define BV_TIMROT_TIMCTRL3_TEST_SIGNAL__TICK_ALWAYS 0xF
#define BM_TIMROT_TIMCTRL3_IRQ 0x00008000
#define BM_TIMROT_TIMCTRL3_IRQ_EN 0x00004000
#define BP_TIMROT_TIMCTRL3_RSRVD1 12
#define BM_TIMROT_TIMCTRL3_RSRVD1 0x00003000
#define BF_TIMROT_TIMCTRL3_RSRVD1(v) \
(((v) << 12) & BM_TIMROT_TIMCTRL3_RSRVD1)
#define BM_TIMROT_TIMCTRL3_MATCH_MODE 0x00000800
#define BM_TIMROT_TIMCTRL3_DUTY_VALID 0x00000400
#define BM_TIMROT_TIMCTRL3_DUTY_CYCLE 0x00000200
#define BM_TIMROT_TIMCTRL3_POLARITY 0x00000100
#define BM_TIMROT_TIMCTRL3_UPDATE 0x00000080
#define BM_TIMROT_TIMCTRL3_RELOAD 0x00000040
#define BP_TIMROT_TIMCTRL3_PRESCALE 4
#define BM_TIMROT_TIMCTRL3_PRESCALE 0x00000030
#define BF_TIMROT_TIMCTRL3_PRESCALE(v) \
(((v) << 4) & BM_TIMROT_TIMCTRL3_PRESCALE)
#define BV_TIMROT_TIMCTRL3_PRESCALE__DIV_BY_1 0x0
#define BV_TIMROT_TIMCTRL3_PRESCALE__DIV_BY_2 0x1
#define BV_TIMROT_TIMCTRL3_PRESCALE__DIV_BY_4 0x2
#define BV_TIMROT_TIMCTRL3_PRESCALE__DIV_BY_8 0x3
#define BP_TIMROT_TIMCTRL3_SELECT 0
#define BM_TIMROT_TIMCTRL3_SELECT 0x0000000F
#define BF_TIMROT_TIMCTRL3_SELECT(v) \
(((v) << 0) & BM_TIMROT_TIMCTRL3_SELECT)
#define BV_TIMROT_TIMCTRL3_SELECT__NEVER_TICK 0x0
#define BV_TIMROT_TIMCTRL3_SELECT__PWM0 0x1
#define BV_TIMROT_TIMCTRL3_SELECT__PWM1 0x2
#define BV_TIMROT_TIMCTRL3_SELECT__PWM2 0x3
#define BV_TIMROT_TIMCTRL3_SELECT__PWM3 0x4
#define BV_TIMROT_TIMCTRL3_SELECT__PWM4 0x5
#define BV_TIMROT_TIMCTRL3_SELECT__PWM5 0x6
#define BV_TIMROT_TIMCTRL3_SELECT__PWM6 0x7
#define BV_TIMROT_TIMCTRL3_SELECT__PWM7 0x8
#define BV_TIMROT_TIMCTRL3_SELECT__ROTARYA 0x9
#define BV_TIMROT_TIMCTRL3_SELECT__ROTARYB 0xA
#define BV_TIMROT_TIMCTRL3_SELECT__32KHZ_XTAL 0xB
#define BV_TIMROT_TIMCTRL3_SELECT__8KHZ_XTAL 0xC
#define BV_TIMROT_TIMCTRL3_SELECT__4KHZ_XTAL 0xD
#define BV_TIMROT_TIMCTRL3_SELECT__1KHZ_XTAL 0xE
#define BV_TIMROT_TIMCTRL3_SELECT__TICK_ALWAYS 0xF
#define HW_TIMROT_RUNNING_COUNT3 (0x000000f0)
#define BP_TIMROT_RUNNING_COUNT3_LOW_RUNNING_COUNT 0
#define BM_TIMROT_RUNNING_COUNT3_LOW_RUNNING_COUNT 0xFFFFFFFF
#define BF_TIMROT_RUNNING_COUNT3_LOW_RUNNING_COUNT(v) (v)
#define HW_TIMROT_FIXED_COUNT3 (0x00000100)
#define BP_TIMROT_FIXED_COUNT3_HIGH_FIXED_COUNT 0
#define BM_TIMROT_FIXED_COUNT3_HIGH_FIXED_COUNT 0xFFFFFFFF
#define BF_TIMROT_FIXED_COUNT3_HIGH_FIXED_COUNT(v) (v)
#define HW_TIMROT_VERSION (0x00000120)
#define BP_TIMROT_VERSION_MAJOR 24
#define BM_TIMROT_VERSION_MAJOR 0xFF000000
#define BF_TIMROT_VERSION_MAJOR(v) \
(((v) << 24) & BM_TIMROT_VERSION_MAJOR)
#define BP_TIMROT_VERSION_MINOR 16
#define BM_TIMROT_VERSION_MINOR 0x00FF0000
#define BF_TIMROT_VERSION_MINOR(v) \
(((v) << 16) & BM_TIMROT_VERSION_MINOR)
#define BP_TIMROT_VERSION_STEP 0
#define BM_TIMROT_VERSION_STEP 0x0000FFFF
#define BF_TIMROT_VERSION_STEP(v) \
(((v) << 0) & BM_TIMROT_VERSION_STEP)
#endif /* __ARCH_ARM___TIMROT_H */
|