diff options
Diffstat (limited to 'drivers/gpu/pvr/sgxerrata.h')
-rw-r--r-- | drivers/gpu/pvr/sgxerrata.h | 330 |
1 files changed, 330 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/sgxerrata.h b/drivers/gpu/pvr/sgxerrata.h new file mode 100644 index 00000000000..552cb2c3523 --- /dev/null +++ b/drivers/gpu/pvr/sgxerrata.h | |||
@@ -0,0 +1,330 @@ | |||
1 | /********************************************************************** | ||
2 | * | ||
3 | * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms and conditions of the GNU General Public License, | ||
7 | * version 2, as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful but, except | ||
10 | * as otherwise stated in writing, without any warranty; without even the | ||
11 | * implied warranty of merchantability or fitness for a particular purpose. | ||
12 | * See the GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
17 | * | ||
18 | * The full GNU General Public License is included in this distribution in | ||
19 | * the file called "COPYING". | ||
20 | * | ||
21 | * Contact Information: | ||
22 | * Imagination Technologies Ltd. <gpl-support@imgtec.com> | ||
23 | * Home Park Estate, Kings Langley, Herts, WD4 8LZ, UK | ||
24 | * | ||
25 | ******************************************************************************/ | ||
26 | |||
27 | #ifndef _SGXERRATA_KM_H_ | ||
28 | #define _SGXERRATA_KM_H_ | ||
29 | |||
30 | #if defined(SGX520) && !defined(SGX_CORE_DEFINED) | ||
31 | |||
32 | #define SGX_CORE_REV_HEAD 0 | ||
33 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
34 | |||
35 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
36 | #endif | ||
37 | |||
38 | #if SGX_CORE_REV == 100 | ||
39 | #else | ||
40 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
41 | |||
42 | #else | ||
43 | #error "sgxerrata.h: SGX520 Core Revision unspecified" | ||
44 | #endif | ||
45 | #endif | ||
46 | |||
47 | #define SGX_CORE_DEFINED | ||
48 | #endif | ||
49 | |||
50 | #if defined(SGX530) && !defined(SGX_CORE_DEFINED) | ||
51 | |||
52 | #define SGX_CORE_REV_HEAD 0 | ||
53 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
54 | |||
55 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
56 | #endif | ||
57 | |||
58 | #if SGX_CORE_REV == 110 | ||
59 | #define FIX_HW_BRN_22934 | ||
60 | #else | ||
61 | #if SGX_CORE_REV == 111 | ||
62 | #define FIX_HW_BRN_22934 | ||
63 | #else | ||
64 | #if SGX_CORE_REV == 120 | ||
65 | #define FIX_HW_BRN_22934 | ||
66 | #else | ||
67 | #if SGX_CORE_REV == 121 | ||
68 | #define FIX_HW_BRN_22934 | ||
69 | #else | ||
70 | #if SGX_CORE_REV == 125 | ||
71 | #define FIX_HW_BRN_22934 | ||
72 | #else | ||
73 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
74 | |||
75 | #else | ||
76 | #error "sgxerrata.h: SGX530 Core Revision unspecified" | ||
77 | #endif | ||
78 | #endif | ||
79 | #endif | ||
80 | #endif | ||
81 | #endif | ||
82 | #endif | ||
83 | |||
84 | #define SGX_CORE_DEFINED | ||
85 | #endif | ||
86 | |||
87 | #if defined(SGX531) && !defined(SGX_CORE_DEFINED) | ||
88 | |||
89 | #define SGX_CORE_REV_HEAD 0 | ||
90 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
91 | |||
92 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
93 | #endif | ||
94 | |||
95 | #if SGX_CORE_REV == 101 | ||
96 | #define FIX_HW_BRN_26620 | ||
97 | #define FIX_HW_BRN_28011 | ||
98 | #else | ||
99 | #if SGX_CORE_REV == 110 | ||
100 | |||
101 | #else | ||
102 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
103 | |||
104 | #else | ||
105 | #error "sgxerrata.h: SGX531 Core Revision unspecified" | ||
106 | #endif | ||
107 | #endif | ||
108 | #endif | ||
109 | |||
110 | #define SGX_CORE_DEFINED | ||
111 | #endif | ||
112 | |||
113 | #if (defined(SGX535) || defined(SGX535_V1_1)) && !defined(SGX_CORE_DEFINED) | ||
114 | |||
115 | #define SGX_CORE_REV_HEAD 0 | ||
116 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
117 | |||
118 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
119 | #endif | ||
120 | |||
121 | #if SGX_CORE_REV == 112 | ||
122 | #define FIX_HW_BRN_23281 | ||
123 | #define FIX_HW_BRN_23410 | ||
124 | #define FIX_HW_BRN_22693 | ||
125 | #define FIX_HW_BRN_22934 | ||
126 | #define FIX_HW_BRN_22997 | ||
127 | #define FIX_HW_BRN_23030 | ||
128 | #else | ||
129 | #if SGX_CORE_REV == 113 | ||
130 | #define FIX_HW_BRN_22934 | ||
131 | #define FIX_HW_BRN_23281 | ||
132 | #define FIX_HW_BRN_23944 | ||
133 | #define FIX_HW_BRN_23410 | ||
134 | #else | ||
135 | #if SGX_CORE_REV == 121 | ||
136 | #define FIX_HW_BRN_22934 | ||
137 | #define FIX_HW_BRN_23944 | ||
138 | #define FIX_HW_BRN_23410 | ||
139 | #else | ||
140 | #if SGX_CORE_REV == 126 | ||
141 | #define FIX_HW_BRN_22934 | ||
142 | #else | ||
143 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
144 | |||
145 | #else | ||
146 | #error "sgxerrata.h: SGX535 Core Revision unspecified" | ||
147 | |||
148 | #endif | ||
149 | #endif | ||
150 | #endif | ||
151 | #endif | ||
152 | #endif | ||
153 | |||
154 | #define SGX_CORE_DEFINED | ||
155 | #endif | ||
156 | |||
157 | #if defined(SGX540) && !defined(SGX_CORE_DEFINED) | ||
158 | |||
159 | #define SGX_CORE_REV_HEAD 0 | ||
160 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
161 | |||
162 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
163 | #endif | ||
164 | |||
165 | #if SGX_CORE_REV == 101 | ||
166 | #define FIX_HW_BRN_25499 | ||
167 | #define FIX_HW_BRN_25503 | ||
168 | #define FIX_HW_BRN_26620 | ||
169 | #define FIX_HW_BRN_28011 | ||
170 | #else | ||
171 | #if SGX_CORE_REV == 110 | ||
172 | #define FIX_HW_BRN_25503 | ||
173 | #define FIX_HW_BRN_26620 | ||
174 | #define FIX_HW_BRN_28011 | ||
175 | #else | ||
176 | #if SGX_CORE_REV == 120 | ||
177 | #define FIX_HW_BRN_26620 | ||
178 | #define FIX_HW_BRN_28011 | ||
179 | #else | ||
180 | #if SGX_CORE_REV == 121 | ||
181 | #define FIX_HW_BRN_28011 | ||
182 | #else | ||
183 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
184 | |||
185 | #else | ||
186 | #error "sgxerrata.h: SGX540 Core Revision unspecified" | ||
187 | #endif | ||
188 | #endif | ||
189 | #endif | ||
190 | #endif | ||
191 | #endif | ||
192 | |||
193 | #define SGX_CORE_DEFINED | ||
194 | #endif | ||
195 | |||
196 | #if defined(SGX541) && !defined(SGX_CORE_DEFINED) | ||
197 | #if defined(SGX_FEATURE_MP) | ||
198 | |||
199 | #define SGX_CORE_REV_HEAD 0 | ||
200 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
201 | |||
202 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
203 | #endif | ||
204 | |||
205 | #if SGX_CORE_REV == 100 | ||
206 | #define FIX_HW_BRN_27270 | ||
207 | #define FIX_HW_BRN_28011 | ||
208 | #define FIX_HW_BRN_27510 | ||
209 | |||
210 | #else | ||
211 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
212 | |||
213 | #else | ||
214 | #error "sgxerrata.h: SGX541 Core Revision unspecified" | ||
215 | #endif | ||
216 | #endif | ||
217 | |||
218 | #define SGX_CORE_DEFINED | ||
219 | #else | ||
220 | #error "sgxerrata.h: SGX541 only supports MP configs (SGX_FEATURE_MP)" | ||
221 | #endif | ||
222 | #endif | ||
223 | |||
224 | #if defined(SGX543) && !defined(SGX_CORE_DEFINED) | ||
225 | |||
226 | #define SGX_CORE_REV_HEAD 0 | ||
227 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
228 | |||
229 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
230 | #endif | ||
231 | |||
232 | #if SGX_CORE_REV == 113 | ||
233 | |||
234 | #else | ||
235 | #if SGX_CORE_REV == 122 | ||
236 | |||
237 | #else | ||
238 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
239 | |||
240 | #else | ||
241 | #error "sgxerrata.h: SGX543 Core Revision unspecified" | ||
242 | #endif | ||
243 | #endif | ||
244 | #endif | ||
245 | |||
246 | #define SGX_CORE_DEFINED | ||
247 | #endif | ||
248 | |||
249 | #if defined(SGX544) && !defined(SGX_CORE_DEFINED) | ||
250 | |||
251 | #define SGX_CORE_REV_HEAD 0 | ||
252 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
253 | |||
254 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
255 | #endif | ||
256 | |||
257 | #if SGX_CORE_REV == 100 | ||
258 | |||
259 | #else | ||
260 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
261 | |||
262 | #else | ||
263 | #error "sgxerrata.h: SGX544 Core Revision unspecified" | ||
264 | #endif | ||
265 | #endif | ||
266 | |||
267 | #define SGX_CORE_DEFINED | ||
268 | #endif | ||
269 | |||
270 | #if defined(SGX545) && !defined(SGX_CORE_DEFINED) | ||
271 | |||
272 | #define SGX_CORE_REV_HEAD 0 | ||
273 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
274 | |||
275 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
276 | #endif | ||
277 | |||
278 | #if SGX_CORE_REV == 100 | ||
279 | #define FIX_HW_BRN_26620 | ||
280 | #define FIX_HW_BRN_27266 | ||
281 | #define FIX_HW_BRN_27456 | ||
282 | #define FIX_HW_BRN_29702 | ||
283 | #define FIX_HW_BRN_29823 | ||
284 | #else | ||
285 | #if SGX_CORE_REV == 109 | ||
286 | #define FIX_HW_BRN_29702 | ||
287 | #define FIX_HW_BRN_29823 | ||
288 | #else | ||
289 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
290 | |||
291 | #else | ||
292 | #error "sgxerrata.h: SGX545 Core Revision unspecified" | ||
293 | #endif | ||
294 | #endif | ||
295 | #endif | ||
296 | |||
297 | #define SGX_CORE_DEFINED | ||
298 | #endif | ||
299 | |||
300 | #if defined(SGX554) && !defined(SGX_CORE_DEFINED) | ||
301 | |||
302 | #define SGX_CORE_REV_HEAD 0 | ||
303 | #if defined(USE_SGX_CORE_REV_HEAD) | ||
304 | |||
305 | #define SGX_CORE_REV SGX_CORE_REV_HEAD | ||
306 | #endif | ||
307 | |||
308 | #if SGX_CORE_REV == 100 | ||
309 | |||
310 | #else | ||
311 | #if SGX_CORE_REV == SGX_CORE_REV_HEAD | ||
312 | |||
313 | #else | ||
314 | #error "sgxerrata.h: SGX554 Core Revision unspecified" | ||
315 | #endif | ||
316 | #endif | ||
317 | |||
318 | #define SGX_CORE_DEFINED | ||
319 | #endif | ||
320 | |||
321 | #if !defined(SGX_CORE_DEFINED) | ||
322 | #if defined (__GNUC__) | ||
323 | #warning "sgxerrata.h: SGX Core Version unspecified" | ||
324 | #else | ||
325 | #pragma message("sgxerrata.h: SGX Core Version unspecified") | ||
326 | #endif | ||
327 | #endif | ||
328 | |||
329 | #endif | ||
330 | |||