xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision 6bb49c876c7593ed5f61c20ef3d989dcff8e8d8c)
1#
2# Copyright (c) 2014-2023, 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 2743102 workaround during powerdown. This erratum
291# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
292ERRATA_A76_2743102	?=0
293
294# Flag to apply erratum 1508412 workaround during reset. This erratum applies
295# only to revision <= r1p0 of the Cortex A77 cpu.
296ERRATA_A77_1508412	?=0
297
298# Flag to apply erratum 1925769 workaround during reset. This erratum applies
299# only to revision <= r1p1 of the Cortex A77 cpu.
300ERRATA_A77_1925769	?=0
301
302# Flag to apply erratum 1946167 workaround during reset. This erratum applies
303# only to revision <= r1p1 of the Cortex A77 cpu.
304ERRATA_A77_1946167	?=0
305
306# Flag to apply erratum 1791578 workaround during reset. This erratum applies
307# to revisions r0p0, r1p0, and r1p1, it is still open.
308ERRATA_A77_1791578	?=0
309
310# Flag to apply erratum 2356587 workaround during reset. This erratum applies
311# to revisions r0p0, r1p0, and r1p1, it is still open.
312ERRATA_A77_2356587	?=0
313
314# Flag to apply erratum 1800714 workaround during reset. This erratum applies
315# to revisions <= r1p1 of the Cortex A77 cpu.
316ERRATA_A77_1800714	?=0
317
318# Flag to apply erratum 2743100 workaround during power down. This erratum
319# applies to revisions r0p0, r1p0, and r1p1, it is still open.
320ERRATA_A77_2743100	?=0
321
322# Flag to apply erratum 1688305 workaround during reset. This erratum applies
323# to revisions r0p0 - r1p0 of the A78 cpu.
324ERRATA_A78_1688305	?=0
325
326# Flag to apply erratum 1941498 workaround during reset. This erratum applies
327# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
328ERRATA_A78_1941498	?=0
329
330# Flag to apply erratum 1951500 workaround during reset. This erratum applies
331# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
332# well but there is no workaround for that revision.
333ERRATA_A78_1951500	?=0
334
335# Flag to apply erratum 1821534 workaround during reset. This erratum applies
336# to revisions r0p0 and r1p0 of the A78 cpu.
337ERRATA_A78_1821534	?=0
338
339# Flag to apply erratum 1952683 workaround during reset. This erratum applies
340# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
341ERRATA_A78_1952683	?=0
342
343# Flag to apply erratum 2132060 workaround during reset. This erratum applies
344# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
345ERRATA_A78_2132060	?=0
346
347# Flag to apply erratum 2242635 workaround during reset. This erratum applies
348# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
349# present in r0p0 as well but there is no workaround for that revision.
350ERRATA_A78_2242635	?=0
351
352# Flag to apply erratum 2376745 workaround during reset. This erratum applies
353# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
354ERRATA_A78_2376745	?=0
355
356# Flag to apply erratum 2395406 workaround during reset. This erratum applies
357# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
358ERRATA_A78_2395406	?=0
359
360# Flag to apply erratum 2742426 workaround during reset. This erratum
361# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
362# open.
363ERRATA_A78_2742426	?=0
364
365# Flag to apply erratum 2772019 workaround during powerdown. This erratum
366# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
367# open.
368ERRATA_A78_2772019	?=0
369
370# Flag to apply erratum 2779479 workaround during reset. This erratum applies
371# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
372ERRATA_A78_2779479	?=0
373
374# Flag to apply erratum 1941500 workaround during reset. This erratum applies
375# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
376ERRATA_A78_AE_1941500	?=0
377
378# Flag to apply erratum 1951502 workaround during reset. This erratum applies
379# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
380ERRATA_A78_AE_1951502	?=0
381
382# Flag to apply erratum 2376748 workaround during reset. This erratum applies
383# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
384ERRATA_A78_AE_2376748	?=0
385
386# Flag to apply erratum 2395408 workaround during reset. This erratum applies
387# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
388ERRATA_A78_AE_2395408	?=0
389
390# Flag to apply erratum 2132064 workaround during reset. This erratum applies
391# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
392ERRATA_A78C_2132064	?=0
393
394# Flag to apply erratum 2242638 workaround during reset. This erratum applies
395# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
396ERRATA_A78C_2242638	?=0
397
398# Flag to apply erratum 2376749 workaround during reset. This erratum applies
399# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
400ERRATA_A78C_2376749 	?=0
401
402# Flag to apply erratum 2395411 workaround during reset. This erratum applies
403# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
404ERRATA_A78C_2395411 	?=0
405
406# Flag to apply erratum 2772121 workaround during powerdown. This erratum
407# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
408ERRATA_A78C_2772121 	?=0
409
410# Flag to apply erratum 2779484 workaround during reset. This erratum
411# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
412ERRATA_A78C_2779484 	?=0
413
414# Flag to apply erratum 1821534 workaround during reset. This erratum applies
415# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
416ERRATA_X1_1821534	?=0
417
418# Flag to apply erratum 1688305 workaround during reset. This erratum applies
419# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
420ERRATA_X1_1688305	?=0
421
422# Flag to apply erratum 1827429 workaround during reset. This erratum applies
423# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
424ERRATA_X1_1827429	?=0
425
426# Flag to apply T32 CLREX workaround during reset. This erratum applies
427# only to r0p0 and r1p0 of the Neoverse N1 cpu.
428ERRATA_N1_1043202	?=0
429
430# Flag to apply erratum 1073348 workaround during reset. This erratum applies
431# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
432ERRATA_N1_1073348	?=0
433
434# Flag to apply erratum 1130799 workaround during reset. This erratum applies
435# only to revision <= r2p0 of the Neoverse N1 cpu.
436ERRATA_N1_1130799	?=0
437
438# Flag to apply erratum 1165347 workaround during reset. This erratum applies
439# only to revision <= r2p0 of the Neoverse N1 cpu.
440ERRATA_N1_1165347	?=0
441
442# Flag to apply erratum 1207823 workaround during reset. This erratum applies
443# only to revision <= r2p0 of the Neoverse N1 cpu.
444ERRATA_N1_1207823	?=0
445
446# Flag to apply erratum 1220197 workaround during reset. This erratum applies
447# only to revision <= r2p0 of the Neoverse N1 cpu.
448ERRATA_N1_1220197	?=0
449
450# Flag to apply erratum 1257314 workaround during reset. This erratum applies
451# only to revision <= r3p0 of the Neoverse N1 cpu.
452ERRATA_N1_1257314	?=0
453
454# Flag to apply erratum 1262606 workaround during reset. This erratum applies
455# only to revision <= r3p0 of the Neoverse N1 cpu.
456ERRATA_N1_1262606	?=0
457
458# Flag to apply erratum 1262888 workaround during reset. This erratum applies
459# only to revision <= r3p0 of the Neoverse N1 cpu.
460ERRATA_N1_1262888	?=0
461
462# Flag to apply erratum 1275112 workaround during reset. This erratum applies
463# only to revision <= r3p0 of the Neoverse N1 cpu.
464ERRATA_N1_1275112	?=0
465
466# Flag to apply erratum 1315703 workaround during reset. This erratum applies
467# to revisions before r3p1 of the Neoverse N1 cpu.
468ERRATA_N1_1315703	?=0
469
470# Flag to apply erratum 1542419 workaround during reset. This erratum applies
471# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
472ERRATA_N1_1542419	?=0
473
474# Flag to apply erratum 1868343 workaround during reset. This erratum applies
475# to revision <= r4p0 of the Neoverse N1 cpu.
476ERRATA_N1_1868343	?=0
477
478# Flag to apply erratum 1946160 workaround during reset. This erratum applies
479# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
480# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
481ERRATA_N1_1946160	?=0
482
483# Flag to apply erratum 2743102 workaround during powerdown. This erratum
484# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
485ERRATA_N1_2743102	?=0
486
487# Flag to apply erratum 1618635 workaround during reset. This erratum applies
488# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
489ERRATA_V1_1618635	?=0
490
491# Flag to apply erratum 1774420 workaround during reset. This erratum applies
492# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
493ERRATA_V1_1774420	?=0
494
495# Flag to apply erratum 1791573 workaround during reset. This erratum applies
496# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
497ERRATA_V1_1791573	?=0
498
499# Flag to apply erratum 1852267 workaround during reset. This erratum applies
500# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
501ERRATA_V1_1852267	?=0
502
503# Flag to apply erratum 1925756 workaround during reset. This needs to be
504# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
505ERRATA_V1_1925756	?=0
506
507# Flag to apply erratum 1940577 workaround during reset. This erratum applies
508# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
509ERRATA_V1_1940577	?=0
510
511# Flag to apply erratum 1966096 workaround during reset. This erratum applies
512# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
513# exists in r0p0 as well but there is no workaround for that revision.
514ERRATA_V1_1966096	?=0
515
516# Flag to apply erratum 2139242 workaround during reset. This erratum applies
517# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
518ERRATA_V1_2139242	?=0
519
520# Flag to apply erratum 2108267 workaround during reset. This erratum applies
521# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
522ERRATA_V1_2108267	?=0
523
524# Flag to apply erratum 2216392 workaround during reset. This erratum applies
525# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
526# issue exists in r0p0 as well but there is no workaround for that revision.
527ERRATA_V1_2216392	?=0
528
529# Flag to apply erratum 2294912 workaround during reset. This erratum applies
530# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
531ERRATA_V1_2294912	?=0
532
533# Flag to apply erratum 2372203 workaround during reset. This erratum applies
534# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
535ERRATA_V1_2372203	?=0
536
537# Flag to apply erratum 2743093 workaround during powerdown. This erratum
538# applies to revisions r0p0, r1p0, r1p1 and r1p2  of the Neoverse V1 cpu and is
539# still open.
540ERRATA_V1_2743093	?=0
541
542# Flag to apply erratum 2743233 workaround during powerdown. This erratum
543# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
544# still open.
545ERRATA_V1_2743233	?=0
546
547# Flag to apply erratum 2779461 workaround during powerdown. This erratum
548# applies to revisions r0p0, r1p0, r1p1 and r1p2  of the Neoverse V1 cpu and is
549# still open.
550ERRATA_V1_2779461       ?=0
551
552# Flag to apply erratum 1987031 workaround during reset. This erratum applies
553# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
554ERRATA_A710_1987031	?=0
555
556# Flag to apply erratum 2081180 workaround during reset. This erratum applies
557# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
558ERRATA_A710_2081180	?=0
559
560# Flag to apply erratum 2083908 workaround during reset. This erratum applies
561# to revision r2p0 of the Cortex-A710 cpu and is still open.
562ERRATA_A710_2083908	?=0
563
564# Flag to apply erratum 2058056 workaround during reset. This erratum applies
565# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
566ERRATA_A710_2058056	?=0
567
568# Flag to apply erratum 2055002 workaround during reset. This erratum applies
569# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
570ERRATA_A710_2055002	?=0
571
572# Flag to apply erratum 2017096 workaround during reset. This erratum applies
573# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
574ERRATA_A710_2017096	?=0
575
576# Flag to apply erratum 2267065 workaround during reset. This erratum applies
577# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
578ERRATA_A710_2267065	?=0
579
580# Flag to apply erratum 2136059 workaround during reset. This erratum applies
581# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
582ERRATA_A710_2136059	?=0
583
584# Flag to apply erratum 2147715 workaround during reset. This erratum applies
585# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
586ERRATA_A710_2147715	?=0
587
588# Flag to apply erratum 2216384 workaround during reset. This erratum applies
589# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
590ERRATA_A710_2216384	?=0
591
592# Flag to apply erratum 2282622 workaround during reset. This erratum applies
593# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
594# open.
595ERRATA_A710_2282622	?=0
596
597# Flag to apply erratum 2291219 workaround during reset. This erratum applies
598# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
599ERRATA_A710_2291219	?=0
600
601# Flag to apply erratum 2008768 workaround during reset. This erratum applies
602# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
603ERRATA_A710_2008768	?=0
604
605# Flag to apply erratum 2371105 workaround during reset. This erratum applies
606# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
607ERRATA_A710_2371105	?=0
608
609# Flag to apply erratum 2768515 workaround during power down. This erratum
610# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
611# still open.
612ERRATA_A710_2768515	?=0
613
614# Flag to apply erratum 2002655 workaround during reset. This erratum applies
615# to revisions r0p0 of the Neoverse-N2 cpu, it is still open.
616ERRATA_N2_2002655	?=0
617
618# Flag to apply erratum 2067956 workaround during reset. This erratum applies
619# to revision r0p0 of the Neoverse N2 cpu and is still open.
620ERRATA_N2_2067956	?=0
621
622# Flag to apply erratum 2025414 workaround during reset. This erratum applies
623# to revision r0p0 of the Neoverse N2 cpu and is still open.
624ERRATA_N2_2025414	?=0
625
626# Flag to apply erratum 2189731 workaround during reset. This erratum applies
627# to revision r0p0 of the Neoverse N2 cpu and is still open.
628ERRATA_N2_2189731	?=0
629
630# Flag to apply erratum 2138956 workaround during reset. This erratum applies
631# to revision r0p0 of the Neoverse N2 cpu and is still open.
632ERRATA_N2_2138956	?=0
633
634# Flag to apply erratum 2138953 workaround during reset. This erratum applies
635# to revision r0p0 of the Neoverse N2 cpu and is still open.
636ERRATA_N2_2138953	?=0
637
638# Flag to apply erratum 2242415 workaround during reset. This erratum applies
639# to revision r0p0 of the Neoverse N2 cpu and is still open.
640ERRATA_N2_2242415	?=0
641
642# Flag to apply erratum 2138958 workaround during reset. This erratum applies
643# to revision r0p0 of the Neoverse N2 cpu and is still open.
644ERRATA_N2_2138958	?=0
645
646# Flag to apply erratum 2242400 workaround during reset. This erratum applies
647# to revision r0p0 of the Neoverse N2 cpu and is still open.
648ERRATA_N2_2242400	?=0
649
650# Flag to apply erratum 2280757 workaround during reset. This erratum applies
651# to revision r0p0 of the Neoverse N2 cpu and is still open.
652ERRATA_N2_2280757	?=0
653
654# Flag to apply erraturm 2326639 workaroud during powerdown. This erratum
655# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
656ERRATA_N2_2326639	?=0
657
658# Flag to apply erratum 2376738 workaround during reset. This erratum applies
659# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
660ERRATA_N2_2376738	?=0
661
662# Flag to apply erratum 2388450 workaround during reset. This erratum applies
663# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
664ERRATA_N2_2388450	?=0
665
666# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
667# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
668ERRATA_N2_2743089	?=0
669
670# Flag to apply erratum 2002765 workaround during reset. This erratum applies
671# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
672ERRATA_X2_2002765	?=0
673
674# Flag to apply erratum 2058056 workaround during reset. This erratum applies
675# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
676ERRATA_X2_2058056	?=0
677
678# Flag to apply erratum 2083908 workaround during reset. This erratum applies
679# to revision r2p0 of the Cortex-X2 cpu and is still open.
680ERRATA_X2_2083908	?=0
681
682# Flag to apply erratum 2017096 workaround during reset. This erratum applies
683# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
684# r2p1.
685ERRATA_X2_2017096	?=0
686
687# Flag to apply erratum 2081180 workaround during reset. This erratum applies
688# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
689# r2p1.
690ERRATA_X2_2081180	?=0
691
692# Flag to apply erratum 2216384 workaround during reset. This erratum applies
693# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
694# r2p1.
695ERRATA_X2_2216384	?=0
696
697# Flag to apply erratum 2147715 workaround during reset. This erratum applies
698# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
699ERRATA_X2_2147715	?=0
700
701# Flag to apply erratum 2282622 workaround during reset. This erratum applies
702# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
703# open.
704ERRATA_X2_2282622	?=0
705
706# Flag to apply erratum 2371105 workaround during reset. This erratum applies
707# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
708ERRATA_X2_2371105	?=0
709
710# Flag to apply erratum 2768515 workaround during power down. This erratum
711# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
712# still open.
713ERRATA_X2_2768515	?=0
714
715# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
716# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
717ERRATA_X3_2313909	?=0
718
719# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
720# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is still open.
721ERRATA_X3_2615812	?=0
722
723# Flag to apply erratum 1922240 workaround during reset. This erratum applies
724# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
725ERRATA_A510_1922240	?=0
726
727# Flag to apply erratum 2288014 workaround during reset. This erratum applies
728# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
729# fixed in r1p1.
730ERRATA_A510_2288014	?=0
731
732# Flag to apply erratum 2042739 workaround during reset. This erratum applies
733# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
734ERRATA_A510_2042739	?=0
735
736# Flag to apply erratum 2041909 workaround during reset. This erratum applies
737# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
738# present in r0p0 and r0p1 but there is no workaround for those revisions.
739ERRATA_A510_2041909	?=0
740
741# Flag to apply erratum 2250311 workaround during reset. This erratum applies
742# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
743ERRATA_A510_2250311	?=0
744
745# Flag to apply erratum 2218950 workaround during reset. This erratum applies
746# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
747ERRATA_A510_2218950	?=0
748
749# Flag to apply erratum 2172148 workaround during reset. This erratum applies
750# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
751ERRATA_A510_2172148	?=0
752
753# Flag to apply erratum 2347730 workaround during reset. This erratum applies
754# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
755# and is fixed in r1p2.
756ERRATA_A510_2347730	?=0
757
758# Flag to apply erratum 2371937 workaround during reset. This erratum applies
759# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
760ERRATA_A510_2371937	?=0
761
762# Flag to apply erratum 2666669 workaround during reset. This erratum applies
763# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
764ERRATA_A510_2666669	?=0
765
766# Flag to apply erratum 2684597 workaround during powerdown. This erratum
767# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
768# Cortex-A510 cpu and is fixed in r1p3.
769ERRATA_A510_2684597	?=0
770
771# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
772# Applying the workaround results in higher DSU power consumption on idle.
773ERRATA_DSU_798953	?=0
774
775# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
776# the ACP interface and revision < r2p0. Applying the workaround results in
777# higher DSU power consumption on idle.
778ERRATA_DSU_936184	?=0
779
780# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
781# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
782# results in higher DSU power consumption on idle.
783ERRATA_DSU_2313941	?=0
784
785# Process ERRATA_A9_794073 flag
786$(eval $(call assert_boolean,ERRATA_A9_794073))
787$(eval $(call add_define,ERRATA_A9_794073))
788
789# Process ERRATA_A15_816470 flag
790$(eval $(call assert_boolean,ERRATA_A15_816470))
791$(eval $(call add_define,ERRATA_A15_816470))
792
793# Process ERRATA_A15_827671 flag
794$(eval $(call assert_boolean,ERRATA_A15_827671))
795$(eval $(call add_define,ERRATA_A15_827671))
796
797# Process ERRATA_A17_852421 flag
798$(eval $(call assert_boolean,ERRATA_A17_852421))
799$(eval $(call add_define,ERRATA_A17_852421))
800
801# Process ERRATA_A17_852423 flag
802$(eval $(call assert_boolean,ERRATA_A17_852423))
803$(eval $(call add_define,ERRATA_A17_852423))
804
805# Process ERRATA_A35_855472 flag
806$(eval $(call assert_boolean,ERRATA_A35_855472))
807$(eval $(call add_define,ERRATA_A35_855472))
808
809# Process ERRATA_A53_819472 flag
810$(eval $(call assert_boolean,ERRATA_A53_819472))
811$(eval $(call add_define,ERRATA_A53_819472))
812
813# Process ERRATA_A53_824069 flag
814$(eval $(call assert_boolean,ERRATA_A53_824069))
815$(eval $(call add_define,ERRATA_A53_824069))
816
817# Process ERRATA_A53_826319 flag
818$(eval $(call assert_boolean,ERRATA_A53_826319))
819$(eval $(call add_define,ERRATA_A53_826319))
820
821# Process ERRATA_A53_827319 flag
822$(eval $(call assert_boolean,ERRATA_A53_827319))
823$(eval $(call add_define,ERRATA_A53_827319))
824
825# Process ERRATA_A53_835769 flag
826$(eval $(call assert_boolean,ERRATA_A53_835769))
827$(eval $(call add_define,ERRATA_A53_835769))
828
829# Process ERRATA_A53_836870 flag
830$(eval $(call assert_boolean,ERRATA_A53_836870))
831$(eval $(call add_define,ERRATA_A53_836870))
832
833# Process ERRATA_A53_843419 flag
834$(eval $(call assert_boolean,ERRATA_A53_843419))
835$(eval $(call add_define,ERRATA_A53_843419))
836
837# Process ERRATA_A53_855873 flag
838$(eval $(call assert_boolean,ERRATA_A53_855873))
839$(eval $(call add_define,ERRATA_A53_855873))
840
841# Process ERRATA_A53_1530924 flag
842$(eval $(call assert_boolean,ERRATA_A53_1530924))
843$(eval $(call add_define,ERRATA_A53_1530924))
844
845# Process ERRATA_A55_768277 flag
846$(eval $(call assert_boolean,ERRATA_A55_768277))
847$(eval $(call add_define,ERRATA_A55_768277))
848
849# Process ERRATA_A55_778703 flag
850$(eval $(call assert_boolean,ERRATA_A55_778703))
851$(eval $(call add_define,ERRATA_A55_778703))
852
853# Process ERRATA_A55_798797 flag
854$(eval $(call assert_boolean,ERRATA_A55_798797))
855$(eval $(call add_define,ERRATA_A55_798797))
856
857# Process ERRATA_A55_846532 flag
858$(eval $(call assert_boolean,ERRATA_A55_846532))
859$(eval $(call add_define,ERRATA_A55_846532))
860
861# Process ERRATA_A55_903758 flag
862$(eval $(call assert_boolean,ERRATA_A55_903758))
863$(eval $(call add_define,ERRATA_A55_903758))
864
865# Process ERRATA_A55_1221012 flag
866$(eval $(call assert_boolean,ERRATA_A55_1221012))
867$(eval $(call add_define,ERRATA_A55_1221012))
868
869# Process ERRATA_A55_1530923 flag
870$(eval $(call assert_boolean,ERRATA_A55_1530923))
871$(eval $(call add_define,ERRATA_A55_1530923))
872
873# Process ERRATA_A57_806969 flag
874$(eval $(call assert_boolean,ERRATA_A57_806969))
875$(eval $(call add_define,ERRATA_A57_806969))
876
877# Process ERRATA_A57_813419 flag
878$(eval $(call assert_boolean,ERRATA_A57_813419))
879$(eval $(call add_define,ERRATA_A57_813419))
880
881# Process ERRATA_A57_813420 flag
882$(eval $(call assert_boolean,ERRATA_A57_813420))
883$(eval $(call add_define,ERRATA_A57_813420))
884
885# Process ERRATA_A57_814670 flag
886$(eval $(call assert_boolean,ERRATA_A57_814670))
887$(eval $(call add_define,ERRATA_A57_814670))
888
889# Process ERRATA_A57_817169 flag
890$(eval $(call assert_boolean,ERRATA_A57_817169))
891$(eval $(call add_define,ERRATA_A57_817169))
892
893# Process ERRATA_A57_826974 flag
894$(eval $(call assert_boolean,ERRATA_A57_826974))
895$(eval $(call add_define,ERRATA_A57_826974))
896
897# Process ERRATA_A57_826977 flag
898$(eval $(call assert_boolean,ERRATA_A57_826977))
899$(eval $(call add_define,ERRATA_A57_826977))
900
901# Process ERRATA_A57_828024 flag
902$(eval $(call assert_boolean,ERRATA_A57_828024))
903$(eval $(call add_define,ERRATA_A57_828024))
904
905# Process ERRATA_A57_829520 flag
906$(eval $(call assert_boolean,ERRATA_A57_829520))
907$(eval $(call add_define,ERRATA_A57_829520))
908
909# Process ERRATA_A57_833471 flag
910$(eval $(call assert_boolean,ERRATA_A57_833471))
911$(eval $(call add_define,ERRATA_A57_833471))
912
913# Process ERRATA_A57_859972 flag
914$(eval $(call assert_boolean,ERRATA_A57_859972))
915$(eval $(call add_define,ERRATA_A57_859972))
916
917# Process ERRATA_A57_1319537 flag
918$(eval $(call assert_boolean,ERRATA_A57_1319537))
919$(eval $(call add_define,ERRATA_A57_1319537))
920
921# Process ERRATA_A72_859971 flag
922$(eval $(call assert_boolean,ERRATA_A72_859971))
923$(eval $(call add_define,ERRATA_A72_859971))
924
925# Process ERRATA_A72_1319367 flag
926$(eval $(call assert_boolean,ERRATA_A72_1319367))
927$(eval $(call add_define,ERRATA_A72_1319367))
928
929# Process ERRATA_A73_852427 flag
930$(eval $(call assert_boolean,ERRATA_A73_852427))
931$(eval $(call add_define,ERRATA_A73_852427))
932
933# Process ERRATA_A73_855423 flag
934$(eval $(call assert_boolean,ERRATA_A73_855423))
935$(eval $(call add_define,ERRATA_A73_855423))
936
937# Process ERRATA_A75_764081 flag
938$(eval $(call assert_boolean,ERRATA_A75_764081))
939$(eval $(call add_define,ERRATA_A75_764081))
940
941# Process ERRATA_A75_790748 flag
942$(eval $(call assert_boolean,ERRATA_A75_790748))
943$(eval $(call add_define,ERRATA_A75_790748))
944
945# Process ERRATA_A76_1073348 flag
946$(eval $(call assert_boolean,ERRATA_A76_1073348))
947$(eval $(call add_define,ERRATA_A76_1073348))
948
949# Process ERRATA_A76_1130799 flag
950$(eval $(call assert_boolean,ERRATA_A76_1130799))
951$(eval $(call add_define,ERRATA_A76_1130799))
952
953# Process ERRATA_A76_1220197 flag
954$(eval $(call assert_boolean,ERRATA_A76_1220197))
955$(eval $(call add_define,ERRATA_A76_1220197))
956
957# Process ERRATA_A76_1257314 flag
958$(eval $(call assert_boolean,ERRATA_A76_1257314))
959$(eval $(call add_define,ERRATA_A76_1257314))
960
961# Process ERRATA_A76_1262606 flag
962$(eval $(call assert_boolean,ERRATA_A76_1262606))
963$(eval $(call add_define,ERRATA_A76_1262606))
964
965# Process ERRATA_A76_1262888 flag
966$(eval $(call assert_boolean,ERRATA_A76_1262888))
967$(eval $(call add_define,ERRATA_A76_1262888))
968
969# Process ERRATA_A76_1275112 flag
970$(eval $(call assert_boolean,ERRATA_A76_1275112))
971$(eval $(call add_define,ERRATA_A76_1275112))
972
973# Process ERRATA_A76_1286807 flag
974$(eval $(call assert_boolean,ERRATA_A76_1286807))
975$(eval $(call add_define,ERRATA_A76_1286807))
976
977# Process ERRATA_A76_1791580 flag
978$(eval $(call assert_boolean,ERRATA_A76_1791580))
979$(eval $(call add_define,ERRATA_A76_1791580))
980
981# Process ERRATA_A76_1165522 flag
982$(eval $(call assert_boolean,ERRATA_A76_1165522))
983$(eval $(call add_define,ERRATA_A76_1165522))
984
985# Process ERRATA_A76_1868343 flag
986$(eval $(call assert_boolean,ERRATA_A76_1868343))
987$(eval $(call add_define,ERRATA_A76_1868343))
988
989# Process ERRATA_A76_1946160 flag
990$(eval $(call assert_boolean,ERRATA_A76_1946160))
991$(eval $(call add_define,ERRATA_A76_1946160))
992
993# Process ERRATA_A76_2743102 flag
994$(eval $(call assert_boolean,ERRATA_A76_2743102))
995$(eval $(call add_define,ERRATA_A76_2743102))
996
997# Process ERRATA_A77_1508412 flag
998$(eval $(call assert_boolean,ERRATA_A77_1508412))
999$(eval $(call add_define,ERRATA_A77_1508412))
1000
1001# Process ERRATA_A77_1925769 flag
1002$(eval $(call assert_boolean,ERRATA_A77_1925769))
1003$(eval $(call add_define,ERRATA_A77_1925769))
1004
1005# Process ERRATA_A77_1946167 flag
1006$(eval $(call assert_boolean,ERRATA_A77_1946167))
1007$(eval $(call add_define,ERRATA_A77_1946167))
1008
1009# Process ERRATA_A77_1791578 flag
1010$(eval $(call assert_boolean,ERRATA_A77_1791578))
1011$(eval $(call add_define,ERRATA_A77_1791578))
1012
1013# Process ERRATA_A77_2356587 flag
1014$(eval $(call assert_boolean,ERRATA_A77_2356587))
1015$(eval $(call add_define,ERRATA_A77_2356587))
1016
1017# Process ERRATA_A77_1800714 flag
1018$(eval $(call assert_boolean,ERRATA_A77_1800714))
1019$(eval $(call add_define,ERRATA_A77_1800714))
1020
1021# Process ERRATA_A77_2743100 flag
1022$(eval $(call assert_boolean,ERRATA_A77_2743100))
1023$(eval $(call add_define,ERRATA_A77_2743100))
1024
1025# Process ERRATA_A78_1688305 flag
1026$(eval $(call assert_boolean,ERRATA_A78_1688305))
1027$(eval $(call add_define,ERRATA_A78_1688305))
1028
1029# Process ERRATA_A78_1941498 flag
1030$(eval $(call assert_boolean,ERRATA_A78_1941498))
1031$(eval $(call add_define,ERRATA_A78_1941498))
1032
1033# Process ERRATA_A78_1951500 flag
1034$(eval $(call assert_boolean,ERRATA_A78_1951500))
1035$(eval $(call add_define,ERRATA_A78_1951500))
1036
1037# Process ERRATA_A78_1821534 flag
1038$(eval $(call assert_boolean,ERRATA_A78_1821534))
1039$(eval $(call add_define,ERRATA_A78_1821534))
1040
1041# Process ERRATA_A78_1952683 flag
1042$(eval $(call assert_boolean,ERRATA_A78_1952683))
1043$(eval $(call add_define,ERRATA_A78_1952683))
1044
1045# Process ERRATA_A78_2132060 flag
1046$(eval $(call assert_boolean,ERRATA_A78_2132060))
1047$(eval $(call add_define,ERRATA_A78_2132060))
1048
1049# Process ERRATA_A78_2242635 flag
1050$(eval $(call assert_boolean,ERRATA_A78_2242635))
1051$(eval $(call add_define,ERRATA_A78_2242635))
1052
1053# Process ERRATA_A78_2376745 flag
1054$(eval $(call assert_boolean,ERRATA_A78_2376745))
1055$(eval $(call add_define,ERRATA_A78_2376745))
1056
1057# Process ERRATA_A78_2395406 flag
1058$(eval $(call assert_boolean,ERRATA_A78_2395406))
1059$(eval $(call add_define,ERRATA_A78_2395406))
1060
1061# Process ERRATA_A78_2742426 flag
1062$(eval $(call assert_boolean,ERRATA_A78_2742426))
1063$(eval $(call add_define,ERRATA_A78_2742426))
1064
1065# Process ERRATA_A78_2772019 flag
1066$(eval $(call assert_boolean,ERRATA_A78_2772019))
1067$(eval $(call add_define,ERRATA_A78_2772019))
1068
1069# Process ERRATA_A78_2779479 flag
1070$(eval $(call assert_boolean,ERRATA_A78_2779479))
1071$(eval $(call add_define,ERRATA_A78_2779479))
1072
1073# Process ERRATA_A78_AE_1941500 flag
1074$(eval $(call assert_boolean,ERRATA_A78_AE_1941500))
1075$(eval $(call add_define,ERRATA_A78_AE_1941500))
1076
1077# Process ERRATA_A78_AE_1951502 flag
1078$(eval $(call assert_boolean,ERRATA_A78_AE_1951502))
1079$(eval $(call add_define,ERRATA_A78_AE_1951502))
1080
1081# Process ERRATA_A78_AE_2376748 flag
1082$(eval $(call assert_boolean,ERRATA_A78_AE_2376748))
1083$(eval $(call add_define,ERRATA_A78_AE_2376748))
1084
1085# Process ERRATA_A78_AE_2395408 flag
1086$(eval $(call assert_boolean,ERRATA_A78_AE_2395408))
1087$(eval $(call add_define,ERRATA_A78_AE_2395408))
1088
1089# Process ERRATA_A78C_2132064 flag
1090$(eval $(call assert_boolean,ERRATA_A78C_2132064))
1091$(eval $(call add_define,ERRATA_A78C_2132064))
1092
1093# Process ERRATA_A78C_2242638 flag
1094$(eval $(call assert_boolean,ERRATA_A78C_2242638))
1095$(eval $(call add_define,ERRATA_A78C_2242638))
1096
1097# Process ERRATA_A78C_2376749 flag
1098$(eval $(call assert_boolean,ERRATA_A78C_2376749))
1099$(eval $(call add_define,ERRATA_A78C_2376749))
1100
1101# Process ERRATA_A78C_2395411 flag
1102$(eval $(call assert_boolean,ERRATA_A78C_2395411))
1103$(eval $(call add_define,ERRATA_A78C_2395411))
1104
1105# Process ERRATA_A78C_2772121 flag
1106$(eval $(call assert_boolean,ERRATA_A78C_2772121))
1107$(eval $(call add_define,ERRATA_A78C_2772121))
1108
1109# Process ERRATA_A78C_2779484 flag
1110$(eval $(call assert_boolean,ERRATA_A78C_2779484))
1111$(eval $(call add_define,ERRATA_A78C_2779484))
1112
1113# Process ERRATA_X1_1821534 flag
1114$(eval $(call assert_boolean,ERRATA_X1_1821534))
1115$(eval $(call add_define,ERRATA_X1_1821534))
1116
1117# Process ERRATA_X1_1688305 flag
1118$(eval $(call assert_boolean,ERRATA_X1_1688305))
1119$(eval $(call add_define,ERRATA_X1_1688305))
1120
1121# Process ERRATA_X1_1827429 flag
1122$(eval $(call assert_boolean,ERRATA_X1_1827429))
1123$(eval $(call add_define,ERRATA_X1_1827429))
1124
1125# Process ERRATA_N1_1043202 flag
1126$(eval $(call assert_boolean,ERRATA_N1_1043202))
1127$(eval $(call add_define,ERRATA_N1_1043202))
1128
1129# Process ERRATA_N1_1073348 flag
1130$(eval $(call assert_boolean,ERRATA_N1_1073348))
1131$(eval $(call add_define,ERRATA_N1_1073348))
1132
1133# Process ERRATA_N1_1130799 flag
1134$(eval $(call assert_boolean,ERRATA_N1_1130799))
1135$(eval $(call add_define,ERRATA_N1_1130799))
1136
1137# Process ERRATA_N1_1165347 flag
1138$(eval $(call assert_boolean,ERRATA_N1_1165347))
1139$(eval $(call add_define,ERRATA_N1_1165347))
1140
1141# Process ERRATA_N1_1207823 flag
1142$(eval $(call assert_boolean,ERRATA_N1_1207823))
1143$(eval $(call add_define,ERRATA_N1_1207823))
1144
1145# Process ERRATA_N1_1220197 flag
1146$(eval $(call assert_boolean,ERRATA_N1_1220197))
1147$(eval $(call add_define,ERRATA_N1_1220197))
1148
1149# Process ERRATA_N1_1257314 flag
1150$(eval $(call assert_boolean,ERRATA_N1_1257314))
1151$(eval $(call add_define,ERRATA_N1_1257314))
1152
1153# Process ERRATA_N1_1262606 flag
1154$(eval $(call assert_boolean,ERRATA_N1_1262606))
1155$(eval $(call add_define,ERRATA_N1_1262606))
1156
1157# Process ERRATA_N1_1262888 flag
1158$(eval $(call assert_boolean,ERRATA_N1_1262888))
1159$(eval $(call add_define,ERRATA_N1_1262888))
1160
1161# Process ERRATA_N1_1275112 flag
1162$(eval $(call assert_boolean,ERRATA_N1_1275112))
1163$(eval $(call add_define,ERRATA_N1_1275112))
1164
1165# Process ERRATA_N1_1315703 flag
1166$(eval $(call assert_boolean,ERRATA_N1_1315703))
1167$(eval $(call add_define,ERRATA_N1_1315703))
1168
1169# Process ERRATA_N1_1542419 flag
1170$(eval $(call assert_boolean,ERRATA_N1_1542419))
1171$(eval $(call add_define,ERRATA_N1_1542419))
1172
1173# Process ERRATA_N1_1868343 flag
1174$(eval $(call assert_boolean,ERRATA_N1_1868343))
1175$(eval $(call add_define,ERRATA_N1_1868343))
1176
1177# Process ERRATA_N1_1946160 flag
1178$(eval $(call assert_boolean,ERRATA_N1_1946160))
1179$(eval $(call add_define,ERRATA_N1_1946160))
1180
1181# Process ERRATA_N1_2743102 flag
1182$(eval $(call assert_boolean,ERRATA_N1_2743102))
1183$(eval $(call add_define,ERRATA_N1_2743102))
1184
1185# Process ERRATA_V1_1618635 flag
1186$(eval $(call assert_boolean,ERRATA_V1_1618635))
1187$(eval $(call add_define,ERRATA_V1_1618635))
1188
1189# Process ERRATA_V1_1774420 flag
1190$(eval $(call assert_boolean,ERRATA_V1_1774420))
1191$(eval $(call add_define,ERRATA_V1_1774420))
1192
1193# Process ERRATA_V1_1791573 flag
1194$(eval $(call assert_boolean,ERRATA_V1_1791573))
1195$(eval $(call add_define,ERRATA_V1_1791573))
1196
1197# Process ERRATA_V1_1852267 flag
1198$(eval $(call assert_boolean,ERRATA_V1_1852267))
1199$(eval $(call add_define,ERRATA_V1_1852267))
1200
1201# Process ERRATA_V1_1925756 flag
1202$(eval $(call assert_boolean,ERRATA_V1_1925756))
1203$(eval $(call add_define,ERRATA_V1_1925756))
1204
1205# Process ERRATA_V1_1940577 flag
1206$(eval $(call assert_boolean,ERRATA_V1_1940577))
1207$(eval $(call add_define,ERRATA_V1_1940577))
1208
1209# Process ERRATA_V1_1966096 flag
1210$(eval $(call assert_boolean,ERRATA_V1_1966096))
1211$(eval $(call add_define,ERRATA_V1_1966096))
1212
1213# Process ERRATA_V1_2139242 flag
1214$(eval $(call assert_boolean,ERRATA_V1_2139242))
1215$(eval $(call add_define,ERRATA_V1_2139242))
1216
1217# Process ERRATA_V1_2108267 flag
1218$(eval $(call assert_boolean,ERRATA_V1_2108267))
1219$(eval $(call add_define,ERRATA_V1_2108267))
1220
1221# Process ERRATA_V1_2216392 flag
1222$(eval $(call assert_boolean,ERRATA_V1_2216392))
1223$(eval $(call add_define,ERRATA_V1_2216392))
1224
1225# Process ERRATA_V1_2294912 flag
1226$(eval $(call assert_boolean,ERRATA_V1_2294912))
1227$(eval $(call add_define,ERRATA_V1_2294912))
1228
1229# Process ERRATA_V1_2372203 flag
1230$(eval $(call assert_boolean,ERRATA_V1_2372203))
1231$(eval $(call add_define,ERRATA_V1_2372203))
1232
1233# Process ERRATA_V1_2743093 flag
1234$(eval $(call assert_boolean,ERRATA_V1_2743093))
1235$(eval $(call add_define,ERRATA_V1_2743093))
1236
1237# Process ERRATA_V1_2743233 flag
1238$(eval $(call assert_boolean,ERRATA_V1_2743233))
1239$(eval $(call add_define,ERRATA_V1_2743233))
1240
1241# Process ERRATA_V1_2779461 flag
1242$(eval $(call assert_boolean,ERRATA_V1_2779461))
1243$(eval $(call add_define,ERRATA_V1_2779461))
1244
1245# Process ERRATA_A710_1987031 flag
1246$(eval $(call assert_boolean,ERRATA_A710_1987031))
1247$(eval $(call add_define,ERRATA_A710_1987031))
1248
1249# Process ERRATA_A710_2081180 flag
1250$(eval $(call assert_boolean,ERRATA_A710_2081180))
1251$(eval $(call add_define,ERRATA_A710_2081180))
1252
1253# Process ERRATA_A710_2083908 flag
1254$(eval $(call assert_boolean,ERRATA_A710_2083908))
1255$(eval $(call add_define,ERRATA_A710_2083908))
1256
1257# Process ERRATA_A710_2058056 flag
1258$(eval $(call assert_boolean,ERRATA_A710_2058056))
1259$(eval $(call add_define,ERRATA_A710_2058056))
1260
1261# Process ERRATA_A710_2055002 flag
1262$(eval $(call assert_boolean,ERRATA_A710_2055002))
1263$(eval $(call add_define,ERRATA_A710_2055002))
1264
1265# Process ERRATA_A710_2017096 flag
1266$(eval $(call assert_boolean,ERRATA_A710_2017096))
1267$(eval $(call add_define,ERRATA_A710_2017096))
1268
1269# Process ERRATA_A710_2267065 flag
1270$(eval $(call assert_boolean,ERRATA_A710_2267065))
1271$(eval $(call add_define,ERRATA_A710_2267065))
1272
1273# Process ERRATA_A710_2136059 flag
1274$(eval $(call assert_boolean,ERRATA_A710_2136059))
1275$(eval $(call add_define,ERRATA_A710_2136059))
1276
1277# Process ERRATA_A710_2147715 flag
1278$(eval $(call assert_boolean,ERRATA_A710_2147715))
1279$(eval $(call add_define,ERRATA_A710_2147715))
1280
1281# Process ERRATA_A710_2216384 flag
1282$(eval $(call assert_boolean,ERRATA_A710_2216384))
1283$(eval $(call add_define,ERRATA_A710_2216384))
1284
1285# Process ERRATA_A710_2282622 flag
1286$(eval $(call assert_boolean,ERRATA_A710_2282622))
1287$(eval $(call add_define,ERRATA_A710_2282622))
1288
1289# Process ERRATA_A710_2291219 flag
1290$(eval $(call assert_boolean,ERRATA_A710_2291219))
1291$(eval $(call add_define,ERRATA_A710_2291219))
1292
1293# Process ERRATA_A710_2008768 flag
1294$(eval $(call assert_boolean,ERRATA_A710_2008768))
1295$(eval $(call add_define,ERRATA_A710_2008768))
1296
1297# Process ERRATA_A710_2371105 flag
1298$(eval $(call assert_boolean,ERRATA_A710_2371105))
1299$(eval $(call add_define,ERRATA_A710_2371105))
1300
1301# Process ERRATA_A710_2768515 flag
1302$(eval $(call assert_boolean,ERRATA_A710_2768515))
1303$(eval $(call add_define,ERRATA_A710_2768515))
1304
1305# Process ERRATA_N2_2002655 flag
1306$(eval $(call assert_boolean,ERRATA_N2_2002655))
1307$(eval $(call add_define,ERRATA_N2_2002655))
1308
1309# Process ERRATA_N2_2067956 flag
1310$(eval $(call assert_boolean,ERRATA_N2_2067956))
1311$(eval $(call add_define,ERRATA_N2_2067956))
1312
1313# Process ERRATA_N2_2025414 flag
1314$(eval $(call assert_boolean,ERRATA_N2_2025414))
1315$(eval $(call add_define,ERRATA_N2_2025414))
1316
1317# Process ERRATA_N2_2189731 flag
1318$(eval $(call assert_boolean,ERRATA_N2_2189731))
1319$(eval $(call add_define,ERRATA_N2_2189731))
1320
1321# Process ERRATA_N2_2138956 flag
1322$(eval $(call assert_boolean,ERRATA_N2_2138956))
1323$(eval $(call add_define,ERRATA_N2_2138956))
1324
1325# Process ERRATA_N2_2138953 flag
1326$(eval $(call assert_boolean,ERRATA_N2_2138953))
1327$(eval $(call add_define,ERRATA_N2_2138953))
1328
1329# Process ERRATA_N2_2242415 flag
1330$(eval $(call assert_boolean,ERRATA_N2_2242415))
1331$(eval $(call add_define,ERRATA_N2_2242415))
1332
1333# Process ERRATA_N2_2138958 flag
1334$(eval $(call assert_boolean,ERRATA_N2_2138958))
1335$(eval $(call add_define,ERRATA_N2_2138958))
1336
1337# Process ERRATA_N2_2242400 flag
1338$(eval $(call assert_boolean,ERRATA_N2_2242400))
1339$(eval $(call add_define,ERRATA_N2_2242400))
1340
1341# Process ERRATA_N2_2280757 flag
1342$(eval $(call assert_boolean,ERRATA_N2_2280757))
1343$(eval $(call add_define,ERRATA_N2_2280757))
1344
1345# Process ERRATA_N2_2326639 flag
1346$(eval $(call assert_boolean,ERRATA_N2_2326639))
1347$(eval $(call add_define,ERRATA_N2_2326639))
1348
1349# Process ERRATA_N2_2376738 flag
1350$(eval $(call assert_boolean,ERRATA_N2_2376738))
1351$(eval $(call add_define,ERRATA_N2_2376738))
1352
1353# Process ERRATA_N2_2388450 flag
1354$(eval $(call assert_boolean,ERRATA_N2_2388450))
1355$(eval $(call add_define,ERRATA_N2_2388450))
1356
1357# Process ERRATA_N2_2743089 flag
1358$(eval $(call assert_boolean,ERRATA_N2_2743089))
1359$(eval $(call add_define,ERRATA_N2_2743089))
1360
1361# Process ERRATA_X2_2002765 flag
1362$(eval $(call assert_boolean,ERRATA_X2_2002765))
1363$(eval $(call add_define,ERRATA_X2_2002765))
1364
1365# Process ERRATA_X2_2058056 flag
1366$(eval $(call assert_boolean,ERRATA_X2_2058056))
1367$(eval $(call add_define,ERRATA_X2_2058056))
1368
1369# Process ERRATA_X2_2083908 flag
1370$(eval $(call assert_boolean,ERRATA_X2_2083908))
1371$(eval $(call add_define,ERRATA_X2_2083908))
1372
1373# Process ERRATA_X2_2017096 flag
1374$(eval $(call assert_boolean,ERRATA_X2_2017096))
1375$(eval $(call add_define,ERRATA_X2_2017096))
1376
1377# Process ERRATA_X2_2081180 flag
1378$(eval $(call assert_boolean,ERRATA_X2_2081180))
1379$(eval $(call add_define,ERRATA_X2_2081180))
1380
1381# Process ERRATA_X2_2216384 flag
1382$(eval $(call assert_boolean,ERRATA_X2_2216384))
1383$(eval $(call add_define,ERRATA_X2_2216384))
1384
1385# Process ERRATA_X2_2147715 flag
1386$(eval $(call assert_boolean,ERRATA_X2_2147715))
1387$(eval $(call add_define,ERRATA_X2_2147715))
1388
1389# Process ERRATA_X2_2282622 flag
1390$(eval $(call assert_boolean,ERRATA_X2_2282622))
1391$(eval $(call add_define,ERRATA_X2_2282622))
1392
1393# Process ERRATA_X2_2371105 flag
1394$(eval $(call assert_boolean,ERRATA_X2_2371105))
1395$(eval $(call add_define,ERRATA_X2_2371105))
1396
1397# Process ERRATA_X2_2768515 flag
1398$(eval $(call assert_boolean,ERRATA_X2_2768515))
1399$(eval $(call add_define,ERRATA_X2_2768515))
1400
1401# Process ERRATA_X3_2313909 flag
1402$(eval $(call assert_boolean,ERRATA_X3_2313909))
1403$(eval $(call add_define,ERRATA_X3_2313909))
1404
1405# Process ERRATA_X3_2615812 flag
1406$(eval $(call assert_boolean,ERRATA_X3_2615812))
1407$(eval $(call add_define,ERRATA_X3_2615812))
1408
1409# Process ERRATA_A510_1922240 flag
1410$(eval $(call assert_boolean,ERRATA_A510_1922240))
1411$(eval $(call add_define,ERRATA_A510_1922240))
1412
1413# Process ERRATA_A510_2288014 flag
1414$(eval $(call assert_boolean,ERRATA_A510_2288014))
1415$(eval $(call add_define,ERRATA_A510_2288014))
1416
1417# Process ERRATA_A510_2042739 flag
1418$(eval $(call assert_boolean,ERRATA_A510_2042739))
1419$(eval $(call add_define,ERRATA_A510_2042739))
1420
1421# Process ERRATA_A510_2041909 flag
1422$(eval $(call assert_boolean,ERRATA_A510_2041909))
1423$(eval $(call add_define,ERRATA_A510_2041909))
1424
1425# Process ERRATA_A510_2250311 flag
1426$(eval $(call assert_boolean,ERRATA_A510_2250311))
1427$(eval $(call add_define,ERRATA_A510_2250311))
1428
1429# Process ERRATA_A510_2218950 flag
1430$(eval $(call assert_boolean,ERRATA_A510_2218950))
1431$(eval $(call add_define,ERRATA_A510_2218950))
1432
1433# Process ERRATA_A510_2172148 flag
1434$(eval $(call assert_boolean,ERRATA_A510_2172148))
1435$(eval $(call add_define,ERRATA_A510_2172148))
1436
1437# Process ERRATA_A510_2347730 flag
1438$(eval $(call assert_boolean,ERRATA_A510_2347730))
1439$(eval $(call add_define,ERRATA_A510_2347730))
1440
1441# Process ERRATA_A510_2371937 flag
1442$(eval $(call assert_boolean,ERRATA_A510_2371937))
1443$(eval $(call add_define,ERRATA_A510_2371937))
1444
1445# Process ERRATA_A510_2666669 flag
1446$(eval $(call assert_boolean,ERRATA_A510_2666669))
1447$(eval $(call add_define,ERRATA_A510_2666669))
1448
1449# Process ERRATA_A510_2684597 flag
1450$(eval $(call assert_boolean,ERRATA_A510_2684597))
1451$(eval $(call add_define,ERRATA_A510_2684597))
1452
1453#Process ERRATA_DSU_798953 flag
1454$(eval $(call assert_boolean,ERRATA_DSU_798953))
1455$(eval $(call add_define,ERRATA_DSU_798953))
1456
1457# Process ERRATA_DSU_936184 flag
1458$(eval $(call assert_boolean,ERRATA_DSU_936184))
1459$(eval $(call add_define,ERRATA_DSU_936184))
1460
1461# Process ERRATA_DSU_2313941 flag
1462$(eval $(call assert_boolean,ERRATA_DSU_2313941))
1463$(eval $(call add_define,ERRATA_DSU_2313941))
1464
1465# Errata build flags
1466ifneq (${ERRATA_A53_843419},0)
1467TF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
1468endif
1469
1470ifneq (${ERRATA_A53_835769},0)
1471TF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
1472TF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
1473endif
1474
1475ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923}	\
1476	${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1477ERRATA_SPECULATIVE_AT	:= 1
1478else
1479ERRATA_SPECULATIVE_AT	:= 0
1480endif
1481