xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision b781fcf139c3a609f1adffb8097a23eadbed53a9)
1#
2# Copyright (c) 2014-2022, Arm Limited and Contributors. All rights reserved.
3# Copyright (c) 2020-2022, NVIDIA Corporation. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# Cortex A57 specific optimisation to skip L1 cache flush when
9# cluster is powered down.
10SKIP_A57_L1_FLUSH_PWR_DWN		?=0
11
12# Flag to disable the cache non-temporal hint.
13# It is enabled by default.
14A53_DISABLE_NON_TEMPORAL_HINT		?=1
15
16# Flag to disable the cache non-temporal hint.
17# It is enabled by default.
18A57_DISABLE_NON_TEMPORAL_HINT		?=1
19
20# Flag to enable higher performance non-cacheable load forwarding.
21# It is disabled by default.
22A57_ENABLE_NONCACHEABLE_LOAD_FWD	?= 0
23
24WORKAROUND_CVE_2017_5715		?=1
25WORKAROUND_CVE_2018_3639		?=1
26DYNAMIC_WORKAROUND_CVE_2018_3639	?=0
27WORKAROUND_CVE_2022_23960		?=1
28
29# Flags to indicate internal or external Last level cache
30# By default internal
31NEOVERSE_Nx_EXTERNAL_LLC		?=0
32
33# Process A57_ENABLE_NONCACHEABLE_LOAD_FWD flag
34$(eval $(call assert_boolean,A57_ENABLE_NONCACHEABLE_LOAD_FWD))
35$(eval $(call add_define,A57_ENABLE_NONCACHEABLE_LOAD_FWD))
36
37# Process SKIP_A57_L1_FLUSH_PWR_DWN flag
38$(eval $(call assert_boolean,SKIP_A57_L1_FLUSH_PWR_DWN))
39$(eval $(call add_define,SKIP_A57_L1_FLUSH_PWR_DWN))
40
41# Process A53_DISABLE_NON_TEMPORAL_HINT flag
42$(eval $(call assert_boolean,A53_DISABLE_NON_TEMPORAL_HINT))
43$(eval $(call add_define,A53_DISABLE_NON_TEMPORAL_HINT))
44
45# Process A57_DISABLE_NON_TEMPORAL_HINT flag
46$(eval $(call assert_boolean,A57_DISABLE_NON_TEMPORAL_HINT))
47$(eval $(call add_define,A57_DISABLE_NON_TEMPORAL_HINT))
48
49# Process WORKAROUND_CVE_2017_5715 flag
50$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
51$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
52
53# Process WORKAROUND_CVE_2018_3639 flag
54$(eval $(call assert_boolean,WORKAROUND_CVE_2018_3639))
55$(eval $(call add_define,WORKAROUND_CVE_2018_3639))
56
57$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
58$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
59
60# Process WORKAROUND_CVE_2022_23960 flag
61$(eval $(call assert_boolean,WORKAROUND_CVE_2022_23960))
62$(eval $(call add_define,WORKAROUND_CVE_2022_23960))
63
64$(eval $(call assert_boolean,NEOVERSE_Nx_EXTERNAL_LLC))
65$(eval $(call add_define,NEOVERSE_Nx_EXTERNAL_LLC))
66
67ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
68	ifeq (${WORKAROUND_CVE_2018_3639},0)
69		$(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
70	endif
71endif
72
73# CPU Errata Build flags.
74# These should be enabled by the platform if the erratum workaround needs to be
75# applied.
76
77# Flag to apply erratum 794073 workaround when disabling mmu.
78ERRATA_A9_794073	?=0
79
80# Flag to apply erratum 816470 workaround during power down. This erratum
81# applies only to revision >= r3p0 of the Cortex A15 cpu.
82ERRATA_A15_816470	?=0
83
84# Flag to apply erratum 827671 workaround during reset. This erratum applies
85# only to revision >= r3p0 of the Cortex A15 cpu.
86ERRATA_A15_827671	?=0
87
88# Flag to apply erratum 852421 workaround during reset. This erratum applies
89# only to revision <= r1p2 of the Cortex A17 cpu.
90ERRATA_A17_852421	?=0
91
92# Flag to apply erratum 852423 workaround during reset. This erratum applies
93# only to revision <= r1p2 of the Cortex A17 cpu.
94ERRATA_A17_852423	?=0
95
96# Flag to apply erratum 855472 workaround during reset. This erratum applies
97# only to revision r0p0 of the Cortex A35 cpu.
98ERRATA_A35_855472	?=0
99
100# Flag to apply erratum 819472 workaround during reset. This erratum applies
101# only to revision <= r0p1 of the Cortex A53 cpu.
102ERRATA_A53_819472	?=0
103
104# Flag to apply erratum 824069 workaround during reset. This erratum applies
105# only to revision <= r0p2 of the Cortex A53 cpu.
106ERRATA_A53_824069	?=0
107
108# Flag to apply erratum 826319 workaround during reset. This erratum applies
109# only to revision <= r0p2 of the Cortex A53 cpu.
110ERRATA_A53_826319	?=0
111
112# Flag to apply erratum 827319 workaround during reset. This erratum applies
113# only to revision <= r0p2 of the Cortex A53 cpu.
114ERRATA_A53_827319	?=0
115
116# Flag to apply erratum 835769 workaround at compile and link time. This
117# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
118# workaround can lead the linker to create "*.stub" sections.
119ERRATA_A53_835769	?=0
120
121# Flag to apply erratum 836870 workaround during reset. This erratum applies
122# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
123# erratum workaround is enabled by default in hardware.
124ERRATA_A53_836870	?=0
125
126# Flag to apply erratum 843419 workaround at link time.
127# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
128# workaround could lead the linker to emit "*.stub" sections which are 4kB
129# aligned.
130ERRATA_A53_843419	?=0
131
132# Flag to apply errata 855873 during reset. This errata applies to all
133# revisions of the Cortex A53 CPU, but this firmware workaround only works
134# for revisions r0p3 and higher. Earlier revisions are taken care
135# of by the rich OS.
136ERRATA_A53_855873	?=0
137
138# Flag to apply erratum 1530924 workaround during reset. This erratum applies
139# to all revisions of Cortex A53 cpu.
140ERRATA_A53_1530924	?=0
141
142# Flag to apply erratum 768277 workaround during reset. This erratum applies
143# only to revision r0p0 of the Cortex A55 cpu.
144ERRATA_A55_768277	?=0
145
146# Flag to apply erratum 778703 workaround during reset. This erratum applies
147# only to revision r0p0 of the Cortex A55 cpu.
148ERRATA_A55_778703	?=0
149
150# Flag to apply erratum 798797 workaround during reset. This erratum applies
151# only to revision r0p0 of the Cortex A55 cpu.
152ERRATA_A55_798797	?=0
153
154# Flag to apply erratum 846532 workaround during reset. This erratum applies
155# only to revision <= r0p1 of the Cortex A55 cpu.
156ERRATA_A55_846532	?=0
157
158# Flag to apply erratum 903758 workaround during reset. This erratum applies
159# only to revision <= r0p1 of the Cortex A55 cpu.
160ERRATA_A55_903758	?=0
161
162# Flag to apply erratum 1221012 workaround during reset. This erratum applies
163# only to revision <= r1p0 of the Cortex A55 cpu.
164ERRATA_A55_1221012	?=0
165
166# Flag to apply erratum 1530923 workaround during reset. This erratum applies
167# to all revisions of Cortex A55 cpu.
168ERRATA_A55_1530923	?=0
169
170# Flag to apply erratum 806969 workaround during reset. This erratum applies
171# only to revision r0p0 of the Cortex A57 cpu.
172ERRATA_A57_806969	?=0
173
174# Flag to apply erratum 813419 workaround during reset. This erratum applies
175# only to revision r0p0 of the Cortex A57 cpu.
176ERRATA_A57_813419	?=0
177
178# Flag to apply erratum 813420 workaround during reset. This erratum applies
179# only to revision r0p0 of the Cortex A57 cpu.
180ERRATA_A57_813420	?=0
181
182# Flag to apply erratum 814670 workaround during reset. This erratum applies
183# only to revision r0p0 of the Cortex A57 cpu.
184ERRATA_A57_814670	?=0
185
186# Flag to apply erratum 817169 workaround during power down. This erratum
187# applies only to revision <= r0p1 of the Cortex A57 cpu.
188ERRATA_A57_817169	?=0
189
190# Flag to apply erratum 826974 workaround during reset. This erratum applies
191# only to revision <= r1p1 of the Cortex A57 cpu.
192ERRATA_A57_826974	?=0
193
194# Flag to apply erratum 826977 workaround during reset. This erratum applies
195# only to revision <= r1p1 of the Cortex A57 cpu.
196ERRATA_A57_826977	?=0
197
198# Flag to apply erratum 828024 workaround during reset. This erratum applies
199# only to revision <= r1p1 of the Cortex A57 cpu.
200ERRATA_A57_828024	?=0
201
202# Flag to apply erratum 829520 workaround during reset. This erratum applies
203# only to revision <= r1p2 of the Cortex A57 cpu.
204ERRATA_A57_829520	?=0
205
206# Flag to apply erratum 833471 workaround during reset. This erratum applies
207# only to revision <= r1p2 of the Cortex A57 cpu.
208ERRATA_A57_833471	?=0
209
210# Flag to apply erratum 855972 workaround during reset. This erratum applies
211# only to revision <= r1p3 of the Cortex A57 cpu.
212ERRATA_A57_859972	?=0
213
214# Flag to apply erratum 1319537 workaround during reset. This erratum applies
215# to all revisions of Cortex A57 cpu.
216ERRATA_A57_1319537	?=0
217
218# Flag to apply erratum 855971 workaround during reset. This erratum applies
219# only to revision <= r0p3 of the Cortex A72 cpu.
220ERRATA_A72_859971	?=0
221
222# Flag to apply erratum 1319367 workaround during reset. This erratum applies
223# to all revisions of Cortex A72 cpu.
224ERRATA_A72_1319367	?=0
225
226# Flag to apply erratum 852427 workaround during reset. This erratum applies
227# only to revision r0p0 of the Cortex A73 cpu.
228ERRATA_A73_852427	?=0
229
230# Flag to apply erratum 855423 workaround during reset. This erratum applies
231# only to revision <= r0p1 of the Cortex A73 cpu.
232ERRATA_A73_855423	?=0
233
234# Flag to apply erratum 764081 workaround during reset. This erratum applies
235# only to revision <= r0p0 of the Cortex A75 cpu.
236ERRATA_A75_764081	?=0
237
238# Flag to apply erratum 790748 workaround during reset. This erratum applies
239# only to revision <= r0p0 of the Cortex A75 cpu.
240ERRATA_A75_790748	?=0
241
242# Flag to apply erratum 1073348 workaround during reset. This erratum applies
243# only to revision <= r1p0 of the Cortex A76 cpu.
244ERRATA_A76_1073348	?=0
245
246# Flag to apply erratum 1130799 workaround during reset. This erratum applies
247# only to revision <= r2p0 of the Cortex A76 cpu.
248ERRATA_A76_1130799	?=0
249
250# Flag to apply erratum 1220197 workaround during reset. This erratum applies
251# only to revision <= r2p0 of the Cortex A76 cpu.
252ERRATA_A76_1220197	?=0
253
254# Flag to apply erratum 1257314 workaround during reset. This erratum applies
255# only to revision <= r3p0 of the Cortex A76 cpu.
256ERRATA_A76_1257314	?=0
257
258# Flag to apply erratum 1262606 workaround during reset. This erratum applies
259# only to revision <= r3p0 of the Cortex A76 cpu.
260ERRATA_A76_1262606	?=0
261
262# Flag to apply erratum 1262888 workaround during reset. This erratum applies
263# only to revision <= r3p0 of the Cortex A76 cpu.
264ERRATA_A76_1262888	?=0
265
266# Flag to apply erratum 1275112 workaround during reset. This erratum applies
267# only to revision <= r3p0 of the Cortex A76 cpu.
268ERRATA_A76_1275112	?=0
269
270# Flag to apply erratum 1286807 workaround during reset. This erratum applies
271# only to revision <= r3p0 of the Cortex A76 cpu.
272ERRATA_A76_1286807	?=0
273
274# Flag to apply erratum 1791580 workaround during reset. This erratum applies
275# only to revision <= r4p0 of the Cortex A76 cpu.
276ERRATA_A76_1791580	?=0
277
278# Flag to apply erratum 1165522 workaround during reset. This erratum applies
279# to all revisions of Cortex A76 cpu.
280ERRATA_A76_1165522	?=0
281
282# Flag to apply erratum 1868343 workaround during reset. This erratum applies
283# only to revision <= r4p0 of the Cortex A76 cpu.
284ERRATA_A76_1868343	?=0
285
286# Flag to apply erratum 1946160 workaround during reset. This erratum applies
287# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
288ERRATA_A76_1946160	?=0
289
290# Flag to apply erratum 1508412 workaround during reset. This erratum applies
291# only to revision <= r1p0 of the Cortex A77 cpu.
292ERRATA_A77_1508412	?=0
293
294# Flag to apply erratum 1925769 workaround during reset. This erratum applies
295# only to revision <= r1p1 of the Cortex A77 cpu.
296ERRATA_A77_1925769	?=0
297
298# Flag to apply erratum 1946167 workaround during reset. This erratum applies
299# only to revision <= r1p1 of the Cortex A77 cpu.
300ERRATA_A77_1946167	?=0
301
302# Flag to apply erratum 1791578 workaround during reset. This erratum applies
303# to revisions r0p0, r1p0, and r1p1, it is still open.
304ERRATA_A77_1791578	?=0
305
306# Flag to apply erratum 2356587 workaround during reset. This erratum applies
307# to revisions r0p0, r1p0, and r1p1, it is still open.
308ERRATA_A77_2356587	?=0
309
310# Flag to apply erratum 1688305 workaround during reset. This erratum applies
311# to revisions r0p0 - r1p0 of the A78 cpu.
312ERRATA_A78_1688305	?=0
313
314# Flag to apply erratum 1941498 workaround during reset. This erratum applies
315# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
316ERRATA_A78_1941498	?=0
317
318# Flag to apply erratum 1951500 workaround during reset. This erratum applies
319# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
320# well but there is no workaround for that revision.
321ERRATA_A78_1951500	?=0
322
323# Flag to apply erratum 1821534 workaround during reset. This erratum applies
324# to revisions r0p0 and r1p0 of the A78 cpu.
325ERRATA_A78_1821534	?=0
326
327# Flag to apply erratum 1952683 workaround during reset. This erratum applies
328# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
329ERRATA_A78_1952683	?=0
330
331# Flag to apply erratum 2132060 workaround during reset. This erratum applies
332# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
333ERRATA_A78_2132060	?=0
334
335# Flag to apply erratum 2242635 workaround during reset. This erratum applies
336# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
337# present in r0p0 as well but there is no workaround for that revision.
338ERRATA_A78_2242635	?=0
339
340# Flag to apply erratum 2376745 workaround during reset. This erratum applies
341# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
342ERRATA_A78_2376745	?=0
343
344# Flag to apply erratum 2395406 workaround during reset. This erratum applies
345# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
346ERRATA_A78_2395406	?=0
347
348# Flag to apply erratum 1941500 workaround during reset. This erratum applies
349# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
350ERRATA_A78_AE_1941500	?=0
351
352# Flag to apply erratum 1951502 workaround during reset. This erratum applies
353# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
354ERRATA_A78_AE_1951502	?=0
355
356# Flag to apply erratum 2376748 workaround during reset. This erratum applies
357# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
358ERRATA_A78_AE_2376748	?=0
359
360# Flag to apply erratum 2395408 workaround during reset. This erratum applies
361# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
362ERRATA_A78_AE_2395408	?=0
363
364# Flag to apply erratum 2132064 workaround during reset. This erratum applies
365# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
366ERRATA_A78C_2132064	?=0
367
368# Flag to apply erratum 2242638 workaround during reset. This erratum applies
369# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
370ERRATA_A78C_2242638	?=0
371
372# Flag to apply erratum 2395411 workaround during reset. This erratum applies
373# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
374ERRATA_A78C_2395411 	?=0
375
376# Flag to apply erratum 1821534 workaround during reset. This erratum applies
377# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
378ERRATA_X1_1821534	?=0
379
380# Flag to apply erratum 1688305 workaround during reset. This erratum applies
381# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
382ERRATA_X1_1688305	?=0
383
384# Flag to apply erratum 1827429 workaround during reset. This erratum applies
385# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
386ERRATA_X1_1827429	?=0
387
388# Flag to apply T32 CLREX workaround during reset. This erratum applies
389# only to r0p0 and r1p0 of the Neoverse N1 cpu.
390ERRATA_N1_1043202	?=0
391
392# Flag to apply erratum 1073348 workaround during reset. This erratum applies
393# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
394ERRATA_N1_1073348	?=0
395
396# Flag to apply erratum 1130799 workaround during reset. This erratum applies
397# only to revision <= r2p0 of the Neoverse N1 cpu.
398ERRATA_N1_1130799	?=0
399
400# Flag to apply erratum 1165347 workaround during reset. This erratum applies
401# only to revision <= r2p0 of the Neoverse N1 cpu.
402ERRATA_N1_1165347	?=0
403
404# Flag to apply erratum 1207823 workaround during reset. This erratum applies
405# only to revision <= r2p0 of the Neoverse N1 cpu.
406ERRATA_N1_1207823	?=0
407
408# Flag to apply erratum 1220197 workaround during reset. This erratum applies
409# only to revision <= r2p0 of the Neoverse N1 cpu.
410ERRATA_N1_1220197	?=0
411
412# Flag to apply erratum 1257314 workaround during reset. This erratum applies
413# only to revision <= r3p0 of the Neoverse N1 cpu.
414ERRATA_N1_1257314	?=0
415
416# Flag to apply erratum 1262606 workaround during reset. This erratum applies
417# only to revision <= r3p0 of the Neoverse N1 cpu.
418ERRATA_N1_1262606	?=0
419
420# Flag to apply erratum 1262888 workaround during reset. This erratum applies
421# only to revision <= r3p0 of the Neoverse N1 cpu.
422ERRATA_N1_1262888	?=0
423
424# Flag to apply erratum 1275112 workaround during reset. This erratum applies
425# only to revision <= r3p0 of the Neoverse N1 cpu.
426ERRATA_N1_1275112	?=0
427
428# Flag to apply erratum 1315703 workaround during reset. This erratum applies
429# to revisions before r3p1 of the Neoverse N1 cpu.
430ERRATA_N1_1315703	?=0
431
432# Flag to apply erratum 1542419 workaround during reset. This erratum applies
433# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
434ERRATA_N1_1542419	?=0
435
436# Flag to apply erratum 1868343 workaround during reset. This erratum applies
437# to revision <= r4p0 of the Neoverse N1 cpu.
438ERRATA_N1_1868343	?=0
439
440# Flag to apply erratum 1946160 workaround during reset. This erratum applies
441# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
442# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
443ERRATA_N1_1946160	?=0
444
445# Flag to apply erratum 2002655 workaround during reset. This erratum applies
446# to revisions r0p0 of the Neoverse-N2 cpu, it is still open.
447ERRATA_N2_2002655	?=0
448
449# Flag to apply erratum 1618635 workaround during reset. This erratum applies
450# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
451ERRATA_V1_1618635	?=0
452
453# Flag to apply erratum 1774420 workaround during reset. This erratum applies
454# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
455ERRATA_V1_1774420	?=0
456
457# Flag to apply erratum 1791573 workaround during reset. This erratum applies
458# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
459ERRATA_V1_1791573	?=0
460
461# Flag to apply erratum 1852267 workaround during reset. This erratum applies
462# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
463ERRATA_V1_1852267	?=0
464
465# Flag to apply erratum 1925756 workaround during reset. This needs to be
466# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
467ERRATA_V1_1925756	?=0
468
469# Flag to apply erratum 1940577 workaround during reset. This erratum applies
470# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
471ERRATA_V1_1940577	?=0
472
473# Flag to apply erratum 1966096 workaround during reset. This erratum applies
474# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
475# exists in r0p0 as well but there is no workaround for that revision.
476ERRATA_V1_1966096	?=0
477
478# Flag to apply erratum 2139242 workaround during reset. This erratum applies
479# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
480ERRATA_V1_2139242	?=0
481
482# Flag to apply erratum 2108267 workaround during reset. This erratum applies
483# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
484ERRATA_V1_2108267	?=0
485
486# Flag to apply erratum 2216392 workaround during reset. This erratum applies
487# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
488# issue exists in r0p0 as well but there is no workaround for that revision.
489ERRATA_V1_2216392	?=0
490
491# Flag to apply erratum 2294912 workaround during reset. This erratum applies
492# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
493ERRATA_V1_2294912	?=0
494
495# Flag to apply erratum 2372203 workaround during reset. This erratum applies
496# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
497ERRATA_V1_2372203	?=0
498
499# Flag to apply erratum 1987031 workaround during reset. This erratum applies
500# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
501ERRATA_A710_1987031	?=0
502
503# Flag to apply erratum 2081180 workaround during reset. This erratum applies
504# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
505ERRATA_A710_2081180	?=0
506
507# Flag to apply erratum 2083908 workaround during reset. This erratum applies
508# to revision r2p0 of the Cortex-A710 cpu and is still open.
509ERRATA_A710_2083908	?=0
510
511# Flag to apply erratum 2058056 workaround during reset. This erratum applies
512# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
513ERRATA_A710_2058056	?=0
514
515# Flag to apply erratum 2055002 workaround during reset. This erratum applies
516# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
517ERRATA_A710_2055002	?=0
518
519# Flag to apply erratum 2017096 workaround during reset. This erratum applies
520# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
521ERRATA_A710_2017096	?=0
522
523# Flag to apply erratum 2267065 workaround during reset. This erratum applies
524# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
525ERRATA_A710_2267065	?=0
526
527# Flag to apply erratum 2136059 workaround during reset. This erratum applies
528# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
529ERRATA_A710_2136059	?=0
530
531# Flag to apply erratum 2147715 workaround during reset. This erratum applies
532# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
533ERRATA_A710_2147715	?=0
534
535# Flag to apply erratum 2216384 workaround during reset. This erratum applies
536# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
537ERRATA_A710_2216384	?=0
538
539# Flag to apply erratum 2282622 workaround during reset. This erratum applies
540# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
541ERRATA_A710_2282622	?=0
542
543# Flag to apply erratum 2008768 workaround during reset. This erratum applies
544# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
545ERRATA_A710_2008768	?=0
546
547# Flag to apply erratum 2371105 workaround during reset. This erratum applies
548# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
549ERRATA_A710_2371105	?=0
550
551# Flag to apply erratum 2067956 workaround during reset. This erratum applies
552# to revision r0p0 of the Neoverse N2 cpu and is still open.
553ERRATA_N2_2067956	?=0
554
555# Flag to apply erratum 2025414 workaround during reset. This erratum applies
556# to revision r0p0 of the Neoverse N2 cpu and is still open.
557ERRATA_N2_2025414	?=0
558
559# Flag to apply erratum 2189731 workaround during reset. This erratum applies
560# to revision r0p0 of the Neoverse N2 cpu and is still open.
561ERRATA_N2_2189731	?=0
562
563# Flag to apply erratum 2138956 workaround during reset. This erratum applies
564# to revision r0p0 of the Neoverse N2 cpu and is still open.
565ERRATA_N2_2138956	?=0
566
567# Flag to apply erratum 2138953 workaround during reset. This erratum applies
568# to revision r0p0 of the Neoverse N2 cpu and is still open.
569ERRATA_N2_2138953	?=0
570
571# Flag to apply erratum 2242415 workaround during reset. This erratum applies
572# to revision r0p0 of the Neoverse N2 cpu and is still open.
573ERRATA_N2_2242415	?=0
574
575# Flag to apply erratum 2138958 workaround during reset. This erratum applies
576# to revision r0p0 of the Neoverse N2 cpu and is still open.
577ERRATA_N2_2138958	?=0
578
579# Flag to apply erratum 2242400 workaround during reset. This erratum applies
580# to revision r0p0 of the Neoverse N2 cpu and is still open.
581ERRATA_N2_2242400	?=0
582
583# Flag to apply erratum 2280757 workaround during reset. This erratum applies
584# to revision r0p0 of the Neoverse N2 cpu and is still open.
585ERRATA_N2_2280757	?=0
586
587# Flag to apply erratum 2376738 workaround during reset. This erratum applies
588# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
589ERRATA_N2_2376738	?=0
590
591# Flag to apply erratum 2388450 workaround during reset. This erratum applies
592# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
593ERRATA_N2_2388450	?=0
594
595# Flag to apply erratum 2002765 workaround during reset. This erratum applies
596# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
597ERRATA_X2_2002765	?=0
598
599# Flag to apply erratum 2058056 workaround during reset. This erratum applies
600# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
601ERRATA_X2_2058056	?=0
602
603# Flag to apply erratum 2083908 workaround during reset. This erratum applies
604# to revision r2p0 of the Cortex-X2 cpu and is still open.
605ERRATA_X2_2083908	?=0
606
607# Flag to apply erratum 2017096 workaround during reset. This erratum applies
608# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
609# r2p1.
610ERRATA_X2_2017096	?=0
611
612# Flag to apply erratum 2081180 workaround during reset. This erratum applies
613# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
614# r2p1.
615ERRATA_X2_2081180	?=0
616
617# Flag to apply erratum 2216384 workaround during reset. This erratum applies
618# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
619# r2p1.
620ERRATA_X2_2216384	?=0
621
622# Flag to apply erratum 2147715 workaround during reset. This erratum applies
623# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
624ERRATA_X2_2147715	?=0
625
626# Flag to apply erratum 2371105 workaround during reset. This erratum applies
627# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
628ERRATA_X2_2371105	?=0
629
630# Flag to apply erratum 1922240 workaround during reset. This erratum applies
631# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
632ERRATA_A510_1922240	?=0
633
634# Flag to apply erratum 2288014 workaround during reset. This erratum applies
635# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
636# fixed in r1p1.
637ERRATA_A510_2288014	?=0
638
639# Flag to apply erratum 2042739 workaround during reset. This erratum applies
640# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
641ERRATA_A510_2042739	?=0
642
643# Flag to apply erratum 2041909 workaround during reset. This erratum applies
644# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
645# present in r0p0 and r0p1 but there is no workaround for those revisions.
646ERRATA_A510_2041909	?=0
647
648# Flag to apply erratum 2250311 workaround during reset. This erratum applies
649# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
650ERRATA_A510_2250311	?=0
651
652# Flag to apply erratum 2218950 workaround during reset. This erratum applies
653# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
654ERRATA_A510_2218950	?=0
655
656# Flag to apply erratum 2172148 workaround during reset. This erratum applies
657# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
658ERRATA_A510_2172148	?=0
659
660# Flag to apply erratum 2371937 workaround during reset. This erratum applies
661# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
662ERRATA_A510_2371937	?=0
663
664# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
665# Applying the workaround results in higher DSU power consumption on idle.
666ERRATA_DSU_798953	?=0
667
668# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
669# the ACP interface and revision < r2p0. Applying the workaround results in
670# higher DSU power consumption on idle.
671ERRATA_DSU_936184	?=0
672
673# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
674# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
675# results in higher DSU power consumption on idle.
676ERRATA_DSU_2313941	?=0
677
678# Process ERRATA_A9_794073 flag
679$(eval $(call assert_boolean,ERRATA_A9_794073))
680$(eval $(call add_define,ERRATA_A9_794073))
681
682# Process ERRATA_A15_816470 flag
683$(eval $(call assert_boolean,ERRATA_A15_816470))
684$(eval $(call add_define,ERRATA_A15_816470))
685
686# Process ERRATA_A15_827671 flag
687$(eval $(call assert_boolean,ERRATA_A15_827671))
688$(eval $(call add_define,ERRATA_A15_827671))
689
690# Process ERRATA_A17_852421 flag
691$(eval $(call assert_boolean,ERRATA_A17_852421))
692$(eval $(call add_define,ERRATA_A17_852421))
693
694# Process ERRATA_A17_852423 flag
695$(eval $(call assert_boolean,ERRATA_A17_852423))
696$(eval $(call add_define,ERRATA_A17_852423))
697
698# Process ERRATA_A35_855472 flag
699$(eval $(call assert_boolean,ERRATA_A35_855472))
700$(eval $(call add_define,ERRATA_A35_855472))
701
702# Process ERRATA_A53_819472 flag
703$(eval $(call assert_boolean,ERRATA_A53_819472))
704$(eval $(call add_define,ERRATA_A53_819472))
705
706# Process ERRATA_A53_824069 flag
707$(eval $(call assert_boolean,ERRATA_A53_824069))
708$(eval $(call add_define,ERRATA_A53_824069))
709
710# Process ERRATA_A53_826319 flag
711$(eval $(call assert_boolean,ERRATA_A53_826319))
712$(eval $(call add_define,ERRATA_A53_826319))
713
714# Process ERRATA_A53_827319 flag
715$(eval $(call assert_boolean,ERRATA_A53_827319))
716$(eval $(call add_define,ERRATA_A53_827319))
717
718# Process ERRATA_A53_835769 flag
719$(eval $(call assert_boolean,ERRATA_A53_835769))
720$(eval $(call add_define,ERRATA_A53_835769))
721
722# Process ERRATA_A53_836870 flag
723$(eval $(call assert_boolean,ERRATA_A53_836870))
724$(eval $(call add_define,ERRATA_A53_836870))
725
726# Process ERRATA_A53_843419 flag
727$(eval $(call assert_boolean,ERRATA_A53_843419))
728$(eval $(call add_define,ERRATA_A53_843419))
729
730# Process ERRATA_A53_855873 flag
731$(eval $(call assert_boolean,ERRATA_A53_855873))
732$(eval $(call add_define,ERRATA_A53_855873))
733
734# Process ERRATA_A53_1530924 flag
735$(eval $(call assert_boolean,ERRATA_A53_1530924))
736$(eval $(call add_define,ERRATA_A53_1530924))
737
738# Process ERRATA_A55_768277 flag
739$(eval $(call assert_boolean,ERRATA_A55_768277))
740$(eval $(call add_define,ERRATA_A55_768277))
741
742# Process ERRATA_A55_778703 flag
743$(eval $(call assert_boolean,ERRATA_A55_778703))
744$(eval $(call add_define,ERRATA_A55_778703))
745
746# Process ERRATA_A55_798797 flag
747$(eval $(call assert_boolean,ERRATA_A55_798797))
748$(eval $(call add_define,ERRATA_A55_798797))
749
750# Process ERRATA_A55_846532 flag
751$(eval $(call assert_boolean,ERRATA_A55_846532))
752$(eval $(call add_define,ERRATA_A55_846532))
753
754# Process ERRATA_A55_903758 flag
755$(eval $(call assert_boolean,ERRATA_A55_903758))
756$(eval $(call add_define,ERRATA_A55_903758))
757
758# Process ERRATA_A55_1221012 flag
759$(eval $(call assert_boolean,ERRATA_A55_1221012))
760$(eval $(call add_define,ERRATA_A55_1221012))
761
762# Process ERRATA_A55_1530923 flag
763$(eval $(call assert_boolean,ERRATA_A55_1530923))
764$(eval $(call add_define,ERRATA_A55_1530923))
765
766# Process ERRATA_A57_806969 flag
767$(eval $(call assert_boolean,ERRATA_A57_806969))
768$(eval $(call add_define,ERRATA_A57_806969))
769
770# Process ERRATA_A57_813419 flag
771$(eval $(call assert_boolean,ERRATA_A57_813419))
772$(eval $(call add_define,ERRATA_A57_813419))
773
774# Process ERRATA_A57_813420 flag
775$(eval $(call assert_boolean,ERRATA_A57_813420))
776$(eval $(call add_define,ERRATA_A57_813420))
777
778# Process ERRATA_A57_814670 flag
779$(eval $(call assert_boolean,ERRATA_A57_814670))
780$(eval $(call add_define,ERRATA_A57_814670))
781
782# Process ERRATA_A57_817169 flag
783$(eval $(call assert_boolean,ERRATA_A57_817169))
784$(eval $(call add_define,ERRATA_A57_817169))
785
786# Process ERRATA_A57_826974 flag
787$(eval $(call assert_boolean,ERRATA_A57_826974))
788$(eval $(call add_define,ERRATA_A57_826974))
789
790# Process ERRATA_A57_826977 flag
791$(eval $(call assert_boolean,ERRATA_A57_826977))
792$(eval $(call add_define,ERRATA_A57_826977))
793
794# Process ERRATA_A57_828024 flag
795$(eval $(call assert_boolean,ERRATA_A57_828024))
796$(eval $(call add_define,ERRATA_A57_828024))
797
798# Process ERRATA_A57_829520 flag
799$(eval $(call assert_boolean,ERRATA_A57_829520))
800$(eval $(call add_define,ERRATA_A57_829520))
801
802# Process ERRATA_A57_833471 flag
803$(eval $(call assert_boolean,ERRATA_A57_833471))
804$(eval $(call add_define,ERRATA_A57_833471))
805
806# Process ERRATA_A57_859972 flag
807$(eval $(call assert_boolean,ERRATA_A57_859972))
808$(eval $(call add_define,ERRATA_A57_859972))
809
810# Process ERRATA_A57_1319537 flag
811$(eval $(call assert_boolean,ERRATA_A57_1319537))
812$(eval $(call add_define,ERRATA_A57_1319537))
813
814# Process ERRATA_A72_859971 flag
815$(eval $(call assert_boolean,ERRATA_A72_859971))
816$(eval $(call add_define,ERRATA_A72_859971))
817
818# Process ERRATA_A72_1319367 flag
819$(eval $(call assert_boolean,ERRATA_A72_1319367))
820$(eval $(call add_define,ERRATA_A72_1319367))
821
822# Process ERRATA_A73_852427 flag
823$(eval $(call assert_boolean,ERRATA_A73_852427))
824$(eval $(call add_define,ERRATA_A73_852427))
825
826# Process ERRATA_A73_855423 flag
827$(eval $(call assert_boolean,ERRATA_A73_855423))
828$(eval $(call add_define,ERRATA_A73_855423))
829
830# Process ERRATA_A75_764081 flag
831$(eval $(call assert_boolean,ERRATA_A75_764081))
832$(eval $(call add_define,ERRATA_A75_764081))
833
834# Process ERRATA_A75_790748 flag
835$(eval $(call assert_boolean,ERRATA_A75_790748))
836$(eval $(call add_define,ERRATA_A75_790748))
837
838# Process ERRATA_A76_1073348 flag
839$(eval $(call assert_boolean,ERRATA_A76_1073348))
840$(eval $(call add_define,ERRATA_A76_1073348))
841
842# Process ERRATA_A76_1130799 flag
843$(eval $(call assert_boolean,ERRATA_A76_1130799))
844$(eval $(call add_define,ERRATA_A76_1130799))
845
846# Process ERRATA_A76_1220197 flag
847$(eval $(call assert_boolean,ERRATA_A76_1220197))
848$(eval $(call add_define,ERRATA_A76_1220197))
849
850# Process ERRATA_A76_1257314 flag
851$(eval $(call assert_boolean,ERRATA_A76_1257314))
852$(eval $(call add_define,ERRATA_A76_1257314))
853
854# Process ERRATA_A76_1262606 flag
855$(eval $(call assert_boolean,ERRATA_A76_1262606))
856$(eval $(call add_define,ERRATA_A76_1262606))
857
858# Process ERRATA_A76_1262888 flag
859$(eval $(call assert_boolean,ERRATA_A76_1262888))
860$(eval $(call add_define,ERRATA_A76_1262888))
861
862# Process ERRATA_A76_1275112 flag
863$(eval $(call assert_boolean,ERRATA_A76_1275112))
864$(eval $(call add_define,ERRATA_A76_1275112))
865
866# Process ERRATA_A76_1286807 flag
867$(eval $(call assert_boolean,ERRATA_A76_1286807))
868$(eval $(call add_define,ERRATA_A76_1286807))
869
870# Process ERRATA_A76_1791580 flag
871$(eval $(call assert_boolean,ERRATA_A76_1791580))
872$(eval $(call add_define,ERRATA_A76_1791580))
873
874# Process ERRATA_A76_1165522 flag
875$(eval $(call assert_boolean,ERRATA_A76_1165522))
876$(eval $(call add_define,ERRATA_A76_1165522))
877
878# Process ERRATA_A76_1868343 flag
879$(eval $(call assert_boolean,ERRATA_A76_1868343))
880$(eval $(call add_define,ERRATA_A76_1868343))
881
882# Process ERRATA_A76_1946160 flag
883$(eval $(call assert_boolean,ERRATA_A76_1946160))
884$(eval $(call add_define,ERRATA_A76_1946160))
885
886# Process ERRATA_A77_1508412 flag
887$(eval $(call assert_boolean,ERRATA_A77_1508412))
888$(eval $(call add_define,ERRATA_A77_1508412))
889
890# Process ERRATA_A77_1925769 flag
891$(eval $(call assert_boolean,ERRATA_A77_1925769))
892$(eval $(call add_define,ERRATA_A77_1925769))
893
894# Process ERRATA_A77_1946167 flag
895$(eval $(call assert_boolean,ERRATA_A77_1946167))
896$(eval $(call add_define,ERRATA_A77_1946167))
897
898# Process ERRATA_A77_1791578 flag
899$(eval $(call assert_boolean,ERRATA_A77_1791578))
900$(eval $(call add_define,ERRATA_A77_1791578))
901
902# Process ERRATA_A77_2356587 flag
903$(eval $(call assert_boolean,ERRATA_A77_2356587))
904$(eval $(call add_define,ERRATA_A77_2356587))
905
906# Process ERRATA_A78_1688305 flag
907$(eval $(call assert_boolean,ERRATA_A78_1688305))
908$(eval $(call add_define,ERRATA_A78_1688305))
909
910# Process ERRATA_A78_1941498 flag
911$(eval $(call assert_boolean,ERRATA_A78_1941498))
912$(eval $(call add_define,ERRATA_A78_1941498))
913
914# Process ERRATA_A78_1951500 flag
915$(eval $(call assert_boolean,ERRATA_A78_1951500))
916$(eval $(call add_define,ERRATA_A78_1951500))
917
918# Process ERRATA_A78_1821534 flag
919$(eval $(call assert_boolean,ERRATA_A78_1821534))
920$(eval $(call add_define,ERRATA_A78_1821534))
921
922# Process ERRATA_A78_1952683 flag
923$(eval $(call assert_boolean,ERRATA_A78_1952683))
924$(eval $(call add_define,ERRATA_A78_1952683))
925
926# Process ERRATA_A78_2132060 flag
927$(eval $(call assert_boolean,ERRATA_A78_2132060))
928$(eval $(call add_define,ERRATA_A78_2132060))
929
930# Process ERRATA_A78_2242635 flag
931$(eval $(call assert_boolean,ERRATA_A78_2242635))
932$(eval $(call add_define,ERRATA_A78_2242635))
933
934# Process ERRATA_A78_2376745 flag
935$(eval $(call assert_boolean,ERRATA_A78_2376745))
936$(eval $(call add_define,ERRATA_A78_2376745))
937
938# Process ERRATA_A78_2395406 flag
939$(eval $(call assert_boolean,ERRATA_A78_2395406))
940$(eval $(call add_define,ERRATA_A78_2395406))
941
942# Process ERRATA_A78_AE_1941500 flag
943$(eval $(call assert_boolean,ERRATA_A78_AE_1941500))
944$(eval $(call add_define,ERRATA_A78_AE_1941500))
945
946# Process ERRATA_A78_AE_1951502 flag
947$(eval $(call assert_boolean,ERRATA_A78_AE_1951502))
948$(eval $(call add_define,ERRATA_A78_AE_1951502))
949
950# Process ERRATA_A78_AE_2376748 flag
951$(eval $(call assert_boolean,ERRATA_A78_AE_2376748))
952$(eval $(call add_define,ERRATA_A78_AE_2376748))
953
954# Process ERRATA_A78_AE_2395408 flag
955$(eval $(call assert_boolean,ERRATA_A78_AE_2395408))
956$(eval $(call add_define,ERRATA_A78_AE_2395408))
957
958# Process ERRATA_A78C_2132064 flag
959$(eval $(call assert_boolean,ERRATA_A78C_2132064))
960$(eval $(call add_define,ERRATA_A78C_2132064))
961
962# Process ERRATA_A78C_2242638 flag
963$(eval $(call assert_boolean,ERRATA_A78C_2242638))
964$(eval $(call add_define,ERRATA_A78C_2242638))
965
966# Process ERRATA_A78C_2395411 flag
967$(eval $(call assert_boolean,ERRATA_A78C_2395411))
968$(eval $(call add_define,ERRATA_A78C_2395411))
969
970# Process ERRATA_X1_1821534 flag
971$(eval $(call assert_boolean,ERRATA_X1_1821534))
972$(eval $(call add_define,ERRATA_X1_1821534))
973
974# Process ERRATA_X1_1688305 flag
975$(eval $(call assert_boolean,ERRATA_X1_1688305))
976$(eval $(call add_define,ERRATA_X1_1688305))
977
978# Process ERRATA_X1_1827429 flag
979$(eval $(call assert_boolean,ERRATA_X1_1827429))
980$(eval $(call add_define,ERRATA_X1_1827429))
981
982# Process ERRATA_N1_1043202 flag
983$(eval $(call assert_boolean,ERRATA_N1_1043202))
984$(eval $(call add_define,ERRATA_N1_1043202))
985
986# Process ERRATA_N1_1073348 flag
987$(eval $(call assert_boolean,ERRATA_N1_1073348))
988$(eval $(call add_define,ERRATA_N1_1073348))
989
990# Process ERRATA_N1_1130799 flag
991$(eval $(call assert_boolean,ERRATA_N1_1130799))
992$(eval $(call add_define,ERRATA_N1_1130799))
993
994# Process ERRATA_N1_1165347 flag
995$(eval $(call assert_boolean,ERRATA_N1_1165347))
996$(eval $(call add_define,ERRATA_N1_1165347))
997
998# Process ERRATA_N1_1207823 flag
999$(eval $(call assert_boolean,ERRATA_N1_1207823))
1000$(eval $(call add_define,ERRATA_N1_1207823))
1001
1002# Process ERRATA_N1_1220197 flag
1003$(eval $(call assert_boolean,ERRATA_N1_1220197))
1004$(eval $(call add_define,ERRATA_N1_1220197))
1005
1006# Process ERRATA_N1_1257314 flag
1007$(eval $(call assert_boolean,ERRATA_N1_1257314))
1008$(eval $(call add_define,ERRATA_N1_1257314))
1009
1010# Process ERRATA_N1_1262606 flag
1011$(eval $(call assert_boolean,ERRATA_N1_1262606))
1012$(eval $(call add_define,ERRATA_N1_1262606))
1013
1014# Process ERRATA_N1_1262888 flag
1015$(eval $(call assert_boolean,ERRATA_N1_1262888))
1016$(eval $(call add_define,ERRATA_N1_1262888))
1017
1018# Process ERRATA_N1_1275112 flag
1019$(eval $(call assert_boolean,ERRATA_N1_1275112))
1020$(eval $(call add_define,ERRATA_N1_1275112))
1021
1022# Process ERRATA_N1_1315703 flag
1023$(eval $(call assert_boolean,ERRATA_N1_1315703))
1024$(eval $(call add_define,ERRATA_N1_1315703))
1025
1026# Process ERRATA_N1_1542419 flag
1027$(eval $(call assert_boolean,ERRATA_N1_1542419))
1028$(eval $(call add_define,ERRATA_N1_1542419))
1029
1030# Process ERRATA_N1_1868343 flag
1031$(eval $(call assert_boolean,ERRATA_N1_1868343))
1032$(eval $(call add_define,ERRATA_N1_1868343))
1033
1034# Process ERRATA_N1_1946160 flag
1035$(eval $(call assert_boolean,ERRATA_N1_1946160))
1036$(eval $(call add_define,ERRATA_N1_1946160))
1037
1038# Process ERRATA_N2_2002655 flag
1039$(eval $(call assert_boolean,ERRATA_N2_2002655))
1040$(eval $(call add_define,ERRATA_N2_2002655))
1041
1042# Process ERRATA_V1_1618635 flag
1043$(eval $(call assert_boolean,ERRATA_V1_1618635))
1044$(eval $(call add_define,ERRATA_V1_1618635))
1045
1046# Process ERRATA_V1_1774420 flag
1047$(eval $(call assert_boolean,ERRATA_V1_1774420))
1048$(eval $(call add_define,ERRATA_V1_1774420))
1049
1050# Process ERRATA_V1_1791573 flag
1051$(eval $(call assert_boolean,ERRATA_V1_1791573))
1052$(eval $(call add_define,ERRATA_V1_1791573))
1053
1054# Process ERRATA_V1_1852267 flag
1055$(eval $(call assert_boolean,ERRATA_V1_1852267))
1056$(eval $(call add_define,ERRATA_V1_1852267))
1057
1058# Process ERRATA_V1_1925756 flag
1059$(eval $(call assert_boolean,ERRATA_V1_1925756))
1060$(eval $(call add_define,ERRATA_V1_1925756))
1061
1062# Process ERRATA_V1_1940577 flag
1063$(eval $(call assert_boolean,ERRATA_V1_1940577))
1064$(eval $(call add_define,ERRATA_V1_1940577))
1065
1066# Process ERRATA_V1_1966096 flag
1067$(eval $(call assert_boolean,ERRATA_V1_1966096))
1068$(eval $(call add_define,ERRATA_V1_1966096))
1069
1070# Process ERRATA_V1_2139242 flag
1071$(eval $(call assert_boolean,ERRATA_V1_2139242))
1072$(eval $(call add_define,ERRATA_V1_2139242))
1073
1074# Process ERRATA_V1_2108267 flag
1075$(eval $(call assert_boolean,ERRATA_V1_2108267))
1076$(eval $(call add_define,ERRATA_V1_2108267))
1077
1078# Process ERRATA_V1_2216392 flag
1079$(eval $(call assert_boolean,ERRATA_V1_2216392))
1080$(eval $(call add_define,ERRATA_V1_2216392))
1081
1082# Process ERRATA_V1_2294912 flag
1083$(eval $(call assert_boolean,ERRATA_V1_2294912))
1084$(eval $(call add_define,ERRATA_V1_2294912))
1085
1086# Process ERRATA_V1_2372203 flag
1087$(eval $(call assert_boolean,ERRATA_V1_2372203))
1088$(eval $(call add_define,ERRATA_V1_2372203))
1089
1090# Process ERRATA_A710_1987031 flag
1091$(eval $(call assert_boolean,ERRATA_A710_1987031))
1092$(eval $(call add_define,ERRATA_A710_1987031))
1093
1094# Process ERRATA_A710_2081180 flag
1095$(eval $(call assert_boolean,ERRATA_A710_2081180))
1096$(eval $(call add_define,ERRATA_A710_2081180))
1097
1098# Process ERRATA_A710_2083908 flag
1099$(eval $(call assert_boolean,ERRATA_A710_2083908))
1100$(eval $(call add_define,ERRATA_A710_2083908))
1101
1102# Process ERRATA_A710_2058056 flag
1103$(eval $(call assert_boolean,ERRATA_A710_2058056))
1104$(eval $(call add_define,ERRATA_A710_2058056))
1105
1106# Process ERRATA_A710_2055002 flag
1107$(eval $(call assert_boolean,ERRATA_A710_2055002))
1108$(eval $(call add_define,ERRATA_A710_2055002))
1109
1110# Process ERRATA_A710_2017096 flag
1111$(eval $(call assert_boolean,ERRATA_A710_2017096))
1112$(eval $(call add_define,ERRATA_A710_2017096))
1113
1114# Process ERRATA_A710_2267065 flag
1115$(eval $(call assert_boolean,ERRATA_A710_2267065))
1116$(eval $(call add_define,ERRATA_A710_2267065))
1117
1118# Process ERRATA_A710_2136059 flag
1119$(eval $(call assert_boolean,ERRATA_A710_2136059))
1120$(eval $(call add_define,ERRATA_A710_2136059))
1121
1122# Process ERRATA_A710_2147715 flag
1123$(eval $(call assert_boolean,ERRATA_A710_2147715))
1124$(eval $(call add_define,ERRATA_A710_2147715))
1125
1126# Process ERRATA_A710_2216384 flag
1127$(eval $(call assert_boolean,ERRATA_A710_2216384))
1128$(eval $(call add_define,ERRATA_A710_2216384))
1129
1130# Process ERRATA_A710_2282622 flag
1131$(eval $(call assert_boolean,ERRATA_A710_2282622))
1132$(eval $(call add_define,ERRATA_A710_2282622))
1133
1134# Process ERRATA_A710_2008768 flag
1135$(eval $(call assert_boolean,ERRATA_A710_2008768))
1136$(eval $(call add_define,ERRATA_A710_2008768))
1137
1138# Process ERRATA_A710_2371105 flag
1139$(eval $(call assert_boolean,ERRATA_A710_2371105))
1140$(eval $(call add_define,ERRATA_A710_2371105))
1141
1142# Process ERRATA_N2_2067956 flag
1143$(eval $(call assert_boolean,ERRATA_N2_2067956))
1144$(eval $(call add_define,ERRATA_N2_2067956))
1145
1146# Process ERRATA_N2_2025414 flag
1147$(eval $(call assert_boolean,ERRATA_N2_2025414))
1148$(eval $(call add_define,ERRATA_N2_2025414))
1149
1150# Process ERRATA_N2_2189731 flag
1151$(eval $(call assert_boolean,ERRATA_N2_2189731))
1152$(eval $(call add_define,ERRATA_N2_2189731))
1153
1154# Process ERRATA_N2_2138956 flag
1155$(eval $(call assert_boolean,ERRATA_N2_2138956))
1156$(eval $(call add_define,ERRATA_N2_2138956))
1157
1158# Process ERRATA_N2_2138953 flag
1159$(eval $(call assert_boolean,ERRATA_N2_2138953))
1160$(eval $(call add_define,ERRATA_N2_2138953))
1161
1162# Process ERRATA_N2_2242415 flag
1163$(eval $(call assert_boolean,ERRATA_N2_2242415))
1164$(eval $(call add_define,ERRATA_N2_2242415))
1165
1166# Process ERRATA_N2_2138958 flag
1167$(eval $(call assert_boolean,ERRATA_N2_2138958))
1168$(eval $(call add_define,ERRATA_N2_2138958))
1169
1170# Process ERRATA_N2_2242400 flag
1171$(eval $(call assert_boolean,ERRATA_N2_2242400))
1172$(eval $(call add_define,ERRATA_N2_2242400))
1173
1174# Process ERRATA_N2_2280757 flag
1175$(eval $(call assert_boolean,ERRATA_N2_2280757))
1176$(eval $(call add_define,ERRATA_N2_2280757))
1177
1178# Process ERRATA_N2_2376738 flag
1179$(eval $(call assert_boolean,ERRATA_N2_2376738))
1180$(eval $(call add_define,ERRATA_N2_2376738))
1181
1182# Process ERRATA_N2_2388450 flag
1183$(eval $(call assert_boolean,ERRATA_N2_2388450))
1184$(eval $(call add_define,ERRATA_N2_2388450))
1185
1186# Process ERRATA_X2_2002765 flag
1187$(eval $(call assert_boolean,ERRATA_X2_2002765))
1188$(eval $(call add_define,ERRATA_X2_2002765))
1189
1190# Process ERRATA_X2_2058056 flag
1191$(eval $(call assert_boolean,ERRATA_X2_2058056))
1192$(eval $(call add_define,ERRATA_X2_2058056))
1193
1194# Process ERRATA_X2_2083908 flag
1195$(eval $(call assert_boolean,ERRATA_X2_2083908))
1196$(eval $(call add_define,ERRATA_X2_2083908))
1197
1198# Process ERRATA_X2_2017096 flag
1199$(eval $(call assert_boolean,ERRATA_X2_2017096))
1200$(eval $(call add_define,ERRATA_X2_2017096))
1201
1202# Process ERRATA_X2_2081180 flag
1203$(eval $(call assert_boolean,ERRATA_X2_2081180))
1204$(eval $(call add_define,ERRATA_X2_2081180))
1205
1206# Process ERRATA_X2_2216384 flag
1207$(eval $(call assert_boolean,ERRATA_X2_2216384))
1208$(eval $(call add_define,ERRATA_X2_2216384))
1209
1210# Process ERRATA_X2_2147715 flag
1211$(eval $(call assert_boolean,ERRATA_X2_2147715))
1212$(eval $(call add_define,ERRATA_X2_2147715))
1213
1214# Process ERRATA_X2_2371105 flag
1215$(eval $(call assert_boolean,ERRATA_X2_2371105))
1216$(eval $(call add_define,ERRATA_X2_2371105))
1217
1218# Process ERRATA_A510_1922240 flag
1219$(eval $(call assert_boolean,ERRATA_A510_1922240))
1220$(eval $(call add_define,ERRATA_A510_1922240))
1221
1222# Process ERRATA_A510_2288014 flag
1223$(eval $(call assert_boolean,ERRATA_A510_2288014))
1224$(eval $(call add_define,ERRATA_A510_2288014))
1225
1226# Process ERRATA_A510_2042739 flag
1227$(eval $(call assert_boolean,ERRATA_A510_2042739))
1228$(eval $(call add_define,ERRATA_A510_2042739))
1229
1230# Process ERRATA_A510_2041909 flag
1231$(eval $(call assert_boolean,ERRATA_A510_2041909))
1232$(eval $(call add_define,ERRATA_A510_2041909))
1233
1234# Process ERRATA_A510_2250311 flag
1235$(eval $(call assert_boolean,ERRATA_A510_2250311))
1236$(eval $(call add_define,ERRATA_A510_2250311))
1237
1238# Process ERRATA_A510_2218950 flag
1239$(eval $(call assert_boolean,ERRATA_A510_2218950))
1240$(eval $(call add_define,ERRATA_A510_2218950))
1241
1242# Process ERRATA_A510_2172148 flag
1243$(eval $(call assert_boolean,ERRATA_A510_2172148))
1244$(eval $(call add_define,ERRATA_A510_2172148))
1245
1246# Process ERRATA_A510_2371937 flag
1247$(eval $(call assert_boolean,ERRATA_A510_2371937))
1248$(eval $(call add_define,ERRATA_A510_2371937))
1249
1250# Process ERRATA_DSU_798953 flag
1251$(eval $(call assert_boolean,ERRATA_DSU_798953))
1252$(eval $(call add_define,ERRATA_DSU_798953))
1253
1254# Process ERRATA_DSU_936184 flag
1255$(eval $(call assert_boolean,ERRATA_DSU_936184))
1256$(eval $(call add_define,ERRATA_DSU_936184))
1257
1258# Process ERRATA_DSU_2313941 flag
1259$(eval $(call assert_boolean,ERRATA_DSU_2313941))
1260$(eval $(call add_define,ERRATA_DSU_2313941))
1261
1262# Errata build flags
1263ifneq (${ERRATA_A53_843419},0)
1264TF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
1265endif
1266
1267ifneq (${ERRATA_A53_835769},0)
1268TF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
1269TF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
1270endif
1271
1272ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923}	\
1273	${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1274ERRATA_SPECULATIVE_AT	:= 1
1275else
1276ERRATA_SPECULATIVE_AT	:= 0
1277endif
1278