blob: e3bfc2f2e817b06307b459b0b6bfd9abf788b5cb [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00002# Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
Soby Mathewd9bdaf22014-08-14 16:19:29 +01003#
dp-arm82cb2c12017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Soby Mathewd9bdaf22014-08-14 16:19:29 +01005#
6
Soby Mathew5541bb32014-09-22 14:13:34 +01007# Cortex A57 specific optimisation to skip L1 cache flush when
8# cluster is powered down.
9SKIP_A57_L1_FLUSH_PWR_DWN ?=0
10
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000011# 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
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000019WORKAROUND_CVE_2017_5715 ?=1
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010020WORKAROUND_CVE_2018_3639 ?=1
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010021DYNAMIC_WORKAROUND_CVE_2018_3639 ?=0
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000022
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000023# Flag to indicate internal or external Last level cache
24# By default internal
25NEOVERSE_N1_EXTERNAL_LLC ?=0
26
Soby Mathew5541bb32014-09-22 14:13:34 +010027# 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
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000031# 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
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000039# Process WORKAROUND_CVE_2017_5715 flag
40$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
41$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
Soby Mathew5541bb32014-09-22 14:13:34 +010042
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010043# 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
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010047$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
48$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
49
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000050$(eval $(call assert_boolean,NEOVERSE_N1_EXTERNAL_LLC))
51$(eval $(call add_define,NEOVERSE_N1_EXTERNAL_LLC))
52
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010053ifneq (${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
Sandrine Bailleux097b7872016-04-14 12:59:42 +010059# CPU Errata Build flags.
60# These should be enabled by the platform if the erratum workaround needs to be
61# applied.
Soby Mathewd9bdaf22014-08-14 16:19:29 +010062
Joel Huttondd4cf2c2019-04-10 12:52:52 +010063# Flag to apply erratum 794073 workaround when disabling mmu.
64ERRATA_A9_794073 ?=0
65
Ambroise Vincent75a1ada2019-03-04 16:56:26 +000066# 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
Ambroise Vincent5f2c6902019-03-05 09:54:21 +000070# 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
Ambroise Vincent0b64c192019-02-28 16:23:53 +000074# 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
Ambroise Vincentbe10dcd2019-03-04 13:20:56 +000078# 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
Louis Mayencourtcba71b72019-04-05 16:25:25 +010082# 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
Ambroise Vincentbd393702019-02-21 14:16:24 +000086# 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
Sandrine Bailleux097b7872016-04-14 12:59:42 +010094# Flag to apply erratum 826319 workaround during reset. This erratum applies
95# only to revision <= r0p2 of the Cortex A53 cpu.
Jimmy Huang6b0d97b2015-07-29 20:55:31 +080096ERRATA_A53_826319 ?=0
97
Ambroise Vincentbd393702019-02-21 14:16:24 +000098# 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
Douglas Raillarda94cc372017-06-19 15:38:02 +0100102# 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
Sandrine Bailleux097b7872016-04-14 12:59:42 +0100107# 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
Douglas Raillard3fbe46d2017-02-15 17:38:43 +0000109# erratum workaround is enabled by default in hardware.
Jimmy Huang6b0d97b2015-07-29 20:55:31 +0800110ERRATA_A53_836870 ?=0
111
Douglas Raillarda94cc372017-06-19 15:38:02 +0100112# 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
Andre Przywarab75dc0e2016-10-06 16:54:53 +0100118# 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
Ambroise Vincent1afeee92019-02-21 16:20:43 +0000124# 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
Ambroise Vincenta6cc6612019-02-21 16:25:37 +0000128# 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
Ambroise Vincent6ab87d22019-02-21 16:27:34 +0000132# 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
Ambroise Vincent6e789732019-02-21 16:29:16 +0000136# 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
Ambroise Vincent47949f32019-02-21 16:29:50 +0000140# 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
Ambroise Vincent9af07df2019-05-28 09:52:48 +0100144# 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
Sandrine Bailleux097b7872016-04-14 12:59:42 +0100148# Flag to apply erratum 806969 workaround during reset. This erratum applies
149# only to revision r0p0 of the Cortex A57 cpu.
Soby Mathewd9bdaf22014-08-14 16:19:29 +0100150ERRATA_A57_806969 ?=0
151
Antonio Nino Diazccbec912017-02-24 11:39:22 +0000152# 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
Sandrine Bailleux097b7872016-04-14 12:59:42 +0100156# Flag to apply erratum 813420 workaround during reset. This erratum applies
157# only to revision r0p0 of the Cortex A57 cpu.
Soby Mathewd9bdaf22014-08-14 16:19:29 +0100158ERRATA_A57_813420 ?=0
159
Ambroise Vincent0f6fbbd2019-02-21 16:35:07 +0000160# 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
Ambroise Vincent5bd2c242019-02-21 16:35:49 +0000164# 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
Sandrine Bailleuxdf22d602016-04-14 13:32:31 +0100168# 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
Sandrine Bailleux07288862016-04-14 14:24:13 +0100172# 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
Sandrine Bailleuxa8b1c762016-04-14 14:04:48 +0100176# 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
Sandrine Bailleux0b771972016-04-14 14:18:07 +0100180# 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
Sandrine Bailleuxadeecf92016-04-21 11:10:52 +0100184# 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
Eleanor Bonnici45b52c22017-08-02 16:35:04 +0100188# 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
Eleanor Bonnici6de9b332017-08-02 18:33:41 +0100192# 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
Louis Mayencourt25278ea2019-02-27 14:24:16 +0000196# 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
Louis Mayencourte6cab152019-02-21 16:38:16 +0000200# 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
Louis Mayencourt5f5d1ed2019-02-20 12:11:41 +0000204# 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
Louis Mayencourt98551592019-02-25 14:57:57 +0000208# 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
Louis Mayencourt5c6aa012019-02-25 15:17:44 +0000212# 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
Louis Mayencourt508d7112019-02-21 17:35:07 +0000216# 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
Louis Mayencourt5cc8c7b2019-02-25 11:37:38 +0000220# 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
Soby Mathewe6e1d0a2019-05-01 09:43:18 +0100224# 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
Soby Mathewf85edce2019-05-03 13:17:56 +0100240# 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
Madhukar Pappireddy83e95522019-12-18 15:56:27 -0600244# 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
Dimitris Papastamos040b5462018-03-26 16:46:01 +0100248# Flag to apply T32 CLREX workaround during reset. This erratum applies
John Tsichritzisda6d75a2019-02-19 13:49:06 +0000249# only to r0p0 and r1p0 of the Neoverse N1 cpu.
laurenw-armdbafda72020-01-22 13:30:39 -0600250ERRATA_N1_1043202 ?=0
Dimitris Papastamos040b5462018-03-26 16:46:01 +0100251
lauwal01a601afe2019-06-24 11:23:50 -0500252# 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
lauwal01e34606f2019-06-24 11:28:34 -0500256# 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
lauwal012017ab22019-06-24 11:32:40 -0500260# 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
lauwal01ef5fa7d2019-06-24 11:35:37 -0500264# 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
lauwal019eceb022019-06-24 11:38:53 -0500268# 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
lauwal01335b3c72019-06-24 11:42:02 -0500272# 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
lauwal01411f4952019-06-24 11:44:58 -0500276# 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
lauwal0111c48372019-06-24 11:47:30 -0500280# 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
lauwal014d8801f2019-06-24 11:49:01 -0500284# 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
Andre Przywara5f5d0762019-05-20 14:57:06 +0100288# Flag to apply erratum 1315703 workaround during reset. This erratum applies
289# to revisions before r3p1 of the Neoverse N1 cpu.
laurenw-armdbafda72020-01-22 13:30:39 -0600290ERRATA_N1_1315703 ?=0
Andre Przywara5f5d0762019-05-20 14:57:06 +0100291
laurenw-arm80942622019-08-20 15:51:24 -0500292# 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
Louis Mayencourt0e985d72019-04-09 16:29:01 +0100296# 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
John Tsichritzis8a677182018-07-23 09:11:59 +0100300# 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
Joel Huttondd4cf2c2019-04-10 12:52:52 +0100305# Process ERRATA_A9_794073 flag
306$(eval $(call assert_boolean,ERRATA_A9_794073))
307$(eval $(call add_define,ERRATA_A9_794073))
308
Ambroise Vincent75a1ada2019-03-04 16:56:26 +0000309# Process ERRATA_A15_816470 flag
310$(eval $(call assert_boolean,ERRATA_A15_816470))
311$(eval $(call add_define,ERRATA_A15_816470))
312
Ambroise Vincent5f2c6902019-03-05 09:54:21 +0000313# Process ERRATA_A15_827671 flag
314$(eval $(call assert_boolean,ERRATA_A15_827671))
315$(eval $(call add_define,ERRATA_A15_827671))
316
Ambroise Vincent0b64c192019-02-28 16:23:53 +0000317# Process ERRATA_A17_852421 flag
318$(eval $(call assert_boolean,ERRATA_A17_852421))
319$(eval $(call add_define,ERRATA_A17_852421))
320
Ambroise Vincentbe10dcd2019-03-04 13:20:56 +0000321# Process ERRATA_A17_852423 flag
322$(eval $(call assert_boolean,ERRATA_A17_852423))
323$(eval $(call add_define,ERRATA_A17_852423))
324
Louis Mayencourtcba71b72019-04-05 16:25:25 +0100325# Process ERRATA_A35_855472 flag
326$(eval $(call assert_boolean,ERRATA_A35_855472))
327$(eval $(call add_define,ERRATA_A35_855472))
328
Ambroise Vincentbd393702019-02-21 14:16:24 +0000329# 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
Jimmy Huang6b0d97b2015-07-29 20:55:31 +0800337# Process ERRATA_A53_826319 flag
338$(eval $(call assert_boolean,ERRATA_A53_826319))
339$(eval $(call add_define,ERRATA_A53_826319))
340
Ambroise Vincentbd393702019-02-21 14:16:24 +0000341# Process ERRATA_A53_827319 flag
342$(eval $(call assert_boolean,ERRATA_A53_827319))
343$(eval $(call add_define,ERRATA_A53_827319))
344
Douglas Raillarda94cc372017-06-19 15:38:02 +0100345# Process ERRATA_A53_835769 flag
346$(eval $(call assert_boolean,ERRATA_A53_835769))
347$(eval $(call add_define,ERRATA_A53_835769))
348
Jimmy Huang6b0d97b2015-07-29 20:55:31 +0800349# Process ERRATA_A53_836870 flag
350$(eval $(call assert_boolean,ERRATA_A53_836870))
351$(eval $(call add_define,ERRATA_A53_836870))
352
Douglas Raillarda94cc372017-06-19 15:38:02 +0100353# Process ERRATA_A53_843419 flag
354$(eval $(call assert_boolean,ERRATA_A53_843419))
355$(eval $(call add_define,ERRATA_A53_843419))
356
Andre Przywarab75dc0e2016-10-06 16:54:53 +0100357# Process ERRATA_A53_855873 flag
358$(eval $(call assert_boolean,ERRATA_A53_855873))
359$(eval $(call add_define,ERRATA_A53_855873))
360
Ambroise Vincent1afeee92019-02-21 16:20:43 +0000361# Process ERRATA_A55_768277 flag
362$(eval $(call assert_boolean,ERRATA_A55_768277))
363$(eval $(call add_define,ERRATA_A55_768277))
364
Ambroise Vincenta6cc6612019-02-21 16:25:37 +0000365# Process ERRATA_A55_778703 flag
366$(eval $(call assert_boolean,ERRATA_A55_778703))
367$(eval $(call add_define,ERRATA_A55_778703))
368
Ambroise Vincent6ab87d22019-02-21 16:27:34 +0000369# Process ERRATA_A55_798797 flag
370$(eval $(call assert_boolean,ERRATA_A55_798797))
371$(eval $(call add_define,ERRATA_A55_798797))
372
Ambroise Vincent6e789732019-02-21 16:29:16 +0000373# Process ERRATA_A55_846532 flag
374$(eval $(call assert_boolean,ERRATA_A55_846532))
375$(eval $(call add_define,ERRATA_A55_846532))
376
Ambroise Vincent47949f32019-02-21 16:29:50 +0000377# Process ERRATA_A55_903758 flag
378$(eval $(call assert_boolean,ERRATA_A55_903758))
379$(eval $(call add_define,ERRATA_A55_903758))
380
Ambroise Vincent9af07df2019-05-28 09:52:48 +0100381# Process ERRATA_A55_1221012 flag
382$(eval $(call assert_boolean,ERRATA_A55_1221012))
383$(eval $(call add_define,ERRATA_A55_1221012))
384
Soby Mathewd9bdaf22014-08-14 16:19:29 +0100385# Process ERRATA_A57_806969 flag
386$(eval $(call assert_boolean,ERRATA_A57_806969))
387$(eval $(call add_define,ERRATA_A57_806969))
388
Antonio Nino Diazccbec912017-02-24 11:39:22 +0000389# Process ERRATA_A57_813419 flag
390$(eval $(call assert_boolean,ERRATA_A57_813419))
391$(eval $(call add_define,ERRATA_A57_813419))
392
Soby Mathewd9bdaf22014-08-14 16:19:29 +0100393# Process ERRATA_A57_813420 flag
394$(eval $(call assert_boolean,ERRATA_A57_813420))
395$(eval $(call add_define,ERRATA_A57_813420))
Sandrine Bailleuxdf22d602016-04-14 13:32:31 +0100396
Ambroise Vincent0f6fbbd2019-02-21 16:35:07 +0000397# Process ERRATA_A57_814670 flag
398$(eval $(call assert_boolean,ERRATA_A57_814670))
399$(eval $(call add_define,ERRATA_A57_814670))
400
Ambroise Vincent5bd2c242019-02-21 16:35:49 +0000401# Process ERRATA_A57_817169 flag
402$(eval $(call assert_boolean,ERRATA_A57_817169))
403$(eval $(call add_define,ERRATA_A57_817169))
404
Sandrine Bailleuxdf22d602016-04-14 13:32:31 +0100405# Process ERRATA_A57_826974 flag
406$(eval $(call assert_boolean,ERRATA_A57_826974))
407$(eval $(call add_define,ERRATA_A57_826974))
Sandrine Bailleuxa8b1c762016-04-14 14:04:48 +0100408
Sandrine Bailleux07288862016-04-14 14:24:13 +0100409# Process ERRATA_A57_826977 flag
410$(eval $(call assert_boolean,ERRATA_A57_826977))
411$(eval $(call add_define,ERRATA_A57_826977))
412
Sandrine Bailleuxa8b1c762016-04-14 14:04:48 +0100413# Process ERRATA_A57_828024 flag
414$(eval $(call assert_boolean,ERRATA_A57_828024))
415$(eval $(call add_define,ERRATA_A57_828024))
Sandrine Bailleux0b771972016-04-14 14:18:07 +0100416
417# Process ERRATA_A57_829520 flag
418$(eval $(call assert_boolean,ERRATA_A57_829520))
419$(eval $(call add_define,ERRATA_A57_829520))
Sandrine Bailleuxadeecf92016-04-21 11:10:52 +0100420
421# Process ERRATA_A57_833471 flag
422$(eval $(call assert_boolean,ERRATA_A57_833471))
423$(eval $(call add_define,ERRATA_A57_833471))
Douglas Raillarda94cc372017-06-19 15:38:02 +0100424
Eleanor Bonnici45b52c22017-08-02 16:35:04 +0100425# Process ERRATA_A57_859972 flag
426$(eval $(call assert_boolean,ERRATA_A57_859972))
427$(eval $(call add_define,ERRATA_A57_859972))
428
Eleanor Bonnici6de9b332017-08-02 18:33:41 +0100429# Process ERRATA_A72_859971 flag
430$(eval $(call assert_boolean,ERRATA_A72_859971))
431$(eval $(call add_define,ERRATA_A72_859971))
432
Louis Mayencourt25278ea2019-02-27 14:24:16 +0000433# Process ERRATA_A73_852427 flag
434$(eval $(call assert_boolean,ERRATA_A73_852427))
435$(eval $(call add_define,ERRATA_A73_852427))
436
Louis Mayencourte6cab152019-02-21 16:38:16 +0000437# Process ERRATA_A73_855423 flag
438$(eval $(call assert_boolean,ERRATA_A73_855423))
439$(eval $(call add_define,ERRATA_A73_855423))
440
Louis Mayencourt5f5d1ed2019-02-20 12:11:41 +0000441# Process ERRATA_A75_764081 flag
442$(eval $(call assert_boolean,ERRATA_A75_764081))
443$(eval $(call add_define,ERRATA_A75_764081))
444
Louis Mayencourt98551592019-02-25 14:57:57 +0000445# Process ERRATA_A75_790748 flag
446$(eval $(call assert_boolean,ERRATA_A75_790748))
447$(eval $(call add_define,ERRATA_A75_790748))
448
Louis Mayencourt5c6aa012019-02-25 15:17:44 +0000449# Process ERRATA_A76_1073348 flag
450$(eval $(call assert_boolean,ERRATA_A76_1073348))
451$(eval $(call add_define,ERRATA_A76_1073348))
452
Louis Mayencourt508d7112019-02-21 17:35:07 +0000453# Process ERRATA_A76_1130799 flag
454$(eval $(call assert_boolean,ERRATA_A76_1130799))
455$(eval $(call add_define,ERRATA_A76_1130799))
456
Louis Mayencourt5cc8c7b2019-02-25 11:37:38 +0000457# Process ERRATA_A76_1220197 flag
458$(eval $(call assert_boolean,ERRATA_A76_1220197))
459$(eval $(call add_define,ERRATA_A76_1220197))
460
Soby Mathewe6e1d0a2019-05-01 09:43:18 +0100461# 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
Soby Mathewf85edce2019-05-03 13:17:56 +0100477# Process ERRATA_A76_1286807 flag
478$(eval $(call assert_boolean,ERRATA_A76_1286807))
479$(eval $(call add_define,ERRATA_A76_1286807))
480
Madhukar Pappireddy83e95522019-12-18 15:56:27 -0600481# Process ERRATA_HERCULES_1688305 flag
482$(eval $(call assert_boolean,ERRATA_HERCULES_1688305))
483$(eval $(call add_define,ERRATA_HERCULES_1688305))
484
John Tsichritzisda6d75a2019-02-19 13:49:06 +0000485# Process ERRATA_N1_1043202 flag
486$(eval $(call assert_boolean,ERRATA_N1_1043202))
487$(eval $(call add_define,ERRATA_N1_1043202))
Dimitris Papastamos040b5462018-03-26 16:46:01 +0100488
lauwal01a601afe2019-06-24 11:23:50 -0500489# Process ERRATA_N1_1073348 flag
490$(eval $(call assert_boolean,ERRATA_N1_1073348))
491$(eval $(call add_define,ERRATA_N1_1073348))
492
lauwal01e34606f2019-06-24 11:28:34 -0500493# Process ERRATA_N1_1130799 flag
494$(eval $(call assert_boolean,ERRATA_N1_1130799))
495$(eval $(call add_define,ERRATA_N1_1130799))
496
lauwal012017ab22019-06-24 11:32:40 -0500497# Process ERRATA_N1_1165347 flag
498$(eval $(call assert_boolean,ERRATA_N1_1165347))
499$(eval $(call add_define,ERRATA_N1_1165347))
500
lauwal01ef5fa7d2019-06-24 11:35:37 -0500501# Process ERRATA_N1_1207823 flag
502$(eval $(call assert_boolean,ERRATA_N1_1207823))
503$(eval $(call add_define,ERRATA_N1_1207823))
504
lauwal019eceb022019-06-24 11:38:53 -0500505# Process ERRATA_N1_1220197 flag
506$(eval $(call assert_boolean,ERRATA_N1_1220197))
507$(eval $(call add_define,ERRATA_N1_1220197))
508
lauwal01335b3c72019-06-24 11:42:02 -0500509# Process ERRATA_N1_1257314 flag
510$(eval $(call assert_boolean,ERRATA_N1_1257314))
511$(eval $(call add_define,ERRATA_N1_1257314))
512
lauwal01411f4952019-06-24 11:44:58 -0500513# Process ERRATA_N1_1262606 flag
514$(eval $(call assert_boolean,ERRATA_N1_1262606))
515$(eval $(call add_define,ERRATA_N1_1262606))
516
lauwal0111c48372019-06-24 11:47:30 -0500517# Process ERRATA_N1_1262888 flag
518$(eval $(call assert_boolean,ERRATA_N1_1262888))
519$(eval $(call add_define,ERRATA_N1_1262888))
520
lauwal014d8801f2019-06-24 11:49:01 -0500521# Process ERRATA_N1_1275112 flag
522$(eval $(call assert_boolean,ERRATA_N1_1275112))
523$(eval $(call add_define,ERRATA_N1_1275112))
524
Andre Przywara5f5d0762019-05-20 14:57:06 +0100525# Process ERRATA_N1_1315703 flag
526$(eval $(call assert_boolean,ERRATA_N1_1315703))
527$(eval $(call add_define,ERRATA_N1_1315703))
528
laurenw-arm80942622019-08-20 15:51:24 -0500529# Process ERRATA_N1_1542419 flag
530$(eval $(call assert_boolean,ERRATA_N1_1542419))
531$(eval $(call add_define,ERRATA_N1_1542419))
532
Louis Mayencourt0e985d72019-04-09 16:29:01 +0100533# Process ERRATA_DSU_798953 flag
534$(eval $(call assert_boolean,ERRATA_DSU_798953))
535$(eval $(call add_define,ERRATA_DSU_798953))
536
John Tsichritzis8a677182018-07-23 09:11:59 +0100537# Process ERRATA_DSU_936184 flag
538$(eval $(call assert_boolean,ERRATA_DSU_936184))
539$(eval $(call add_define,ERRATA_DSU_936184))
540
Douglas Raillarda94cc372017-06-19 15:38:02 +0100541# Errata build flags
542ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +0100543TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +0100544endif
545
546ifneq (${ERRATA_A53_835769},0)
547TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +0100548TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +0100549endif