diff options
Diffstat (limited to 'arch/arm/mach-mxs/regs-clkctrl-mx28.h')
-rw-r--r-- | arch/arm/mach-mxs/regs-clkctrl-mx28.h | 663 |
1 files changed, 663 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/regs-clkctrl-mx28.h b/arch/arm/mach-mxs/regs-clkctrl-mx28.h new file mode 100644 index 000000000000..661df18755f7 --- /dev/null +++ b/arch/arm/mach-mxs/regs-clkctrl-mx28.h | |||
@@ -0,0 +1,663 @@ | |||
1 | /* | ||
2 | * Freescale CLKCTRL Register Definitions | ||
3 | * | ||
4 | * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | * This file is created by xml file. Don't Edit it. | ||
21 | * | ||
22 | * Xml Revision: 1.48 | ||
23 | * Template revision: 26195 | ||
24 | */ | ||
25 | |||
26 | #ifndef __REGS_CLKCTRL_MX28_H__ | ||
27 | #define __REGS_CLKCTRL_MX28_H__ | ||
28 | |||
29 | #define HW_CLKCTRL_PLL0CTRL0 (0x00000000) | ||
30 | #define HW_CLKCTRL_PLL0CTRL0_SET (0x00000004) | ||
31 | #define HW_CLKCTRL_PLL0CTRL0_CLR (0x00000008) | ||
32 | #define HW_CLKCTRL_PLL0CTRL0_TOG (0x0000000c) | ||
33 | |||
34 | #define BP_CLKCTRL_PLL0CTRL0_RSRVD6 30 | ||
35 | #define BM_CLKCTRL_PLL0CTRL0_RSRVD6 0xC0000000 | ||
36 | #define BF_CLKCTRL_PLL0CTRL0_RSRVD6(v) \ | ||
37 | (((v) << 30) & BM_CLKCTRL_PLL0CTRL0_RSRVD6) | ||
38 | #define BP_CLKCTRL_PLL0CTRL0_LFR_SEL 28 | ||
39 | #define BM_CLKCTRL_PLL0CTRL0_LFR_SEL 0x30000000 | ||
40 | #define BF_CLKCTRL_PLL0CTRL0_LFR_SEL(v) \ | ||
41 | (((v) << 28) & BM_CLKCTRL_PLL0CTRL0_LFR_SEL) | ||
42 | #define BV_CLKCTRL_PLL0CTRL0_LFR_SEL__DEFAULT 0x0 | ||
43 | #define BV_CLKCTRL_PLL0CTRL0_LFR_SEL__TIMES_2 0x1 | ||
44 | #define BV_CLKCTRL_PLL0CTRL0_LFR_SEL__TIMES_05 0x2 | ||
45 | #define BV_CLKCTRL_PLL0CTRL0_LFR_SEL__UNDEFINED 0x3 | ||
46 | #define BP_CLKCTRL_PLL0CTRL0_RSRVD5 26 | ||
47 | #define BM_CLKCTRL_PLL0CTRL0_RSRVD5 0x0C000000 | ||
48 | #define BF_CLKCTRL_PLL0CTRL0_RSRVD5(v) \ | ||
49 | (((v) << 26) & BM_CLKCTRL_PLL0CTRL0_RSRVD5) | ||
50 | #define BP_CLKCTRL_PLL0CTRL0_CP_SEL 24 | ||
51 | #define BM_CLKCTRL_PLL0CTRL0_CP_SEL 0x03000000 | ||
52 | #define BF_CLKCTRL_PLL0CTRL0_CP_SEL(v) \ | ||
53 | (((v) << 24) & BM_CLKCTRL_PLL0CTRL0_CP_SEL) | ||
54 | #define BV_CLKCTRL_PLL0CTRL0_CP_SEL__DEFAULT 0x0 | ||
55 | #define BV_CLKCTRL_PLL0CTRL0_CP_SEL__TIMES_2 0x1 | ||
56 | #define BV_CLKCTRL_PLL0CTRL0_CP_SEL__TIMES_05 0x2 | ||
57 | #define BV_CLKCTRL_PLL0CTRL0_CP_SEL__UNDEFINED 0x3 | ||
58 | #define BP_CLKCTRL_PLL0CTRL0_RSRVD4 22 | ||
59 | #define BM_CLKCTRL_PLL0CTRL0_RSRVD4 0x00C00000 | ||
60 | #define BF_CLKCTRL_PLL0CTRL0_RSRVD4(v) \ | ||
61 | (((v) << 22) & BM_CLKCTRL_PLL0CTRL0_RSRVD4) | ||
62 | #define BP_CLKCTRL_PLL0CTRL0_DIV_SEL 20 | ||
63 | #define BM_CLKCTRL_PLL0CTRL0_DIV_SEL 0x00300000 | ||
64 | #define BF_CLKCTRL_PLL0CTRL0_DIV_SEL(v) \ | ||
65 | (((v) << 20) & BM_CLKCTRL_PLL0CTRL0_DIV_SEL) | ||
66 | #define BV_CLKCTRL_PLL0CTRL0_DIV_SEL__DEFAULT 0x0 | ||
67 | #define BV_CLKCTRL_PLL0CTRL0_DIV_SEL__LOWER 0x1 | ||
68 | #define BV_CLKCTRL_PLL0CTRL0_DIV_SEL__LOWEST 0x2 | ||
69 | #define BV_CLKCTRL_PLL0CTRL0_DIV_SEL__UNDEFINED 0x3 | ||
70 | #define BM_CLKCTRL_PLL0CTRL0_RSRVD3 0x00080000 | ||
71 | #define BM_CLKCTRL_PLL0CTRL0_EN_USB_CLKS 0x00040000 | ||
72 | #define BM_CLKCTRL_PLL0CTRL0_POWER 0x00020000 | ||
73 | #define BP_CLKCTRL_PLL0CTRL0_RSRVD1 0 | ||
74 | #define BM_CLKCTRL_PLL0CTRL0_RSRVD1 0x0001FFFF | ||
75 | #define BF_CLKCTRL_PLL0CTRL0_RSRVD1(v) \ | ||
76 | (((v) << 0) & BM_CLKCTRL_PLL0CTRL0_RSRVD1) | ||
77 | |||
78 | #define HW_CLKCTRL_PLL0CTRL1 (0x00000010) | ||
79 | |||
80 | #define BM_CLKCTRL_PLL0CTRL1_LOCK 0x80000000 | ||
81 | #define BM_CLKCTRL_PLL0CTRL1_FORCE_LOCK 0x40000000 | ||
82 | #define BP_CLKCTRL_PLL0CTRL1_RSRVD1 16 | ||
83 | #define BM_CLKCTRL_PLL0CTRL1_RSRVD1 0x3FFF0000 | ||
84 | #define BF_CLKCTRL_PLL0CTRL1_RSRVD1(v) \ | ||
85 | (((v) << 16) & BM_CLKCTRL_PLL0CTRL1_RSRVD1) | ||
86 | #define BP_CLKCTRL_PLL0CTRL1_LOCK_COUNT 0 | ||
87 | #define BM_CLKCTRL_PLL0CTRL1_LOCK_COUNT 0x0000FFFF | ||
88 | #define BF_CLKCTRL_PLL0CTRL1_LOCK_COUNT(v) \ | ||
89 | (((v) << 0) & BM_CLKCTRL_PLL0CTRL1_LOCK_COUNT) | ||
90 | |||
91 | #define HW_CLKCTRL_PLL1CTRL0 (0x00000020) | ||
92 | #define HW_CLKCTRL_PLL1CTRL0_SET (0x00000024) | ||
93 | #define HW_CLKCTRL_PLL1CTRL0_CLR (0x00000028) | ||
94 | #define HW_CLKCTRL_PLL1CTRL0_TOG (0x0000002c) | ||
95 | |||
96 | #define BM_CLKCTRL_PLL1CTRL0_CLKGATEEMI 0x80000000 | ||
97 | #define BM_CLKCTRL_PLL1CTRL0_RSRVD6 0x40000000 | ||
98 | #define BP_CLKCTRL_PLL1CTRL0_LFR_SEL 28 | ||
99 | #define BM_CLKCTRL_PLL1CTRL0_LFR_SEL 0x30000000 | ||
100 | #define BF_CLKCTRL_PLL1CTRL0_LFR_SEL(v) \ | ||
101 | (((v) << 28) & BM_CLKCTRL_PLL1CTRL0_LFR_SEL) | ||
102 | #define BV_CLKCTRL_PLL1CTRL0_LFR_SEL__DEFAULT 0x0 | ||
103 | #define BV_CLKCTRL_PLL1CTRL0_LFR_SEL__TIMES_2 0x1 | ||
104 | #define BV_CLKCTRL_PLL1CTRL0_LFR_SEL__TIMES_05 0x2 | ||
105 | #define BV_CLKCTRL_PLL1CTRL0_LFR_SEL__UNDEFINED 0x3 | ||
106 | #define BP_CLKCTRL_PLL1CTRL0_RSRVD5 26 | ||
107 | #define BM_CLKCTRL_PLL1CTRL0_RSRVD5 0x0C000000 | ||
108 | #define BF_CLKCTRL_PLL1CTRL0_RSRVD5(v) \ | ||
109 | (((v) << 26) & BM_CLKCTRL_PLL1CTRL0_RSRVD5) | ||
110 | #define BP_CLKCTRL_PLL1CTRL0_CP_SEL 24 | ||
111 | #define BM_CLKCTRL_PLL1CTRL0_CP_SEL 0x03000000 | ||
112 | #define BF_CLKCTRL_PLL1CTRL0_CP_SEL(v) \ | ||
113 | (((v) << 24) & BM_CLKCTRL_PLL1CTRL0_CP_SEL) | ||
114 | #define BV_CLKCTRL_PLL1CTRL0_CP_SEL__DEFAULT 0x0 | ||
115 | #define BV_CLKCTRL_PLL1CTRL0_CP_SEL__TIMES_2 0x1 | ||
116 | #define BV_CLKCTRL_PLL1CTRL0_CP_SEL__TIMES_05 0x2 | ||
117 | #define BV_CLKCTRL_PLL1CTRL0_CP_SEL__UNDEFINED 0x3 | ||
118 | #define BP_CLKCTRL_PLL1CTRL0_RSRVD4 22 | ||
119 | #define BM_CLKCTRL_PLL1CTRL0_RSRVD4 0x00C00000 | ||
120 | #define BF_CLKCTRL_PLL1CTRL0_RSRVD4(v) \ | ||
121 | (((v) << 22) & BM_CLKCTRL_PLL1CTRL0_RSRVD4) | ||
122 | #define BP_CLKCTRL_PLL1CTRL0_DIV_SEL 20 | ||
123 | #define BM_CLKCTRL_PLL1CTRL0_DIV_SEL 0x00300000 | ||
124 | #define BF_CLKCTRL_PLL1CTRL0_DIV_SEL(v) \ | ||
125 | (((v) << 20) & BM_CLKCTRL_PLL1CTRL0_DIV_SEL) | ||
126 | #define BV_CLKCTRL_PLL1CTRL0_DIV_SEL__DEFAULT 0x0 | ||
127 | #define BV_CLKCTRL_PLL1CTRL0_DIV_SEL__LOWER 0x1 | ||
128 | #define BV_CLKCTRL_PLL1CTRL0_DIV_SEL__LOWEST 0x2 | ||
129 | #define BV_CLKCTRL_PLL1CTRL0_DIV_SEL__UNDEFINED 0x3 | ||
130 | #define BM_CLKCTRL_PLL1CTRL0_RSRVD3 0x00080000 | ||
131 | #define BM_CLKCTRL_PLL1CTRL0_EN_USB_CLKS 0x00040000 | ||
132 | #define BM_CLKCTRL_PLL1CTRL0_POWER 0x00020000 | ||
133 | #define BP_CLKCTRL_PLL1CTRL0_RSRVD1 0 | ||
134 | #define BM_CLKCTRL_PLL1CTRL0_RSRVD1 0x0001FFFF | ||
135 | #define BF_CLKCTRL_PLL1CTRL0_RSRVD1(v) \ | ||
136 | (((v) << 0) & BM_CLKCTRL_PLL1CTRL0_RSRVD1) | ||
137 | |||
138 | #define HW_CLKCTRL_PLL1CTRL1 (0x00000030) | ||
139 | |||
140 | #define BM_CLKCTRL_PLL1CTRL1_LOCK 0x80000000 | ||
141 | #define BM_CLKCTRL_PLL1CTRL1_FORCE_LOCK 0x40000000 | ||
142 | #define BP_CLKCTRL_PLL1CTRL1_RSRVD1 16 | ||
143 | #define BM_CLKCTRL_PLL1CTRL1_RSRVD1 0x3FFF0000 | ||
144 | #define BF_CLKCTRL_PLL1CTRL1_RSRVD1(v) \ | ||
145 | (((v) << 16) & BM_CLKCTRL_PLL1CTRL1_RSRVD1) | ||
146 | #define BP_CLKCTRL_PLL1CTRL1_LOCK_COUNT 0 | ||
147 | #define BM_CLKCTRL_PLL1CTRL1_LOCK_COUNT 0x0000FFFF | ||
148 | #define BF_CLKCTRL_PLL1CTRL1_LOCK_COUNT(v) \ | ||
149 | (((v) << 0) & BM_CLKCTRL_PLL1CTRL1_LOCK_COUNT) | ||
150 | |||
151 | #define HW_CLKCTRL_PLL2CTRL0 (0x00000040) | ||
152 | #define HW_CLKCTRL_PLL2CTRL0_SET (0x00000044) | ||
153 | #define HW_CLKCTRL_PLL2CTRL0_CLR (0x00000048) | ||
154 | #define HW_CLKCTRL_PLL2CTRL0_TOG (0x0000004c) | ||
155 | |||
156 | #define BM_CLKCTRL_PLL2CTRL0_CLKGATE 0x80000000 | ||
157 | #define BM_CLKCTRL_PLL2CTRL0_RSRVD3 0x40000000 | ||
158 | #define BP_CLKCTRL_PLL2CTRL0_LFR_SEL 28 | ||
159 | #define BM_CLKCTRL_PLL2CTRL0_LFR_SEL 0x30000000 | ||
160 | #define BF_CLKCTRL_PLL2CTRL0_LFR_SEL(v) \ | ||
161 | (((v) << 28) & BM_CLKCTRL_PLL2CTRL0_LFR_SEL) | ||
162 | #define BM_CLKCTRL_PLL2CTRL0_RSRVD2 0x08000000 | ||
163 | #define BM_CLKCTRL_PLL2CTRL0_HOLD_RING_OFF_B 0x04000000 | ||
164 | #define BP_CLKCTRL_PLL2CTRL0_CP_SEL 24 | ||
165 | #define BM_CLKCTRL_PLL2CTRL0_CP_SEL 0x03000000 | ||
166 | #define BF_CLKCTRL_PLL2CTRL0_CP_SEL(v) \ | ||
167 | (((v) << 24) & BM_CLKCTRL_PLL2CTRL0_CP_SEL) | ||
168 | #define BM_CLKCTRL_PLL2CTRL0_POWER 0x00800000 | ||
169 | #define BP_CLKCTRL_PLL2CTRL0_RSRVD1 0 | ||
170 | #define BM_CLKCTRL_PLL2CTRL0_RSRVD1 0x007FFFFF | ||
171 | #define BF_CLKCTRL_PLL2CTRL0_RSRVD1(v) \ | ||
172 | (((v) << 0) & BM_CLKCTRL_PLL2CTRL0_RSRVD1) | ||
173 | |||
174 | #define HW_CLKCTRL_CPU (0x00000050) | ||
175 | #define HW_CLKCTRL_CPU_SET (0x00000054) | ||
176 | #define HW_CLKCTRL_CPU_CLR (0x00000058) | ||
177 | #define HW_CLKCTRL_CPU_TOG (0x0000005c) | ||
178 | |||
179 | #define BP_CLKCTRL_CPU_RSRVD5 30 | ||
180 | #define BM_CLKCTRL_CPU_RSRVD5 0xC0000000 | ||
181 | #define BF_CLKCTRL_CPU_RSRVD5(v) \ | ||
182 | (((v) << 30) & BM_CLKCTRL_CPU_RSRVD5) | ||
183 | #define BM_CLKCTRL_CPU_BUSY_REF_XTAL 0x20000000 | ||
184 | #define BM_CLKCTRL_CPU_BUSY_REF_CPU 0x10000000 | ||
185 | #define BM_CLKCTRL_CPU_RSRVD4 0x08000000 | ||
186 | #define BM_CLKCTRL_CPU_DIV_XTAL_FRAC_EN 0x04000000 | ||
187 | #define BP_CLKCTRL_CPU_DIV_XTAL 16 | ||
188 | #define BM_CLKCTRL_CPU_DIV_XTAL 0x03FF0000 | ||
189 | #define BF_CLKCTRL_CPU_DIV_XTAL(v) \ | ||
190 | (((v) << 16) & BM_CLKCTRL_CPU_DIV_XTAL) | ||
191 | #define BP_CLKCTRL_CPU_RSRVD3 13 | ||
192 | #define BM_CLKCTRL_CPU_RSRVD3 0x0000E000 | ||
193 | #define BF_CLKCTRL_CPU_RSRVD3(v) \ | ||
194 | (((v) << 13) & BM_CLKCTRL_CPU_RSRVD3) | ||
195 | #define BM_CLKCTRL_CPU_INTERRUPT_WAIT 0x00001000 | ||
196 | #define BM_CLKCTRL_CPU_RSRVD2 0x00000800 | ||
197 | #define BM_CLKCTRL_CPU_DIV_CPU_FRAC_EN 0x00000400 | ||
198 | #define BP_CLKCTRL_CPU_RSRVD1 6 | ||
199 | #define BM_CLKCTRL_CPU_RSRVD1 0x000003C0 | ||
200 | #define BF_CLKCTRL_CPU_RSRVD1(v) \ | ||
201 | (((v) << 6) & BM_CLKCTRL_CPU_RSRVD1) | ||
202 | #define BP_CLKCTRL_CPU_DIV_CPU 0 | ||
203 | #define BM_CLKCTRL_CPU_DIV_CPU 0x0000003F | ||
204 | #define BF_CLKCTRL_CPU_DIV_CPU(v) \ | ||
205 | (((v) << 0) & BM_CLKCTRL_CPU_DIV_CPU) | ||
206 | |||
207 | #define HW_CLKCTRL_HBUS (0x00000060) | ||
208 | #define HW_CLKCTRL_HBUS_SET (0x00000064) | ||
209 | #define HW_CLKCTRL_HBUS_CLR (0x00000068) | ||
210 | #define HW_CLKCTRL_HBUS_TOG (0x0000006c) | ||
211 | |||
212 | #define BM_CLKCTRL_HBUS_ASM_BUSY 0x80000000 | ||
213 | #define BM_CLKCTRL_HBUS_DCP_AS_ENABLE 0x40000000 | ||
214 | #define BM_CLKCTRL_HBUS_PXP_AS_ENABLE 0x20000000 | ||
215 | #define BM_CLKCTRL_HBUS_RSRVD2 0x10000000 | ||
216 | #define BM_CLKCTRL_HBUS_ASM_EMIPORT_AS_ENABLE 0x08000000 | ||
217 | #define BM_CLKCTRL_HBUS_APBHDMA_AS_ENABLE 0x04000000 | ||
218 | #define BM_CLKCTRL_HBUS_APBXDMA_AS_ENABLE 0x02000000 | ||
219 | #define BM_CLKCTRL_HBUS_TRAFFIC_JAM_AS_ENABLE 0x01000000 | ||
220 | #define BM_CLKCTRL_HBUS_TRAFFIC_AS_ENABLE 0x00800000 | ||
221 | #define BM_CLKCTRL_HBUS_CPU_DATA_AS_ENABLE 0x00400000 | ||
222 | #define BM_CLKCTRL_HBUS_CPU_INSTR_AS_ENABLE 0x00200000 | ||
223 | #define BM_CLKCTRL_HBUS_ASM_ENABLE 0x00100000 | ||
224 | #define BM_CLKCTRL_HBUS_AUTO_CLEAR_DIV_ENABLE 0x00080000 | ||
225 | #define BP_CLKCTRL_HBUS_SLOW_DIV 16 | ||
226 | #define BM_CLKCTRL_HBUS_SLOW_DIV 0x00070000 | ||
227 | #define BF_CLKCTRL_HBUS_SLOW_DIV(v) \ | ||
228 | (((v) << 16) & BM_CLKCTRL_HBUS_SLOW_DIV) | ||
229 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY1 0x0 | ||
230 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY2 0x1 | ||
231 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY4 0x2 | ||
232 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY8 0x3 | ||
233 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY16 0x4 | ||
234 | #define BV_CLKCTRL_HBUS_SLOW_DIV__BY32 0x5 | ||
235 | #define BP_CLKCTRL_HBUS_RSRVD1 6 | ||
236 | #define BM_CLKCTRL_HBUS_RSRVD1 0x0000FFC0 | ||
237 | #define BF_CLKCTRL_HBUS_RSRVD1(v) \ | ||
238 | (((v) << 6) & BM_CLKCTRL_HBUS_RSRVD1) | ||
239 | #define BM_CLKCTRL_HBUS_DIV_FRAC_EN 0x00000020 | ||
240 | #define BP_CLKCTRL_HBUS_DIV 0 | ||
241 | #define BM_CLKCTRL_HBUS_DIV 0x0000001F | ||
242 | #define BF_CLKCTRL_HBUS_DIV(v) \ | ||
243 | (((v) << 0) & BM_CLKCTRL_HBUS_DIV) | ||
244 | |||
245 | #define HW_CLKCTRL_XBUS (0x00000070) | ||
246 | |||
247 | #define BM_CLKCTRL_XBUS_BUSY 0x80000000 | ||
248 | #define BP_CLKCTRL_XBUS_RSRVD1 12 | ||
249 | #define BM_CLKCTRL_XBUS_RSRVD1 0x7FFFF000 | ||
250 | #define BF_CLKCTRL_XBUS_RSRVD1(v) \ | ||
251 | (((v) << 12) & BM_CLKCTRL_XBUS_RSRVD1) | ||
252 | #define BM_CLKCTRL_XBUS_AUTO_CLEAR_DIV_ENABLE 0x00000800 | ||
253 | #define BM_CLKCTRL_XBUS_DIV_FRAC_EN 0x00000400 | ||
254 | #define BP_CLKCTRL_XBUS_DIV 0 | ||
255 | #define BM_CLKCTRL_XBUS_DIV 0x000003FF | ||
256 | #define BF_CLKCTRL_XBUS_DIV(v) \ | ||
257 | (((v) << 0) & BM_CLKCTRL_XBUS_DIV) | ||
258 | |||
259 | #define HW_CLKCTRL_XTAL (0x00000080) | ||
260 | #define HW_CLKCTRL_XTAL_SET (0x00000084) | ||
261 | #define HW_CLKCTRL_XTAL_CLR (0x00000088) | ||
262 | #define HW_CLKCTRL_XTAL_TOG (0x0000008c) | ||
263 | |||
264 | #define BP_CLKCTRL_XTAL_UART_CLK_GATE 31 | ||
265 | #define BM_CLKCTRL_XTAL_UART_CLK_GATE 0x80000000 | ||
266 | #define BM_CLKCTRL_XTAL_RSRVD3 0x40000000 | ||
267 | #define BP_CLKCTRL_XTAL_PWM_CLK24M_GATE 29 | ||
268 | #define BM_CLKCTRL_XTAL_PWM_CLK24M_GATE 0x20000000 | ||
269 | #define BP_CLKCTRL_XTAL_RSRVD2 27 | ||
270 | #define BM_CLKCTRL_XTAL_RSRVD2 0x18000000 | ||
271 | #define BF_CLKCTRL_XTAL_RSRVD2(v) \ | ||
272 | (((v) << 27) & BM_CLKCTRL_XTAL_RSRVD2) | ||
273 | #define BP_CLKCTRL_XTAL_TIMROT_CLK32K_GATE 26 | ||
274 | #define BM_CLKCTRL_XTAL_TIMROT_CLK32K_GATE 0x04000000 | ||
275 | #define BP_CLKCTRL_XTAL_RSRVD1 2 | ||
276 | #define BM_CLKCTRL_XTAL_RSRVD1 0x03FFFFFC | ||
277 | #define BF_CLKCTRL_XTAL_RSRVD1(v) \ | ||
278 | (((v) << 2) & BM_CLKCTRL_XTAL_RSRVD1) | ||
279 | #define BP_CLKCTRL_XTAL_DIV_UART 0 | ||
280 | #define BM_CLKCTRL_XTAL_DIV_UART 0x00000003 | ||
281 | #define BF_CLKCTRL_XTAL_DIV_UART(v) \ | ||
282 | (((v) << 0) & BM_CLKCTRL_XTAL_DIV_UART) | ||
283 | |||
284 | #define HW_CLKCTRL_SSP0 (0x00000090) | ||
285 | |||
286 | #define BP_CLKCTRL_SSP0_CLKGATE 31 | ||
287 | #define BM_CLKCTRL_SSP0_CLKGATE 0x80000000 | ||
288 | #define BM_CLKCTRL_SSP0_RSRVD2 0x40000000 | ||
289 | #define BM_CLKCTRL_SSP0_BUSY 0x20000000 | ||
290 | #define BP_CLKCTRL_SSP0_RSRVD1 10 | ||
291 | #define BM_CLKCTRL_SSP0_RSRVD1 0x1FFFFC00 | ||
292 | #define BF_CLKCTRL_SSP0_RSRVD1(v) \ | ||
293 | (((v) << 10) & BM_CLKCTRL_SSP0_RSRVD1) | ||
294 | #define BM_CLKCTRL_SSP0_DIV_FRAC_EN 0x00000200 | ||
295 | #define BP_CLKCTRL_SSP0_DIV 0 | ||
296 | #define BM_CLKCTRL_SSP0_DIV 0x000001FF | ||
297 | #define BF_CLKCTRL_SSP0_DIV(v) \ | ||
298 | (((v) << 0) & BM_CLKCTRL_SSP0_DIV) | ||
299 | |||
300 | #define HW_CLKCTRL_SSP1 (0x000000a0) | ||
301 | |||
302 | #define BP_CLKCTRL_SSP1_CLKGATE 31 | ||
303 | #define BM_CLKCTRL_SSP1_CLKGATE 0x80000000 | ||
304 | #define BM_CLKCTRL_SSP1_RSRVD2 0x40000000 | ||
305 | #define BM_CLKCTRL_SSP1_BUSY 0x20000000 | ||
306 | #define BP_CLKCTRL_SSP1_RSRVD1 10 | ||
307 | #define BM_CLKCTRL_SSP1_RSRVD1 0x1FFFFC00 | ||
308 | #define BF_CLKCTRL_SSP1_RSRVD1(v) \ | ||
309 | (((v) << 10) & BM_CLKCTRL_SSP1_RSRVD1) | ||
310 | #define BM_CLKCTRL_SSP1_DIV_FRAC_EN 0x00000200 | ||
311 | #define BP_CLKCTRL_SSP1_DIV 0 | ||
312 | #define BM_CLKCTRL_SSP1_DIV 0x000001FF | ||
313 | #define BF_CLKCTRL_SSP1_DIV(v) \ | ||
314 | (((v) << 0) & BM_CLKCTRL_SSP1_DIV) | ||
315 | |||
316 | #define HW_CLKCTRL_SSP2 (0x000000b0) | ||
317 | |||
318 | #define BP_CLKCTRL_SSP2_CLKGATE 31 | ||
319 | #define BM_CLKCTRL_SSP2_CLKGATE 0x80000000 | ||
320 | #define BM_CLKCTRL_SSP2_RSRVD2 0x40000000 | ||
321 | #define BM_CLKCTRL_SSP2_BUSY 0x20000000 | ||
322 | #define BP_CLKCTRL_SSP2_RSRVD1 10 | ||
323 | #define BM_CLKCTRL_SSP2_RSRVD1 0x1FFFFC00 | ||
324 | #define BF_CLKCTRL_SSP2_RSRVD1(v) \ | ||
325 | (((v) << 10) & BM_CLKCTRL_SSP2_RSRVD1) | ||
326 | #define BM_CLKCTRL_SSP2_DIV_FRAC_EN 0x00000200 | ||
327 | #define BP_CLKCTRL_SSP2_DIV 0 | ||
328 | #define BM_CLKCTRL_SSP2_DIV 0x000001FF | ||
329 | #define BF_CLKCTRL_SSP2_DIV(v) \ | ||
330 | (((v) << 0) & BM_CLKCTRL_SSP2_DIV) | ||
331 | |||
332 | #define HW_CLKCTRL_SSP3 (0x000000c0) | ||
333 | |||
334 | #define BP_CLKCTRL_SSP3_CLKGATE 31 | ||
335 | #define BM_CLKCTRL_SSP3_CLKGATE 0x80000000 | ||
336 | #define BM_CLKCTRL_SSP3_RSRVD2 0x40000000 | ||
337 | #define BM_CLKCTRL_SSP3_BUSY 0x20000000 | ||
338 | #define BP_CLKCTRL_SSP3_RSRVD1 10 | ||
339 | #define BM_CLKCTRL_SSP3_RSRVD1 0x1FFFFC00 | ||
340 | #define BF_CLKCTRL_SSP3_RSRVD1(v) \ | ||
341 | (((v) << 10) & BM_CLKCTRL_SSP3_RSRVD1) | ||
342 | #define BM_CLKCTRL_SSP3_DIV_FRAC_EN 0x00000200 | ||
343 | #define BP_CLKCTRL_SSP3_DIV 0 | ||
344 | #define BM_CLKCTRL_SSP3_DIV 0x000001FF | ||
345 | #define BF_CLKCTRL_SSP3_DIV(v) \ | ||
346 | (((v) << 0) & BM_CLKCTRL_SSP3_DIV) | ||
347 | |||
348 | #define HW_CLKCTRL_GPMI (0x000000d0) | ||
349 | |||
350 | #define BP_CLKCTRL_GPMI_CLKGATE 31 | ||
351 | #define BM_CLKCTRL_GPMI_CLKGATE 0x80000000 | ||
352 | #define BM_CLKCTRL_GPMI_RSRVD2 0x40000000 | ||
353 | #define BM_CLKCTRL_GPMI_BUSY 0x20000000 | ||
354 | #define BP_CLKCTRL_GPMI_RSRVD1 11 | ||
355 | #define BM_CLKCTRL_GPMI_RSRVD1 0x1FFFF800 | ||
356 | #define BF_CLKCTRL_GPMI_RSRVD1(v) \ | ||
357 | (((v) << 11) & BM_CLKCTRL_GPMI_RSRVD1) | ||
358 | #define BM_CLKCTRL_GPMI_DIV_FRAC_EN 0x00000400 | ||
359 | #define BP_CLKCTRL_GPMI_DIV 0 | ||
360 | #define BM_CLKCTRL_GPMI_DIV 0x000003FF | ||
361 | #define BF_CLKCTRL_GPMI_DIV(v) \ | ||
362 | (((v) << 0) & BM_CLKCTRL_GPMI_DIV) | ||
363 | |||
364 | #define HW_CLKCTRL_SPDIF (0x000000e0) | ||
365 | |||
366 | #define BP_CLKCTRL_SPDIF_CLKGATE 31 | ||
367 | #define BM_CLKCTRL_SPDIF_CLKGATE 0x80000000 | ||
368 | #define BP_CLKCTRL_SPDIF_RSRVD 0 | ||
369 | #define BM_CLKCTRL_SPDIF_RSRVD 0x7FFFFFFF | ||
370 | #define BF_CLKCTRL_SPDIF_RSRVD(v) \ | ||
371 | (((v) << 0) & BM_CLKCTRL_SPDIF_RSRVD) | ||
372 | |||
373 | #define HW_CLKCTRL_EMI (0x000000f0) | ||
374 | |||
375 | #define BP_CLKCTRL_EMI_CLKGATE 31 | ||
376 | #define BM_CLKCTRL_EMI_CLKGATE 0x80000000 | ||
377 | #define BM_CLKCTRL_EMI_SYNC_MODE_EN 0x40000000 | ||
378 | #define BM_CLKCTRL_EMI_BUSY_REF_XTAL 0x20000000 | ||
379 | #define BM_CLKCTRL_EMI_BUSY_REF_EMI 0x10000000 | ||
380 | #define BM_CLKCTRL_EMI_BUSY_REF_CPU 0x08000000 | ||
381 | #define BM_CLKCTRL_EMI_BUSY_SYNC_MODE 0x04000000 | ||
382 | #define BP_CLKCTRL_EMI_RSRVD3 18 | ||
383 | #define BM_CLKCTRL_EMI_RSRVD3 0x03FC0000 | ||
384 | #define BF_CLKCTRL_EMI_RSRVD3(v) \ | ||
385 | (((v) << 18) & BM_CLKCTRL_EMI_RSRVD3) | ||
386 | #define BM_CLKCTRL_EMI_BUSY_DCC_RESYNC 0x00020000 | ||
387 | #define BM_CLKCTRL_EMI_DCC_RESYNC_ENABLE 0x00010000 | ||
388 | #define BP_CLKCTRL_EMI_RSRVD2 12 | ||
389 | #define BM_CLKCTRL_EMI_RSRVD2 0x0000F000 | ||
390 | #define BF_CLKCTRL_EMI_RSRVD2(v) \ | ||
391 | (((v) << 12) & BM_CLKCTRL_EMI_RSRVD2) | ||
392 | #define BP_CLKCTRL_EMI_DIV_XTAL 8 | ||
393 | #define BM_CLKCTRL_EMI_DIV_XTAL 0x00000F00 | ||
394 | #define BF_CLKCTRL_EMI_DIV_XTAL(v) \ | ||
395 | (((v) << 8) & BM_CLKCTRL_EMI_DIV_XTAL) | ||
396 | #define BP_CLKCTRL_EMI_RSRVD1 6 | ||
397 | #define BM_CLKCTRL_EMI_RSRVD1 0x000000C0 | ||
398 | #define BF_CLKCTRL_EMI_RSRVD1(v) \ | ||
399 | (((v) << 6) & BM_CLKCTRL_EMI_RSRVD1) | ||
400 | #define BP_CLKCTRL_EMI_DIV_EMI 0 | ||
401 | #define BM_CLKCTRL_EMI_DIV_EMI 0x0000003F | ||
402 | #define BF_CLKCTRL_EMI_DIV_EMI(v) \ | ||
403 | (((v) << 0) & BM_CLKCTRL_EMI_DIV_EMI) | ||
404 | |||
405 | #define HW_CLKCTRL_SAIF0 (0x00000100) | ||
406 | |||
407 | #define BP_CLKCTRL_SAIF0_CLKGATE 31 | ||
408 | #define BM_CLKCTRL_SAIF0_CLKGATE 0x80000000 | ||
409 | #define BM_CLKCTRL_SAIF0_RSRVD2 0x40000000 | ||
410 | #define BM_CLKCTRL_SAIF0_BUSY 0x20000000 | ||
411 | #define BP_CLKCTRL_SAIF0_RSRVD1 17 | ||
412 | #define BM_CLKCTRL_SAIF0_RSRVD1 0x1FFE0000 | ||
413 | #define BF_CLKCTRL_SAIF0_RSRVD1(v) \ | ||
414 | (((v) << 17) & BM_CLKCTRL_SAIF0_RSRVD1) | ||
415 | #define BM_CLKCTRL_SAIF0_DIV_FRAC_EN 0x00010000 | ||
416 | #define BP_CLKCTRL_SAIF0_DIV 0 | ||
417 | #define BM_CLKCTRL_SAIF0_DIV 0x0000FFFF | ||
418 | #define BF_CLKCTRL_SAIF0_DIV(v) \ | ||
419 | (((v) << 0) & BM_CLKCTRL_SAIF0_DIV) | ||
420 | |||
421 | #define HW_CLKCTRL_SAIF1 (0x00000110) | ||
422 | |||
423 | #define BP_CLKCTRL_SAIF1_CLKGATE 31 | ||
424 | #define BM_CLKCTRL_SAIF1_CLKGATE 0x80000000 | ||
425 | #define BM_CLKCTRL_SAIF1_RSRVD2 0x40000000 | ||
426 | #define BM_CLKCTRL_SAIF1_BUSY 0x20000000 | ||
427 | #define BP_CLKCTRL_SAIF1_RSRVD1 17 | ||
428 | #define BM_CLKCTRL_SAIF1_RSRVD1 0x1FFE0000 | ||
429 | #define BF_CLKCTRL_SAIF1_RSRVD1(v) \ | ||
430 | (((v) << 17) & BM_CLKCTRL_SAIF1_RSRVD1) | ||
431 | #define BM_CLKCTRL_SAIF1_DIV_FRAC_EN 0x00010000 | ||
432 | #define BP_CLKCTRL_SAIF1_DIV 0 | ||
433 | #define BM_CLKCTRL_SAIF1_DIV 0x0000FFFF | ||
434 | #define BF_CLKCTRL_SAIF1_DIV(v) \ | ||
435 | (((v) << 0) & BM_CLKCTRL_SAIF1_DIV) | ||
436 | |||
437 | #define HW_CLKCTRL_DIS_LCDIF (0x00000120) | ||
438 | |||
439 | #define BP_CLKCTRL_DIS_LCDIF_CLKGATE 31 | ||
440 | #define BM_CLKCTRL_DIS_LCDIF_CLKGATE 0x80000000 | ||
441 | #define BM_CLKCTRL_DIS_LCDIF_RSRVD2 0x40000000 | ||
442 | #define BM_CLKCTRL_DIS_LCDIF_BUSY 0x20000000 | ||
443 | #define BP_CLKCTRL_DIS_LCDIF_RSRVD1 14 | ||
444 | #define BM_CLKCTRL_DIS_LCDIF_RSRVD1 0x1FFFC000 | ||
445 | #define BF_CLKCTRL_DIS_LCDIF_RSRVD1(v) \ | ||
446 | (((v) << 14) & BM_CLKCTRL_DIS_LCDIF_RSRVD1) | ||
447 | #define BM_CLKCTRL_DIS_LCDIF_DIV_FRAC_EN 0x00002000 | ||
448 | #define BP_CLKCTRL_DIS_LCDIF_DIV 0 | ||
449 | #define BM_CLKCTRL_DIS_LCDIF_DIV 0x00001FFF | ||
450 | #define BF_CLKCTRL_DIS_LCDIF_DIV(v) \ | ||
451 | (((v) << 0) & BM_CLKCTRL_DIS_LCDIF_DIV) | ||
452 | |||
453 | #define HW_CLKCTRL_ETM (0x00000130) | ||
454 | |||
455 | #define BM_CLKCTRL_ETM_CLKGATE 0x80000000 | ||
456 | #define BM_CLKCTRL_ETM_RSRVD2 0x40000000 | ||
457 | #define BM_CLKCTRL_ETM_BUSY 0x20000000 | ||
458 | #define BP_CLKCTRL_ETM_RSRVD1 8 | ||
459 | #define BM_CLKCTRL_ETM_RSRVD1 0x1FFFFF00 | ||
460 | #define BF_CLKCTRL_ETM_RSRVD1(v) \ | ||
461 | (((v) << 8) & BM_CLKCTRL_ETM_RSRVD1) | ||
462 | #define BM_CLKCTRL_ETM_DIV_FRAC_EN 0x00000080 | ||
463 | #define BP_CLKCTRL_ETM_DIV 0 | ||
464 | #define BM_CLKCTRL_ETM_DIV 0x0000007F | ||
465 | #define BF_CLKCTRL_ETM_DIV(v) \ | ||
466 | (((v) << 0) & BM_CLKCTRL_ETM_DIV) | ||
467 | |||
468 | #define HW_CLKCTRL_ENET (0x00000140) | ||
469 | |||
470 | #define BM_CLKCTRL_ENET_SLEEP 0x80000000 | ||
471 | #define BP_CLKCTRL_ENET_DISABLE 30 | ||
472 | #define BM_CLKCTRL_ENET_DISABLE 0x40000000 | ||
473 | #define BM_CLKCTRL_ENET_STATUS 0x20000000 | ||
474 | #define BM_CLKCTRL_ENET_RSRVD1 0x10000000 | ||
475 | #define BM_CLKCTRL_ENET_BUSY_TIME 0x08000000 | ||
476 | #define BP_CLKCTRL_ENET_DIV_TIME 21 | ||
477 | #define BM_CLKCTRL_ENET_DIV_TIME 0x07E00000 | ||
478 | #define BF_CLKCTRL_ENET_DIV_TIME(v) \ | ||
479 | (((v) << 21) & BM_CLKCTRL_ENET_DIV_TIME) | ||
480 | #define BM_CLKCTRL_ENET_BUSY 0x08000000 | ||
481 | #define BP_CLKCTRL_ENET_DIV 21 | ||
482 | #define BM_CLKCTRL_ENET_DIV 0x07E00000 | ||
483 | #define BF_CLKCTRL_ENET_DIV(v) \ | ||
484 | (((v) << 21) & BM_CLKCTRL_ENET_DIV) | ||
485 | #define BP_CLKCTRL_ENET_TIME_SEL 19 | ||
486 | #define BM_CLKCTRL_ENET_TIME_SEL 0x00180000 | ||
487 | #define BF_CLKCTRL_ENET_TIME_SEL(v) \ | ||
488 | (((v) << 19) & BM_CLKCTRL_ENET_TIME_SEL) | ||
489 | #define BV_CLKCTRL_ENET_TIME_SEL__XTAL 0x0 | ||
490 | #define BV_CLKCTRL_ENET_TIME_SEL__PLL 0x1 | ||
491 | #define BV_CLKCTRL_ENET_TIME_SEL__RMII_CLK 0x2 | ||
492 | #define BV_CLKCTRL_ENET_TIME_SEL__UNDEFINED 0x3 | ||
493 | #define BM_CLKCTRL_ENET_CLK_OUT_EN 0x00040000 | ||
494 | #define BM_CLKCTRL_ENET_RESET_BY_SW_CHIP 0x00020000 | ||
495 | #define BM_CLKCTRL_ENET_RESET_BY_SW 0x00010000 | ||
496 | #define BP_CLKCTRL_ENET_RSRVD0 0 | ||
497 | #define BM_CLKCTRL_ENET_RSRVD0 0x0000FFFF | ||
498 | #define BF_CLKCTRL_ENET_RSRVD0(v) \ | ||
499 | (((v) << 0) & BM_CLKCTRL_ENET_RSRVD0) | ||
500 | |||
501 | #define HW_CLKCTRL_HSADC (0x00000150) | ||
502 | |||
503 | #define BM_CLKCTRL_HSADC_RSRVD2 0x80000000 | ||
504 | #define BM_CLKCTRL_HSADC_RESETB 0x40000000 | ||
505 | #define BP_CLKCTRL_HSADC_FREQDIV 28 | ||
506 | #define BM_CLKCTRL_HSADC_FREQDIV 0x30000000 | ||
507 | #define BF_CLKCTRL_HSADC_FREQDIV(v) \ | ||
508 | (((v) << 28) & BM_CLKCTRL_HSADC_FREQDIV) | ||
509 | #define BP_CLKCTRL_HSADC_RSRVD1 0 | ||
510 | #define BM_CLKCTRL_HSADC_RSRVD1 0x0FFFFFFF | ||
511 | #define BF_CLKCTRL_HSADC_RSRVD1(v) \ | ||
512 | (((v) << 0) & BM_CLKCTRL_HSADC_RSRVD1) | ||
513 | |||
514 | #define HW_CLKCTRL_FLEXCAN (0x00000160) | ||
515 | |||
516 | #define BM_CLKCTRL_FLEXCAN_RSRVD2 0x80000000 | ||
517 | #define BP_CLKCTRL_FLEXCAN_STOP_CAN0 30 | ||
518 | #define BM_CLKCTRL_FLEXCAN_STOP_CAN0 0x40000000 | ||
519 | #define BM_CLKCTRL_FLEXCAN_CAN0_STATUS 0x20000000 | ||
520 | #define BP_CLKCTRL_FLEXCAN_STOP_CAN1 28 | ||
521 | #define BM_CLKCTRL_FLEXCAN_STOP_CAN1 0x10000000 | ||
522 | #define BM_CLKCTRL_FLEXCAN_CAN1_STATUS 0x08000000 | ||
523 | #define BP_CLKCTRL_FLEXCAN_RSRVD1 0 | ||
524 | #define BM_CLKCTRL_FLEXCAN_RSRVD1 0x07FFFFFF | ||
525 | #define BF_CLKCTRL_FLEXCAN_RSRVD1(v) \ | ||
526 | (((v) << 0) & BM_CLKCTRL_FLEXCAN_RSRVD1) | ||
527 | |||
528 | #define HW_CLKCTRL_FRAC0 (0x000001b0) | ||
529 | #define HW_CLKCTRL_FRAC0_SET (0x000001b4) | ||
530 | #define HW_CLKCTRL_FRAC0_CLR (0x000001b8) | ||
531 | #define HW_CLKCTRL_FRAC0_TOG (0x000001bc) | ||
532 | |||
533 | #define BP_CLKCTRL_FRAC0_CLKGATEIO0 31 | ||
534 | #define BM_CLKCTRL_FRAC0_CLKGATEIO0 0x80000000 | ||
535 | #define BM_CLKCTRL_FRAC0_IO0_STABLE 0x40000000 | ||
536 | #define BP_CLKCTRL_FRAC0_IO0FRAC 24 | ||
537 | #define BM_CLKCTRL_FRAC0_IO0FRAC 0x3F000000 | ||
538 | #define BF_CLKCTRL_FRAC0_IO0FRAC(v) \ | ||
539 | (((v) << 24) & BM_CLKCTRL_FRAC0_IO0FRAC) | ||
540 | #define BP_CLKCTRL_FRAC0_CLKGATEIO1 23 | ||
541 | #define BM_CLKCTRL_FRAC0_CLKGATEIO1 0x00800000 | ||
542 | #define BM_CLKCTRL_FRAC0_IO1_STABLE 0x00400000 | ||
543 | #define BP_CLKCTRL_FRAC0_IO1FRAC 16 | ||
544 | #define BM_CLKCTRL_FRAC0_IO1FRAC 0x003F0000 | ||
545 | #define BF_CLKCTRL_FRAC0_IO1FRAC(v) \ | ||
546 | (((v) << 16) & BM_CLKCTRL_FRAC0_IO1FRAC) | ||
547 | #define BP_CLKCTRL_FRAC0_CLKGATEEMI 15 | ||
548 | #define BM_CLKCTRL_FRAC0_CLKGATEEMI 0x00008000 | ||
549 | #define BM_CLKCTRL_FRAC0_EMI_STABLE 0x00004000 | ||
550 | #define BP_CLKCTRL_FRAC0_EMIFRAC 8 | ||
551 | #define BM_CLKCTRL_FRAC0_EMIFRAC 0x00003F00 | ||
552 | #define BF_CLKCTRL_FRAC0_EMIFRAC(v) \ | ||
553 | (((v) << 8) & BM_CLKCTRL_FRAC0_EMIFRAC) | ||
554 | #define BP_CLKCTRL_FRAC0_CLKGATECPU 7 | ||
555 | #define BM_CLKCTRL_FRAC0_CLKGATECPU 0x00000080 | ||
556 | #define BM_CLKCTRL_FRAC0_CPU_STABLE 0x00000040 | ||
557 | #define BP_CLKCTRL_FRAC0_CPUFRAC 0 | ||
558 | #define BM_CLKCTRL_FRAC0_CPUFRAC 0x0000003F | ||
559 | #define BF_CLKCTRL_FRAC0_CPUFRAC(v) \ | ||
560 | (((v) << 0) & BM_CLKCTRL_FRAC0_CPUFRAC) | ||
561 | |||
562 | #define HW_CLKCTRL_FRAC1 (0x000001c0) | ||
563 | #define HW_CLKCTRL_FRAC1_SET (0x000001c4) | ||
564 | #define HW_CLKCTRL_FRAC1_CLR (0x000001c8) | ||
565 | #define HW_CLKCTRL_FRAC1_TOG (0x000001cc) | ||
566 | |||
567 | #define BP_CLKCTRL_FRAC1_RSRVD2 24 | ||
568 | #define BM_CLKCTRL_FRAC1_RSRVD2 0xFF000000 | ||
569 | #define BF_CLKCTRL_FRAC1_RSRVD2(v) \ | ||
570 | (((v) << 24) & BM_CLKCTRL_FRAC1_RSRVD2) | ||
571 | #define BP_CLKCTRL_FRAC1_CLKGATEGPMI 23 | ||
572 | #define BM_CLKCTRL_FRAC1_CLKGATEGPMI 0x00800000 | ||
573 | #define BM_CLKCTRL_FRAC1_GPMI_STABLE 0x00400000 | ||
574 | #define BP_CLKCTRL_FRAC1_GPMIFRAC 16 | ||
575 | #define BM_CLKCTRL_FRAC1_GPMIFRAC 0x003F0000 | ||
576 | #define BF_CLKCTRL_FRAC1_GPMIFRAC(v) \ | ||
577 | (((v) << 16) & BM_CLKCTRL_FRAC1_GPMIFRAC) | ||
578 | #define BP_CLKCTRL_FRAC1_CLKGATEHSADC 15 | ||
579 | #define BM_CLKCTRL_FRAC1_CLKGATEHSADC 0x00008000 | ||
580 | #define BM_CLKCTRL_FRAC1_HSADC_STABLE 0x00004000 | ||
581 | #define BP_CLKCTRL_FRAC1_HSADCFRAC 8 | ||
582 | #define BM_CLKCTRL_FRAC1_HSADCFRAC 0x00003F00 | ||
583 | #define BF_CLKCTRL_FRAC1_HSADCFRAC(v) \ | ||
584 | (((v) << 8) & BM_CLKCTRL_FRAC1_HSADCFRAC) | ||
585 | #define BP_CLKCTRL_FRAC1_CLKGATEPIX 7 | ||
586 | #define BM_CLKCTRL_FRAC1_CLKGATEPIX 0x00000080 | ||
587 | #define BM_CLKCTRL_FRAC1_PIX_STABLE 0x00000040 | ||
588 | #define BP_CLKCTRL_FRAC1_PIXFRAC 0 | ||
589 | #define BM_CLKCTRL_FRAC1_PIXFRAC 0x0000003F | ||
590 | #define BF_CLKCTRL_FRAC1_PIXFRAC(v) \ | ||
591 | (((v) << 0) & BM_CLKCTRL_FRAC1_PIXFRAC) | ||
592 | |||
593 | #define HW_CLKCTRL_CLKSEQ (0x000001d0) | ||
594 | #define HW_CLKCTRL_CLKSEQ_SET (0x000001d4) | ||
595 | #define HW_CLKCTRL_CLKSEQ_CLR (0x000001d8) | ||
596 | #define HW_CLKCTRL_CLKSEQ_TOG (0x000001dc) | ||
597 | |||
598 | #define BP_CLKCTRL_CLKSEQ_RSRVD0 19 | ||
599 | #define BM_CLKCTRL_CLKSEQ_RSRVD0 0xFFF80000 | ||
600 | #define BF_CLKCTRL_CLKSEQ_RSRVD0(v) \ | ||
601 | (((v) << 19) & BM_CLKCTRL_CLKSEQ_RSRVD0) | ||
602 | #define BM_CLKCTRL_CLKSEQ_BYPASS_CPU 0x00040000 | ||
603 | #define BP_CLKCTRL_CLKSEQ_RSRVD1 15 | ||
604 | #define BM_CLKCTRL_CLKSEQ_RSRVD1 0x00038000 | ||
605 | #define BF_CLKCTRL_CLKSEQ_RSRVD1(v) \ | ||
606 | (((v) << 15) & BM_CLKCTRL_CLKSEQ_RSRVD1) | ||
607 | #define BM_CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF 0x00004000 | ||
608 | #define BV_CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF__BYPASS 0x1 | ||
609 | #define BV_CLKCTRL_CLKSEQ_BYPASS_DIS_LCDIF__PFD 0x0 | ||
610 | #define BP_CLKCTRL_CLKSEQ_RSRVD2 9 | ||
611 | #define BM_CLKCTRL_CLKSEQ_RSRVD2 0x00003E00 | ||
612 | #define BF_CLKCTRL_CLKSEQ_RSRVD2(v) \ | ||
613 | (((v) << 9) & BM_CLKCTRL_CLKSEQ_RSRVD2) | ||
614 | #define BM_CLKCTRL_CLKSEQ_BYPASS_ETM 0x00000100 | ||
615 | #define BM_CLKCTRL_CLKSEQ_BYPASS_EMI 0x00000080 | ||
616 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SSP3 0x00000040 | ||
617 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SSP2 0x00000020 | ||
618 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SSP1 0x00000010 | ||
619 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SSP0 0x00000008 | ||
620 | #define BM_CLKCTRL_CLKSEQ_BYPASS_GPMI 0x00000004 | ||
621 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SAIF1 0x00000002 | ||
622 | #define BM_CLKCTRL_CLKSEQ_BYPASS_SAIF0 0x00000001 | ||
623 | |||
624 | #define HW_CLKCTRL_RESET (0x000001e0) | ||
625 | |||
626 | #define BP_CLKCTRL_RESET_RSRVD 6 | ||
627 | #define BM_CLKCTRL_RESET_RSRVD 0xFFFFFFC0 | ||
628 | #define BF_CLKCTRL_RESET_RSRVD(v) \ | ||
629 | (((v) << 6) & BM_CLKCTRL_RESET_RSRVD) | ||
630 | #define BM_CLKCTRL_RESET_WDOG_POR_DISABLE 0x00000020 | ||
631 | #define BM_CLKCTRL_RESET_EXTERNAL_RESET_ENABLE 0x00000010 | ||
632 | #define BM_CLKCTRL_RESET_THERMAL_RESET_ENABLE 0x00000008 | ||
633 | #define BM_CLKCTRL_RESET_THERMAL_RESET_DEFAULT 0x00000004 | ||
634 | #define BM_CLKCTRL_RESET_CHIP 0x00000002 | ||
635 | #define BM_CLKCTRL_RESET_DIG 0x00000001 | ||
636 | |||
637 | #define HW_CLKCTRL_STATUS (0x000001f0) | ||
638 | |||
639 | #define BP_CLKCTRL_STATUS_CPU_LIMIT 30 | ||
640 | #define BM_CLKCTRL_STATUS_CPU_LIMIT 0xC0000000 | ||
641 | #define BF_CLKCTRL_STATUS_CPU_LIMIT(v) \ | ||
642 | (((v) << 30) & BM_CLKCTRL_STATUS_CPU_LIMIT) | ||
643 | #define BP_CLKCTRL_STATUS_RSRVD 0 | ||
644 | #define BM_CLKCTRL_STATUS_RSRVD 0x3FFFFFFF | ||
645 | #define BF_CLKCTRL_STATUS_RSRVD(v) \ | ||
646 | (((v) << 0) & BM_CLKCTRL_STATUS_RSRVD) | ||
647 | |||
648 | #define HW_CLKCTRL_VERSION (0x00000200) | ||
649 | |||
650 | #define BP_CLKCTRL_VERSION_MAJOR 24 | ||
651 | #define BM_CLKCTRL_VERSION_MAJOR 0xFF000000 | ||
652 | #define BF_CLKCTRL_VERSION_MAJOR(v) \ | ||
653 | (((v) << 24) & BM_CLKCTRL_VERSION_MAJOR) | ||
654 | #define BP_CLKCTRL_VERSION_MINOR 16 | ||
655 | #define BM_CLKCTRL_VERSION_MINOR 0x00FF0000 | ||
656 | #define BF_CLKCTRL_VERSION_MINOR(v) \ | ||
657 | (((v) << 16) & BM_CLKCTRL_VERSION_MINOR) | ||
658 | #define BP_CLKCTRL_VERSION_STEP 0 | ||
659 | #define BM_CLKCTRL_VERSION_STEP 0x0000FFFF | ||
660 | #define BF_CLKCTRL_VERSION_STEP(v) \ | ||
661 | (((v) << 0) & BM_CLKCTRL_VERSION_STEP) | ||
662 | |||
663 | #endif /* __REGS_CLKCTRL_MX28_H__ */ | ||