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