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