xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision 326150b9862c7ee359dd5c189c8c6e10622551d6)
1#
2# Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Cortex A57 specific optimisation to skip L1 cache flush when
8# cluster is powered down.
9SKIP_A57_L1_FLUSH_PWR_DWN	?=0
10
11# Flag to disable the cache non-temporal hint.
12# It is enabled by default.
13A53_DISABLE_NON_TEMPORAL_HINT	?=1
14
15# Flag to disable the cache non-temporal hint.
16# It is enabled by default.
17A57_DISABLE_NON_TEMPORAL_HINT	?=1
18
19WORKAROUND_CVE_2017_5715	?=1
20WORKAROUND_CVE_2018_3639	?=1
21DYNAMIC_WORKAROUND_CVE_2018_3639	?=0
22
23# Flag to indicate internal or external Last level cache
24# By default internal
25NEOVERSE_N1_EXTERNAL_LLC	?=0
26
27# Process SKIP_A57_L1_FLUSH_PWR_DWN flag
28$(eval $(call assert_boolean,SKIP_A57_L1_FLUSH_PWR_DWN))
29$(eval $(call add_define,SKIP_A57_L1_FLUSH_PWR_DWN))
30
31# Process A53_DISABLE_NON_TEMPORAL_HINT flag
32$(eval $(call assert_boolean,A53_DISABLE_NON_TEMPORAL_HINT))
33$(eval $(call add_define,A53_DISABLE_NON_TEMPORAL_HINT))
34
35# Process A57_DISABLE_NON_TEMPORAL_HINT flag
36$(eval $(call assert_boolean,A57_DISABLE_NON_TEMPORAL_HINT))
37$(eval $(call add_define,A57_DISABLE_NON_TEMPORAL_HINT))
38
39# Process WORKAROUND_CVE_2017_5715 flag
40$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
41$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
42
43# Process WORKAROUND_CVE_2018_3639 flag
44$(eval $(call assert_boolean,WORKAROUND_CVE_2018_3639))
45$(eval $(call add_define,WORKAROUND_CVE_2018_3639))
46
47$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
48$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
49
50$(eval $(call assert_boolean,NEOVERSE_N1_EXTERNAL_LLC))
51$(eval $(call add_define,NEOVERSE_N1_EXTERNAL_LLC))
52
53ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
54    ifeq (${WORKAROUND_CVE_2018_3639},0)
55        $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
56    endif
57endif
58
59# CPU Errata Build flags.
60# These should be enabled by the platform if the erratum workaround needs to be
61# applied.
62
63# Flag to apply erratum 794073 workaround when disabling mmu.
64ERRATA_A9_794073	?=0
65
66# Flag to apply erratum 816470 workaround during power down. This erratum
67# applies only to revision >= r3p0 of the Cortex A15 cpu.
68ERRATA_A15_816470	?=0
69
70# Flag to apply erratum 827671 workaround during reset. This erratum applies
71# only to revision >= r3p0 of the Cortex A15 cpu.
72ERRATA_A15_827671	?=0
73
74# Flag to apply erratum 852421 workaround during reset. This erratum applies
75# only to revision <= r1p2 of the Cortex A17 cpu.
76ERRATA_A17_852421	?=0
77
78# Flag to apply erratum 852423 workaround during reset. This erratum applies
79# only to revision <= r1p2 of the Cortex A17 cpu.
80ERRATA_A17_852423	?=0
81
82# Flag to apply erratum 855472 workaround during reset. This erratum applies
83# only to revision r0p0 of the Cortex A35 cpu.
84ERRATA_A35_855472	?=0
85
86# Flag to apply erratum 819472 workaround during reset. This erratum applies
87# only to revision <= r0p1 of the Cortex A53 cpu.
88ERRATA_A53_819472	?=0
89
90# Flag to apply erratum 824069 workaround during reset. This erratum applies
91# only to revision <= r0p2 of the Cortex A53 cpu.
92ERRATA_A53_824069	?=0
93
94# Flag to apply erratum 826319 workaround during reset. This erratum applies
95# only to revision <= r0p2 of the Cortex A53 cpu.
96ERRATA_A53_826319	?=0
97
98# Flag to apply erratum 827319 workaround during reset. This erratum applies
99# only to revision <= r0p2 of the Cortex A53 cpu.
100ERRATA_A53_827319	?=0
101
102# Flag to apply erratum 835769 workaround at compile and link time.  This
103# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
104# workaround can lead the linker to create "*.stub" sections.
105ERRATA_A53_835769	?=0
106
107# Flag to apply erratum 836870 workaround during reset. This erratum applies
108# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
109# erratum workaround is enabled by default in hardware.
110ERRATA_A53_836870	?=0
111
112# Flag to apply erratum 843419 workaround at link time.
113# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
114# workaround could lead the linker to emit "*.stub" sections which are 4kB
115# aligned.
116ERRATA_A53_843419	?=0
117
118# Flag to apply errata 855873 during reset. This errata applies to all
119# revisions of the Cortex A53 CPU, but this firmware workaround only works
120# for revisions r0p3 and higher. Earlier revisions are taken care
121# of by the rich OS.
122ERRATA_A53_855873	?=0
123
124# Flag to apply erratum 768277 workaround during reset. This erratum applies
125# only to revision r0p0 of the Cortex A55 cpu.
126ERRATA_A55_768277	?=0
127
128# Flag to apply erratum 778703 workaround during reset. This erratum applies
129# only to revision r0p0 of the Cortex A55 cpu.
130ERRATA_A55_778703	?=0
131
132# Flag to apply erratum 798797 workaround during reset. This erratum applies
133# only to revision r0p0 of the Cortex A55 cpu.
134ERRATA_A55_798797	?=0
135
136# Flag to apply erratum 846532 workaround during reset. This erratum applies
137# only to revision <= r0p1 of the Cortex A55 cpu.
138ERRATA_A55_846532	?=0
139
140# Flag to apply erratum 903758 workaround during reset. This erratum applies
141# only to revision <= r0p1 of the Cortex A55 cpu.
142ERRATA_A55_903758	?=0
143
144# Flag to apply erratum 1221012 workaround during reset. This erratum applies
145# only to revision <= r1p0 of the Cortex A55 cpu.
146ERRATA_A55_1221012	?=0
147
148# Flag to apply erratum 806969 workaround during reset. This erratum applies
149# only to revision r0p0 of the Cortex A57 cpu.
150ERRATA_A57_806969	?=0
151
152# Flag to apply erratum 813419 workaround during reset. This erratum applies
153# only to revision r0p0 of the Cortex A57 cpu.
154ERRATA_A57_813419	?=0
155
156# Flag to apply erratum 813420  workaround during reset. This erratum applies
157# only to revision r0p0 of the Cortex A57 cpu.
158ERRATA_A57_813420	?=0
159
160# Flag to apply erratum 814670  workaround during reset. This erratum applies
161# only to revision r0p0 of the Cortex A57 cpu.
162ERRATA_A57_814670	?=0
163
164# Flag to apply erratum 817169 workaround during power down. This erratum
165# applies only to revision <= r0p1 of the Cortex A57 cpu.
166ERRATA_A57_817169	?=0
167
168# Flag to apply erratum 826974 workaround during reset. This erratum applies
169# only to revision <= r1p1 of the Cortex A57 cpu.
170ERRATA_A57_826974	?=0
171
172# Flag to apply erratum 826977 workaround during reset. This erratum applies
173# only to revision <= r1p1 of the Cortex A57 cpu.
174ERRATA_A57_826977	?=0
175
176# Flag to apply erratum 828024 workaround during reset. This erratum applies
177# only to revision <= r1p1 of the Cortex A57 cpu.
178ERRATA_A57_828024	?=0
179
180# Flag to apply erratum 829520 workaround during reset. This erratum applies
181# only to revision <= r1p2 of the Cortex A57 cpu.
182ERRATA_A57_829520	?=0
183
184# Flag to apply erratum 833471 workaround during reset. This erratum applies
185# only to revision <= r1p2 of the Cortex A57 cpu.
186ERRATA_A57_833471	?=0
187
188# Flag to apply erratum 855972 workaround during reset. This erratum applies
189# only to revision <= r1p3 of the Cortex A57 cpu.
190ERRATA_A57_859972	?=0
191
192# Flag to apply erratum 855971 workaround during reset. This erratum applies
193# only to revision <= r0p3 of the Cortex A72 cpu.
194ERRATA_A72_859971	?=0
195
196# Flag to apply erratum 852427 workaround during reset. This erratum applies
197# only to revision r0p0 of the Cortex A73 cpu.
198ERRATA_A73_852427	?=0
199
200# Flag to apply erratum 855423 workaround during reset. This erratum applies
201# only to revision <= r0p1 of the Cortex A73 cpu.
202ERRATA_A73_855423	?=0
203
204# Flag to apply erratum 764081 workaround during reset. This erratum applies
205# only to revision <= r0p0 of the Cortex A75 cpu.
206ERRATA_A75_764081	?=0
207
208# Flag to apply erratum 790748 workaround during reset. This erratum applies
209# only to revision <= r0p0 of the Cortex A75 cpu.
210ERRATA_A75_790748	?=0
211
212# Flag to apply erratum 1073348 workaround during reset. This erratum applies
213# only to revision <= r1p0 of the Cortex A76 cpu.
214ERRATA_A76_1073348	?=0
215
216# Flag to apply erratum 1130799 workaround during reset. This erratum applies
217# only to revision <= r2p0 of the Cortex A76 cpu.
218ERRATA_A76_1130799	?=0
219
220# Flag to apply erratum 1220197 workaround during reset. This erratum applies
221# only to revision <= r2p0 of the Cortex A76 cpu.
222ERRATA_A76_1220197	?=0
223
224# Flag to apply erratum 1257314 workaround during reset. This erratum applies
225# only to revision <= r3p0 of the Cortex A76 cpu.
226ERRATA_A76_1257314	?=0
227
228# Flag to apply erratum 1262606 workaround during reset. This erratum applies
229# only to revision <= r3p0 of the Cortex A76 cpu.
230ERRATA_A76_1262606	?=0
231
232# Flag to apply erratum 1262888 workaround during reset. This erratum applies
233# only to revision <= r3p0 of the Cortex A76 cpu.
234ERRATA_A76_1262888	?=0
235
236# Flag to apply erratum 1275112 workaround during reset. This erratum applies
237# only to revision <= r3p0 of the Cortex A76 cpu.
238ERRATA_A76_1275112	?=0
239
240# Flag to apply erratum 1286807 workaround during reset. This erratum applies
241# only to revision <= r3p0 of the Cortex A76 cpu.
242ERRATA_A76_1286807	?=0
243
244# Flag to apply erratum 1688305 workaround during reset. This erratum applies
245# to revisions r0p0 - r1p0 of the Hercules cpu.
246ERRATA_HERCULES_1688305	?=0
247
248# Flag to apply T32 CLREX workaround during reset. This erratum applies
249# only to r0p0 and r1p0 of the Neoverse N1 cpu.
250ERRATA_N1_1043202	?=0
251
252# Flag to apply erratum 1073348 workaround during reset. This erratum applies
253# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
254ERRATA_N1_1073348	?=0
255
256# Flag to apply erratum 1130799 workaround during reset. This erratum applies
257# only to revision <= r2p0 of the Neoverse N1 cpu.
258ERRATA_N1_1130799	?=0
259
260# Flag to apply erratum 1165347 workaround during reset. This erratum applies
261# only to revision <= r2p0 of the Neoverse N1 cpu.
262ERRATA_N1_1165347	?=0
263
264# Flag to apply erratum 1207823 workaround during reset. This erratum applies
265# only to revision <= r2p0 of the Neoverse N1 cpu.
266ERRATA_N1_1207823	?=0
267
268# Flag to apply erratum 1220197 workaround during reset. This erratum applies
269# only to revision <= r2p0 of the Neoverse N1 cpu.
270ERRATA_N1_1220197	?=0
271
272# Flag to apply erratum 1257314 workaround during reset. This erratum applies
273# only to revision <= r3p0 of the Neoverse N1 cpu.
274ERRATA_N1_1257314	?=0
275
276# Flag to apply erratum 1262606 workaround during reset. This erratum applies
277# only to revision <= r3p0 of the Neoverse N1 cpu.
278ERRATA_N1_1262606	?=0
279
280# Flag to apply erratum 1262888 workaround during reset. This erratum applies
281# only to revision <= r3p0 of the Neoverse N1 cpu.
282ERRATA_N1_1262888	?=0
283
284# Flag to apply erratum 1275112 workaround during reset. This erratum applies
285# only to revision <= r3p0 of the Neoverse N1 cpu.
286ERRATA_N1_1275112	?=0
287
288# Flag to apply erratum 1315703 workaround during reset. This erratum applies
289# to revisions before r3p1 of the Neoverse N1 cpu.
290ERRATA_N1_1315703	?=0
291
292# Flag to apply erratum 1542419 workaround during reset. This erratum applies
293# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
294ERRATA_N1_1542419	?=0
295
296# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
297# Applying the workaround results in higher DSU power consumption on idle.
298ERRATA_DSU_798953	?=0
299
300# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
301# the ACP interface and revision < r2p0. Applying the workaround results in
302# higher DSU power consumption on idle.
303ERRATA_DSU_936184	?=0
304
305# Process ERRATA_A9_794073 flag
306$(eval $(call assert_boolean,ERRATA_A9_794073))
307$(eval $(call add_define,ERRATA_A9_794073))
308
309# Process ERRATA_A15_816470 flag
310$(eval $(call assert_boolean,ERRATA_A15_816470))
311$(eval $(call add_define,ERRATA_A15_816470))
312
313# Process ERRATA_A15_827671 flag
314$(eval $(call assert_boolean,ERRATA_A15_827671))
315$(eval $(call add_define,ERRATA_A15_827671))
316
317# Process ERRATA_A17_852421 flag
318$(eval $(call assert_boolean,ERRATA_A17_852421))
319$(eval $(call add_define,ERRATA_A17_852421))
320
321# Process ERRATA_A17_852423 flag
322$(eval $(call assert_boolean,ERRATA_A17_852423))
323$(eval $(call add_define,ERRATA_A17_852423))
324
325# Process ERRATA_A35_855472 flag
326$(eval $(call assert_boolean,ERRATA_A35_855472))
327$(eval $(call add_define,ERRATA_A35_855472))
328
329# Process ERRATA_A53_819472 flag
330$(eval $(call assert_boolean,ERRATA_A53_819472))
331$(eval $(call add_define,ERRATA_A53_819472))
332
333# Process ERRATA_A53_824069 flag
334$(eval $(call assert_boolean,ERRATA_A53_824069))
335$(eval $(call add_define,ERRATA_A53_824069))
336
337# Process ERRATA_A53_826319 flag
338$(eval $(call assert_boolean,ERRATA_A53_826319))
339$(eval $(call add_define,ERRATA_A53_826319))
340
341# Process ERRATA_A53_827319 flag
342$(eval $(call assert_boolean,ERRATA_A53_827319))
343$(eval $(call add_define,ERRATA_A53_827319))
344
345# Process ERRATA_A53_835769 flag
346$(eval $(call assert_boolean,ERRATA_A53_835769))
347$(eval $(call add_define,ERRATA_A53_835769))
348
349# Process ERRATA_A53_836870 flag
350$(eval $(call assert_boolean,ERRATA_A53_836870))
351$(eval $(call add_define,ERRATA_A53_836870))
352
353# Process ERRATA_A53_843419 flag
354$(eval $(call assert_boolean,ERRATA_A53_843419))
355$(eval $(call add_define,ERRATA_A53_843419))
356
357# Process ERRATA_A53_855873 flag
358$(eval $(call assert_boolean,ERRATA_A53_855873))
359$(eval $(call add_define,ERRATA_A53_855873))
360
361# Process ERRATA_A55_768277 flag
362$(eval $(call assert_boolean,ERRATA_A55_768277))
363$(eval $(call add_define,ERRATA_A55_768277))
364
365# Process ERRATA_A55_778703 flag
366$(eval $(call assert_boolean,ERRATA_A55_778703))
367$(eval $(call add_define,ERRATA_A55_778703))
368
369# Process ERRATA_A55_798797 flag
370$(eval $(call assert_boolean,ERRATA_A55_798797))
371$(eval $(call add_define,ERRATA_A55_798797))
372
373# Process ERRATA_A55_846532 flag
374$(eval $(call assert_boolean,ERRATA_A55_846532))
375$(eval $(call add_define,ERRATA_A55_846532))
376
377# Process ERRATA_A55_903758 flag
378$(eval $(call assert_boolean,ERRATA_A55_903758))
379$(eval $(call add_define,ERRATA_A55_903758))
380
381# Process ERRATA_A55_1221012 flag
382$(eval $(call assert_boolean,ERRATA_A55_1221012))
383$(eval $(call add_define,ERRATA_A55_1221012))
384
385# Process ERRATA_A57_806969 flag
386$(eval $(call assert_boolean,ERRATA_A57_806969))
387$(eval $(call add_define,ERRATA_A57_806969))
388
389# Process ERRATA_A57_813419 flag
390$(eval $(call assert_boolean,ERRATA_A57_813419))
391$(eval $(call add_define,ERRATA_A57_813419))
392
393# Process ERRATA_A57_813420 flag
394$(eval $(call assert_boolean,ERRATA_A57_813420))
395$(eval $(call add_define,ERRATA_A57_813420))
396
397# Process ERRATA_A57_814670 flag
398$(eval $(call assert_boolean,ERRATA_A57_814670))
399$(eval $(call add_define,ERRATA_A57_814670))
400
401# Process ERRATA_A57_817169 flag
402$(eval $(call assert_boolean,ERRATA_A57_817169))
403$(eval $(call add_define,ERRATA_A57_817169))
404
405# Process ERRATA_A57_826974 flag
406$(eval $(call assert_boolean,ERRATA_A57_826974))
407$(eval $(call add_define,ERRATA_A57_826974))
408
409# Process ERRATA_A57_826977 flag
410$(eval $(call assert_boolean,ERRATA_A57_826977))
411$(eval $(call add_define,ERRATA_A57_826977))
412
413# Process ERRATA_A57_828024 flag
414$(eval $(call assert_boolean,ERRATA_A57_828024))
415$(eval $(call add_define,ERRATA_A57_828024))
416
417# Process ERRATA_A57_829520 flag
418$(eval $(call assert_boolean,ERRATA_A57_829520))
419$(eval $(call add_define,ERRATA_A57_829520))
420
421# Process ERRATA_A57_833471 flag
422$(eval $(call assert_boolean,ERRATA_A57_833471))
423$(eval $(call add_define,ERRATA_A57_833471))
424
425# Process ERRATA_A57_859972 flag
426$(eval $(call assert_boolean,ERRATA_A57_859972))
427$(eval $(call add_define,ERRATA_A57_859972))
428
429# Process ERRATA_A72_859971 flag
430$(eval $(call assert_boolean,ERRATA_A72_859971))
431$(eval $(call add_define,ERRATA_A72_859971))
432
433# Process ERRATA_A73_852427 flag
434$(eval $(call assert_boolean,ERRATA_A73_852427))
435$(eval $(call add_define,ERRATA_A73_852427))
436
437# Process ERRATA_A73_855423 flag
438$(eval $(call assert_boolean,ERRATA_A73_855423))
439$(eval $(call add_define,ERRATA_A73_855423))
440
441# Process ERRATA_A75_764081 flag
442$(eval $(call assert_boolean,ERRATA_A75_764081))
443$(eval $(call add_define,ERRATA_A75_764081))
444
445# Process ERRATA_A75_790748 flag
446$(eval $(call assert_boolean,ERRATA_A75_790748))
447$(eval $(call add_define,ERRATA_A75_790748))
448
449# Process ERRATA_A76_1073348 flag
450$(eval $(call assert_boolean,ERRATA_A76_1073348))
451$(eval $(call add_define,ERRATA_A76_1073348))
452
453# Process ERRATA_A76_1130799 flag
454$(eval $(call assert_boolean,ERRATA_A76_1130799))
455$(eval $(call add_define,ERRATA_A76_1130799))
456
457# Process ERRATA_A76_1220197 flag
458$(eval $(call assert_boolean,ERRATA_A76_1220197))
459$(eval $(call add_define,ERRATA_A76_1220197))
460
461# Process ERRATA_A76_1257314 flag
462$(eval $(call assert_boolean,ERRATA_A76_1257314))
463$(eval $(call add_define,ERRATA_A76_1257314))
464
465# Process ERRATA_A76_1262606 flag
466$(eval $(call assert_boolean,ERRATA_A76_1262606))
467$(eval $(call add_define,ERRATA_A76_1262606))
468
469# Process ERRATA_A76_1262888 flag
470$(eval $(call assert_boolean,ERRATA_A76_1262888))
471$(eval $(call add_define,ERRATA_A76_1262888))
472
473# Process ERRATA_A76_1275112 flag
474$(eval $(call assert_boolean,ERRATA_A76_1275112))
475$(eval $(call add_define,ERRATA_A76_1275112))
476
477# Process ERRATA_A76_1286807 flag
478$(eval $(call assert_boolean,ERRATA_A76_1286807))
479$(eval $(call add_define,ERRATA_A76_1286807))
480
481# Process ERRATA_HERCULES_1688305 flag
482$(eval $(call assert_boolean,ERRATA_HERCULES_1688305))
483$(eval $(call add_define,ERRATA_HERCULES_1688305))
484
485# Process ERRATA_N1_1043202 flag
486$(eval $(call assert_boolean,ERRATA_N1_1043202))
487$(eval $(call add_define,ERRATA_N1_1043202))
488
489# Process ERRATA_N1_1073348 flag
490$(eval $(call assert_boolean,ERRATA_N1_1073348))
491$(eval $(call add_define,ERRATA_N1_1073348))
492
493# Process ERRATA_N1_1130799 flag
494$(eval $(call assert_boolean,ERRATA_N1_1130799))
495$(eval $(call add_define,ERRATA_N1_1130799))
496
497# Process ERRATA_N1_1165347 flag
498$(eval $(call assert_boolean,ERRATA_N1_1165347))
499$(eval $(call add_define,ERRATA_N1_1165347))
500
501# Process ERRATA_N1_1207823 flag
502$(eval $(call assert_boolean,ERRATA_N1_1207823))
503$(eval $(call add_define,ERRATA_N1_1207823))
504
505# Process ERRATA_N1_1220197 flag
506$(eval $(call assert_boolean,ERRATA_N1_1220197))
507$(eval $(call add_define,ERRATA_N1_1220197))
508
509# Process ERRATA_N1_1257314 flag
510$(eval $(call assert_boolean,ERRATA_N1_1257314))
511$(eval $(call add_define,ERRATA_N1_1257314))
512
513# Process ERRATA_N1_1262606 flag
514$(eval $(call assert_boolean,ERRATA_N1_1262606))
515$(eval $(call add_define,ERRATA_N1_1262606))
516
517# Process ERRATA_N1_1262888 flag
518$(eval $(call assert_boolean,ERRATA_N1_1262888))
519$(eval $(call add_define,ERRATA_N1_1262888))
520
521# Process ERRATA_N1_1275112 flag
522$(eval $(call assert_boolean,ERRATA_N1_1275112))
523$(eval $(call add_define,ERRATA_N1_1275112))
524
525# Process ERRATA_N1_1315703 flag
526$(eval $(call assert_boolean,ERRATA_N1_1315703))
527$(eval $(call add_define,ERRATA_N1_1315703))
528
529# Process ERRATA_N1_1542419 flag
530$(eval $(call assert_boolean,ERRATA_N1_1542419))
531$(eval $(call add_define,ERRATA_N1_1542419))
532
533# Process ERRATA_DSU_798953 flag
534$(eval $(call assert_boolean,ERRATA_DSU_798953))
535$(eval $(call add_define,ERRATA_DSU_798953))
536
537# Process ERRATA_DSU_936184 flag
538$(eval $(call assert_boolean,ERRATA_DSU_936184))
539$(eval $(call add_define,ERRATA_DSU_936184))
540
541# Errata build flags
542ifneq (${ERRATA_A53_843419},0)
543TF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
544endif
545
546ifneq (${ERRATA_A53_835769},0)
547TF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
548TF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
549endif
550