blob: 8840f8ed5bf882ee61a0218ef67834f6da16990d [file] [log] [blame]
Soby Mathew802f8652014-08-14 16:19:29 +01001#
Bipin Ravi2f73d972022-01-20 00:01:04 -06002# Copyright (c) 2014-2022, ARM Limited and Contributors. All rights reserved.
Varun Wadekar9030a6c2022-03-09 22:04:00 +00003# Copyright (c) 2020-2022, NVIDIA Corporation. All rights reserved.
Soby Mathew802f8652014-08-14 16:19:29 +01004#
dp-armfa3cf0b2017-05-03 09:38:09 +01005# SPDX-License-Identifier: BSD-3-Clause
Soby Mathew802f8652014-08-14 16:19:29 +01006#
7
Soby Mathew937488b2014-09-22 14:13:34 +01008# Cortex A57 specific optimisation to skip L1 cache flush when
9# cluster is powered down.
johpow01de7b5242022-01-04 16:15:18 -060010SKIP_A57_L1_FLUSH_PWR_DWN ?=0
Soby Mathew937488b2014-09-22 14:13:34 +010011
Sandrine Bailleuxd4817592016-01-13 14:57:38 +000012# Flag to disable the cache non-temporal hint.
13# It is enabled by default.
johpow01de7b5242022-01-04 16:15:18 -060014A53_DISABLE_NON_TEMPORAL_HINT ?=1
Sandrine Bailleuxd4817592016-01-13 14:57:38 +000015
16# Flag to disable the cache non-temporal hint.
17# It is enabled by default.
johpow01de7b5242022-01-04 16:15:18 -060018A57_DISABLE_NON_TEMPORAL_HINT ?=1
Sandrine Bailleuxd4817592016-01-13 14:57:38 +000019
Varun Wadekar5ee3abc2018-06-12 16:49:12 -070020# Flag to enable higher performance non-cacheable load forwarding.
21# It is disabled by default.
22A57_ENABLE_NONCACHEABLE_LOAD_FWD ?= 0
23
johpow01de7b5242022-01-04 16:15:18 -060024WORKAROUND_CVE_2017_5715 ?=1
25WORKAROUND_CVE_2018_3639 ?=1
Dimitris Papastamosba51d9e2018-05-16 11:36:14 +010026DYNAMIC_WORKAROUND_CVE_2018_3639 ?=0
Bipin Ravi86499742022-01-18 01:59:06 -060027WORKAROUND_CVE_2022_23960 ?=1
Dimitris Papastamos446f7f12017-11-30 14:53:53 +000028
Javier Almansa Sobrino9faad3c2020-10-23 13:22:07 +010029# Flags to indicate internal or external Last level cache
Manish Pandey3880a362020-01-24 11:54:44 +000030# By default internal
johpow01de7b5242022-01-04 16:15:18 -060031NEOVERSE_Nx_EXTERNAL_LLC ?=0
Manish Pandey3880a362020-01-24 11:54:44 +000032
Varun Wadekar5ee3abc2018-06-12 16:49:12 -070033# 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
Soby Mathew937488b2014-09-22 14:13:34 +010037# 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
Sandrine Bailleuxd4817592016-01-13 14:57:38 +000041# 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
Dimitris Papastamos446f7f12017-11-30 14:53:53 +000049# Process WORKAROUND_CVE_2017_5715 flag
50$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
51$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
Soby Mathew937488b2014-09-22 14:13:34 +010052
Dimitris Papastamose6625ec2018-04-05 14:38:26 +010053# 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
Dimitris Papastamosba51d9e2018-05-16 11:36:14 +010057$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
58$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
59
Bipin Ravi86499742022-01-18 01:59:06 -060060# 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
Javier Almansa Sobrino9faad3c2020-10-23 13:22:07 +010064$(eval $(call assert_boolean,NEOVERSE_Nx_EXTERNAL_LLC))
65$(eval $(call add_define,NEOVERSE_Nx_EXTERNAL_LLC))
Manish Pandey3880a362020-01-24 11:54:44 +000066
Dimitris Papastamosba51d9e2018-05-16 11:36:14 +010067ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow01de7b5242022-01-04 16:15:18 -060068 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
Dimitris Papastamosba51d9e2018-05-16 11:36:14 +010071endif
72
Sandrine Bailleuxafa8a782016-04-14 12:59:42 +010073# CPU Errata Build flags.
74# These should be enabled by the platform if the erratum workaround needs to be
75# applied.
Soby Mathew802f8652014-08-14 16:19:29 +010076
Joel Hutton26d16762019-04-10 12:52:52 +010077# Flag to apply erratum 794073 workaround when disabling mmu.
78ERRATA_A9_794073 ?=0
79
Ambroise Vincentd4a51eb2019-03-04 16:56:26 +000080# 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
Ambroise Vincent68b38122019-03-05 09:54:21 +000084# 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
Ambroise Vincent8cf9eef2019-02-28 16:23:53 +000088# 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
Ambroise Vincentfa5c9512019-03-04 13:20:56 +000092# 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
Louis Mayencourt8a061272019-04-05 16:25:25 +010096# 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
Ambroise Vincentf5fdfbc2019-02-21 14:16:24 +0000100# 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
Sandrine Bailleuxafa8a782016-04-14 12:59:42 +0100108# Flag to apply erratum 826319 workaround during reset. This erratum applies
109# only to revision <= r0p2 of the Cortex A53 cpu.
developer4fceaca2015-07-29 20:55:31 +0800110ERRATA_A53_826319 ?=0
111
Ambroise Vincentf5fdfbc2019-02-21 14:16:24 +0000112# 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
johpow01de7b5242022-01-04 16:15:18 -0600116# Flag to apply erratum 835769 workaround at compile and link time. This
Douglas Raillardd56fb042017-06-19 15:38:02 +0100117# 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
Sandrine Bailleuxafa8a782016-04-14 12:59:42 +0100121# 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
Douglas Raillardc847f662017-02-15 17:38:43 +0000123# erratum workaround is enabled by default in hardware.
developer4fceaca2015-07-29 20:55:31 +0800124ERRATA_A53_836870 ?=0
125
Douglas Raillardd56fb042017-06-19 15:38:02 +0100126# 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
Andre Przywara00eefd92016-10-06 16:54:53 +0100132# 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
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100138# Flag to apply erratum 1530924 workaround during reset. This erratum applies
139# to all revisions of Cortex A53 cpu.
140ERRATA_A53_1530924 ?=0
141
Ambroise Vincent7927fa02019-02-21 16:20:43 +0000142# 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
Ambroise Vincent6f319602019-02-21 16:25:37 +0000146# 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
Ambroise Vincent6a77f052019-02-21 16:27:34 +0000150# 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
Ambroise Vincentdd961f72019-02-21 16:29:16 +0000154# 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
Ambroise Vincenta1d64462019-02-21 16:29:50 +0000158# 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
Ambroise Vincentb72fe7a2019-05-28 09:52:48 +0100162# 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
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100166# Flag to apply erratum 1530923 workaround during reset. This erratum applies
167# to all revisions of Cortex A55 cpu.
168ERRATA_A55_1530923 ?=0
169
Sandrine Bailleuxafa8a782016-04-14 12:59:42 +0100170# Flag to apply erratum 806969 workaround during reset. This erratum applies
171# only to revision r0p0 of the Cortex A57 cpu.
Soby Mathew802f8652014-08-14 16:19:29 +0100172ERRATA_A57_806969 ?=0
173
Antonio Nino Diaz3f13c352017-02-24 11:39:22 +0000174# 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
johpow01de7b5242022-01-04 16:15:18 -0600178# Flag to apply erratum 813420 workaround during reset. This erratum applies
Sandrine Bailleuxafa8a782016-04-14 12:59:42 +0100179# only to revision r0p0 of the Cortex A57 cpu.
Soby Mathew802f8652014-08-14 16:19:29 +0100180ERRATA_A57_813420 ?=0
181
johpow01de7b5242022-01-04 16:15:18 -0600182# Flag to apply erratum 814670 workaround during reset. This erratum applies
Ambroise Vincent1b0db762019-02-21 16:35:07 +0000183# only to revision r0p0 of the Cortex A57 cpu.
184ERRATA_A57_814670 ?=0
185
Ambroise Vincentaa2c0292019-02-21 16:35:49 +0000186# 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
Sandrine Bailleuxa7e0c532016-04-14 13:32:31 +0100190# 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
Sandrine Bailleuxadcbd552016-04-14 14:24:13 +0100194# 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
Sandrine Bailleuxc11116f2016-04-14 14:04:48 +0100198# 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
Sandrine Bailleux48cbe852016-04-14 14:18:07 +0100202# 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
Sandrine Bailleux143ef1a2016-04-21 11:10:52 +0100206# 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
Eleanor Bonnici0c9bd272017-08-02 16:35:04 +0100210# 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
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100214# Flag to apply erratum 1319537 workaround during reset. This erratum applies
215# to all revisions of Cortex A57 cpu.
216ERRATA_A57_1319537 ?=0
217
Eleanor Bonnicic3b4ca12017-08-02 18:33:41 +0100218# 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
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100222# Flag to apply erratum 1319367 workaround during reset. This erratum applies
223# to all revisions of Cortex A72 cpu.
224ERRATA_A72_1319367 ?=0
225
Louis Mayencourtd69722c2019-02-27 14:24:16 +0000226# 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
Louis Mayencourt4405de62019-02-21 16:38:16 +0000230# 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
Louis Mayencourt78a0aed2019-02-20 12:11:41 +0000234# 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
Louis Mayencourt8d868702019-02-25 14:57:57 +0000238# 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
Louis Mayencourt59fa2182019-02-25 15:17:44 +0000242# 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
Louis Mayencourt09924472019-02-21 17:35:07 +0000246# 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
Louis Mayencourtadda9d42019-02-25 11:37:38 +0000250# 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
Soby Mathew1d3ba1c2019-05-01 09:43:18 +0100254# 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
Soby Mathew16d006b2019-05-03 13:17:56 +0100270# 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
johpow019603f982020-05-29 14:17:38 -0500274# 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
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100278# Flag to apply erratum 1165522 workaround during reset. This erratum applies
279# to all revisions of Cortex A76 cpu.
280ERRATA_A76_1165522 ?=0
281
johpow0181365e32020-09-29 17:19:09 -0500282# 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
johpow013e34e922020-12-15 19:02:18 -0600286# 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
laurenw-arm99ad9762020-07-14 14:18:34 -0500290# Flag to apply erratum 1508412 workaround during reset. This erratum applies
291# only to revision <= r1p0 of the Cortex A77 cpu.
292ERRATA_A77_1508412 ?=0
293
johpow01a2fa12c2020-09-10 13:39:26 -0500294# Flag to apply erratum 1925769 workaround during reset. This erratum applies
295# only to revision <= r1p1 of the Cortex A77 cpu.
296ERRATA_A77_1925769 ?=0
297
laurenw-armf5dbbef2021-03-23 13:09:35 -0500298# Flag to apply erratum 1946167 workaround during reset. This erratum applies
299# only to revision <= r1p1 of the Cortex A77 cpu.
300ERRATA_A77_1946167 ?=0
301
johpow01eb146102021-05-03 13:37:13 -0500302# Flag to apply erratum 1791578 workaround during reset. This erratum applies
303# to revisions r0p0, r1p0, and r1p1, it is still open.
304ERRATA_A77_1791578 ?=0
305
Madhukar Pappireddy4efede72019-12-18 15:56:27 -0600306# Flag to apply erratum 1688305 workaround during reset. This erratum applies
Jimmy Brisson3571fb92020-06-01 10:18:22 -0500307# to revisions r0p0 - r1p0 of the A78 cpu.
308ERRATA_A78_1688305 ?=0
Madhukar Pappireddy4efede72019-12-18 15:56:27 -0600309
johpow019131eb82020-10-06 17:55:25 -0500310# Flag to apply erratum 1941498 workaround during reset. This erratum applies
311# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
312ERRATA_A78_1941498 ?=0
313
johpow0185ea43d2020-10-07 15:08:01 -0500314# Flag to apply erratum 1951500 workaround during reset. This erratum applies
johpow01de7b5242022-01-04 16:15:18 -0600315# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
johpow0185ea43d2020-10-07 15:08:01 -0500316# well but there is no workaround for that revision.
317ERRATA_A78_1951500 ?=0
318
johpow01b3e82942021-04-30 18:08:52 -0500319# Flag to apply erratum 1821534 workaround during reset. This erratum applies
320# to revisions r0p0 and r1p0 of the A78 cpu.
321ERRATA_A78_1821534 ?=0
322
nayanpatel-arm80bf7a52021-08-11 13:33:00 -0700323# Flag to apply erratum 1952683 workaround during reset. This erratum applies
324# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
johpow01de7b5242022-01-04 16:15:18 -0600325ERRATA_A78_1952683 ?=0
nayanpatel-arm80bf7a52021-08-11 13:33:00 -0700326
nayanpatel-arm39e08652021-09-28 17:31:50 -0700327# Flag to apply erratum 2132060 workaround during reset. This erratum applies
328# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
johpow01de7b5242022-01-04 16:15:18 -0600329ERRATA_A78_2132060 ?=0
johpow0145c17242021-09-02 17:53:30 -0500330
331# Flag to apply erratum 2242635 workaround during reset. This erratum applies
332# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
333# present in r0p0 as well but there is no workaround for that revision.
334ERRATA_A78_2242635 ?=0
335
336# Flag to apply erratum 1941500 workaround during reset. This erratum applies
337# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
338ERRATA_A78_AE_1941500 ?=0
339
340# Flag to apply erratum 1951502 workaround during reset. This erratum applies
341# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
342ERRATA_A78_AE_1951502 ?=0
nayanpatel-arm39e08652021-09-28 17:31:50 -0700343
Varun Wadekar9030a6c2022-03-09 22:04:00 +0000344# Flag to apply erratum 2376748 workaround during reset. This erratum applies
345# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
346ERRATA_A78_AE_2376748 ?=0
347
Varun Wadekarac6bf2e2022-03-09 22:20:32 +0000348# Flag to apply erratum 2395408 workaround during reset. This erratum applies
349# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
350ERRATA_A78_AE_2395408 ?=0
351
Dimitris Papastamos7ca21db2018-03-26 16:46:01 +0100352# Flag to apply T32 CLREX workaround during reset. This erratum applies
John Tsichritzis56369c12019-02-19 13:49:06 +0000353# only to r0p0 and r1p0 of the Neoverse N1 cpu.
laurenw-armc0763b62020-01-22 13:30:39 -0600354ERRATA_N1_1043202 ?=0
Dimitris Papastamos7ca21db2018-03-26 16:46:01 +0100355
lauwal01bd555f42019-06-24 11:23:50 -0500356# Flag to apply erratum 1073348 workaround during reset. This erratum applies
357# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
358ERRATA_N1_1073348 ?=0
359
lauwal01363ee3c2019-06-24 11:28:34 -0500360# Flag to apply erratum 1130799 workaround during reset. This erratum applies
361# only to revision <= r2p0 of the Neoverse N1 cpu.
362ERRATA_N1_1130799 ?=0
363
lauwal01f2adb132019-06-24 11:32:40 -0500364# Flag to apply erratum 1165347 workaround during reset. This erratum applies
365# only to revision <= r2p0 of the Neoverse N1 cpu.
366ERRATA_N1_1165347 ?=0
367
lauwal01e1590442019-06-24 11:35:37 -0500368# Flag to apply erratum 1207823 workaround during reset. This erratum applies
369# only to revision <= r2p0 of the Neoverse N1 cpu.
370ERRATA_N1_1207823 ?=0
371
lauwal01197f14c2019-06-24 11:38:53 -0500372# Flag to apply erratum 1220197 workaround during reset. This erratum applies
373# only to revision <= r2p0 of the Neoverse N1 cpu.
374ERRATA_N1_1220197 ?=0
375
lauwal0107c2a232019-06-24 11:42:02 -0500376# Flag to apply erratum 1257314 workaround during reset. This erratum applies
377# only to revision <= r3p0 of the Neoverse N1 cpu.
378ERRATA_N1_1257314 ?=0
379
lauwal0142771af2019-06-24 11:44:58 -0500380# Flag to apply erratum 1262606 workaround during reset. This erratum applies
381# only to revision <= r3p0 of the Neoverse N1 cpu.
382ERRATA_N1_1262606 ?=0
383
lauwal0100396bf2019-06-24 11:47:30 -0500384# Flag to apply erratum 1262888 workaround during reset. This erratum applies
385# only to revision <= r3p0 of the Neoverse N1 cpu.
386ERRATA_N1_1262888 ?=0
387
lauwal01644b6ed2019-06-24 11:49:01 -0500388# Flag to apply erratum 1275112 workaround during reset. This erratum applies
389# only to revision <= r3p0 of the Neoverse N1 cpu.
390ERRATA_N1_1275112 ?=0
391
Andre Przywarab9347402019-05-20 14:57:06 +0100392# Flag to apply erratum 1315703 workaround during reset. This erratum applies
393# to revisions before r3p1 of the Neoverse N1 cpu.
laurenw-armc0763b62020-01-22 13:30:39 -0600394ERRATA_N1_1315703 ?=0
Andre Przywarab9347402019-05-20 14:57:06 +0100395
laurenw-arm94accd32019-08-20 15:51:24 -0500396# Flag to apply erratum 1542419 workaround during reset. This erratum applies
397# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
398ERRATA_N1_1542419 ?=0
399
johpow01e2428fd2020-08-05 12:27:12 -0500400# Flag to apply erratum 1868343 workaround during reset. This erratum applies
401# to revision <= r4p0 of the Neoverse N1 cpu.
402ERRATA_N1_1868343 ?=0
403
johpow01f1a84f52020-10-07 14:33:15 -0500404# Flag to apply erratum 1946160 workaround during reset. This erratum applies
johpow01de7b5242022-01-04 16:15:18 -0600405# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
johpow01f1a84f52020-10-07 14:33:15 -0500406# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
407ERRATA_N1_1946160 ?=0
408
nayanpatel-arm277581e2021-08-06 17:46:10 -0700409# Flag to apply erratum 2002655 workaround during reset. This erratum applies
410# to revisions r0p0 of the Neoverse-N2 cpu, it is still open.
411ERRATA_N2_2002655 ?=0
412
johpow01de7b5242022-01-04 16:15:18 -0600413# Flag to apply erratum 1774420 workaround during reset. This erratum applies
laurenw-arm3c86d832021-08-02 13:22:32 -0500414# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
415ERRATA_V1_1774420 ?=0
416
johpow01de7b5242022-01-04 16:15:18 -0600417# Flag to apply erratum 1791573 workaround during reset. This erratum applies
johpow01c73b03c2021-05-03 15:33:39 -0500418# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
419ERRATA_V1_1791573 ?=0
420
johpow01de7b5242022-01-04 16:15:18 -0600421# Flag to apply erratum 1852267 workaround during reset. This erratum applies
laurenw-armb1923e92021-08-02 14:40:08 -0500422# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
423ERRATA_V1_1852267 ?=0
424
johpow01de7b5242022-01-04 16:15:18 -0600425# Flag to apply erratum 1925756 workaround during reset. This needs to be
laurenw-arm6b56f962021-08-02 15:00:15 -0500426# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
427ERRATA_V1_1925756 ?=0
428
johpow0107acb4f2020-10-07 16:38:37 -0500429# Flag to apply erratum 1940577 workaround during reset. This erratum applies
430# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
431ERRATA_V1_1940577 ?=0
432
johpow0197db6752021-08-02 18:59:08 -0500433# Flag to apply erratum 1966096 workaround during reset. This erratum applies
johpow01de7b5242022-01-04 16:15:18 -0600434# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
johpow0197db6752021-08-02 18:59:08 -0500435# exists in r0p0 as well but there is no workaround for that revision.
nayanpatel-armfc26ffe2021-09-28 13:41:03 -0700436ERRATA_V1_1966096 ?=0
johpow0197db6752021-08-02 18:59:08 -0500437
johpow01ad1ca342021-08-03 14:35:20 -0500438# Flag to apply erratum 2139242 workaround during reset. This erratum applies
439# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
nayanpatel-armfc26ffe2021-09-28 13:41:03 -0700440ERRATA_V1_2139242 ?=0
441
442# Flag to apply erratum 2108267 workaround during reset. This erratum applies
443# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
444ERRATA_V1_2108267 ?=0
johpow01ad1ca342021-08-03 14:35:20 -0500445
johpow014de29cb2021-09-02 18:29:17 -0500446# Flag to apply erratum 2216392 workaround during reset. This erratum applies
447# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
448# issue exists in r0p0 as well but there is no workaround for that revision.
449ERRATA_V1_2216392 ?=0
450
nayanpatel-arme55d3252021-08-06 16:39:48 -0700451# Flag to apply erratum 1987031 workaround during reset. This erratum applies
452# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
453ERRATA_A710_1987031 ?=0
454
nayanpatel-arm7597d082021-08-25 17:35:15 -0700455# Flag to apply erratum 2081180 workaround during reset. This erratum applies
456# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
457ERRATA_A710_2081180 ?=0
458
nayanpatel-arm0b338b42021-09-16 15:27:53 -0700459# Flag to apply erratum 2083908 workaround during reset. This erratum applies
460# to revision r2p0 of the Cortex-A710 cpu and is still open.
461ERRATA_A710_2083908 ?=0
462
nayanpatel-armf2dce0e2021-09-22 12:35:03 -0700463# Flag to apply erratum 2058056 workaround during reset. This erratum applies
464# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
465ERRATA_A710_2058056 ?=0
466
johpow01de7b5242022-01-04 16:15:18 -0600467# Flag to apply erratum 2055002 workaround during reset. This erratum applies
468# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
469ERRATA_A710_2055002 ?=0
470
471# Flag to apply erratum 2017096 workaround during reset. This erratum applies
472# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
473ERRATA_A710_2017096 ?=0
474
475# Flag to apply erratum 2267065 workaround during reset. This erratum applies
476# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
477ERRATA_A710_2267065 ?=0
478
479# Flag to apply erratum 2136059 workaround during reset. This erratum applies
480# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
481ERRATA_A710_2136059 ?=0
482
johpow017249fd02022-02-28 18:34:04 -0600483# Flag to apply erratum 2282622 workaround during reset. This erratum applies
484# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
485ERRATA_A710_2282622 ?=0
486
Bipin Ravieb35e852021-03-30 16:08:32 -0500487# Flag to apply erratum 2067956 workaround during reset. This erratum applies
488# to revision r0p0 of the Neoverse N2 cpu and is still open.
489ERRATA_N2_2067956 ?=0
490
Bipin Ravi7f565472021-03-31 10:10:27 -0500491# Flag to apply erratum 2025414 workaround during reset. This erratum applies
492# to revision r0p0 of the Neoverse N2 cpu and is still open.
493ERRATA_N2_2025414 ?=0
494
Bipin Ravi7e030692021-08-30 13:02:51 -0500495# Flag to apply erratum 2189731 workaround during reset. This erratum applies
496# to revision r0p0 of the Neoverse N2 cpu and is still open.
497ERRATA_N2_2189731 ?=0
498
Bipin Ravi0ba631c2021-09-01 01:36:43 -0500499# Flag to apply erratum 2138956 workaround during reset. This erratum applies
500# to revision r0p0 of the Neoverse N2 cpu and is still open.
501ERRATA_N2_2138956 ?=0
502
nayanpatel-armd4c5f9c2021-09-28 09:46:45 -0700503# Flag to apply erratum 2138953 workaround during reset. This erratum applies
504# to revision r0p0 of the Neoverse N2 cpu and is still open.
505ERRATA_N2_2138953 ?=0
506
nayanpatel-arm2f153992021-10-06 15:31:24 -0700507# Flag to apply erratum 2242415 workaround during reset. This erratum applies
508# to revision r0p0 of the Neoverse N2 cpu and is still open.
509ERRATA_N2_2242415 ?=0
510
nayanpatel-arm8e1aa012021-10-20 18:28:58 -0700511# Flag to apply erratum 2138958 workaround during reset. This erratum applies
512# to revision r0p0 of the Neoverse N2 cpu and is still open.
513ERRATA_N2_2138958 ?=0
514
nayanpatel-armfed98132021-10-07 17:59:33 -0700515# Flag to apply erratum 2242400 workaround during reset. This erratum applies
516# to revision r0p0 of the Neoverse N2 cpu and is still open.
517ERRATA_N2_2242400 ?=0
518
nayanpatel-arm45b9f6f2021-10-20 17:30:46 -0700519# Flag to apply erratum 2280757 workaround during reset. This erratum applies
520# to revision r0p0 of the Neoverse N2 cpu and is still open.
521ERRATA_N2_2280757 ?=0
522
johpow010afef362021-12-02 13:25:50 -0600523# Flag to apply erratum 2002765 workaround during reset. This erratum applies
524# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
Bipin Ravi2f73d972022-01-20 00:01:04 -0600525ERRATA_X2_2002765 ?=0
johpow010afef362021-12-02 13:25:50 -0600526
johpow01f6c37de2021-12-03 11:27:33 -0600527# Flag to apply erratum 2058056 workaround during reset. This erratum applies
528# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
Bipin Ravi2f73d972022-01-20 00:01:04 -0600529ERRATA_X2_2058056 ?=0
johpow01f6c37de2021-12-03 11:27:33 -0600530
johpow0115f10bd2021-12-01 17:40:39 -0600531# Flag to apply erratum 2083908 workaround during reset. This erratum applies
532# to revision r2p0 of the Cortex-X2 cpu and is still open.
Bipin Ravi2f73d972022-01-20 00:01:04 -0600533ERRATA_X2_2083908 ?=0
534
535# Flag to apply erratum 2017096 workaround during reset. This erratum applies
536# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
537# r2p1.
538ERRATA_X2_2017096 ?=0
johpow0115f10bd2021-12-01 17:40:39 -0600539
Bipin Ravi9ad54782022-01-20 00:42:05 -0600540# Flag to apply erratum 2081180 workaround during reset. This erratum applies
541# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
542# r2p1.
543ERRATA_X2_2081180 ?=0
544
Bipin Ravi78b72082022-02-06 01:29:31 -0600545# Flag to apply erratum 2216384 workaround during reset. This erratum applies
546# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
547# r2p1.
548ERRATA_X2_2216384 ?=0
549
johpow01de7b5242022-01-04 16:15:18 -0600550# Flag to apply erratum 1922240 workaround during reset. This erratum applies
551# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
552ERRATA_A510_1922240 ?=0
553
johpow0149f60dd2022-01-06 14:54:49 -0600554# Flag to apply erratum 2288014 workaround during reset. This erratum applies
555# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
556# fixed in r1p1.
557ERRATA_A510_2288014 ?=0
558
johpow018276f252022-01-07 17:12:31 -0600559# Flag to apply erratum 2042739 workaround during reset. This erratum applies
560# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
561ERRATA_A510_2042739 ?=0
562
johpow015a993002022-01-11 17:54:41 -0600563# Flag to apply erratum 2041909 workaround during reset. This erratum applies
564# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
565# present in r0p0 and r0p1 but there is no workaround for those revisions.
566ERRATA_A510_2041909 ?=0
567
johpow013ba9cb22022-02-13 21:00:10 -0600568# Flag to apply erratum 2250311 workaround during reset. This erratum applies
569# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
570ERRATA_A510_2250311 ?=0
571
johpow013ead2952022-02-14 20:19:08 -0600572# Flag to apply erratum 2218950 workaround during reset. This erratum applies
573# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
574ERRATA_A510_2218950 ?=0
575
johpow01ac55c012022-02-15 22:55:22 -0600576# Flag to apply erratum 2172148 workaround during reset. This erratum applies
577# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
578ERRATA_A510_2172148 ?=0
579
Louis Mayencourt4498b152019-04-09 16:29:01 +0100580# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
581# Applying the workaround results in higher DSU power consumption on idle.
582ERRATA_DSU_798953 ?=0
583
John Tsichritzis4daa1de2018-07-23 09:11:59 +0100584# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
585# the ACP interface and revision < r2p0. Applying the workaround results in
586# higher DSU power consumption on idle.
587ERRATA_DSU_936184 ?=0
588
Joel Hutton26d16762019-04-10 12:52:52 +0100589# Process ERRATA_A9_794073 flag
590$(eval $(call assert_boolean,ERRATA_A9_794073))
591$(eval $(call add_define,ERRATA_A9_794073))
592
Ambroise Vincentd4a51eb2019-03-04 16:56:26 +0000593# Process ERRATA_A15_816470 flag
594$(eval $(call assert_boolean,ERRATA_A15_816470))
595$(eval $(call add_define,ERRATA_A15_816470))
596
Ambroise Vincent68b38122019-03-05 09:54:21 +0000597# Process ERRATA_A15_827671 flag
598$(eval $(call assert_boolean,ERRATA_A15_827671))
599$(eval $(call add_define,ERRATA_A15_827671))
600
Ambroise Vincent8cf9eef2019-02-28 16:23:53 +0000601# Process ERRATA_A17_852421 flag
602$(eval $(call assert_boolean,ERRATA_A17_852421))
603$(eval $(call add_define,ERRATA_A17_852421))
604
Ambroise Vincentfa5c9512019-03-04 13:20:56 +0000605# Process ERRATA_A17_852423 flag
606$(eval $(call assert_boolean,ERRATA_A17_852423))
607$(eval $(call add_define,ERRATA_A17_852423))
608
Louis Mayencourt8a061272019-04-05 16:25:25 +0100609# Process ERRATA_A35_855472 flag
610$(eval $(call assert_boolean,ERRATA_A35_855472))
611$(eval $(call add_define,ERRATA_A35_855472))
612
Ambroise Vincentf5fdfbc2019-02-21 14:16:24 +0000613# Process ERRATA_A53_819472 flag
614$(eval $(call assert_boolean,ERRATA_A53_819472))
615$(eval $(call add_define,ERRATA_A53_819472))
616
617# Process ERRATA_A53_824069 flag
618$(eval $(call assert_boolean,ERRATA_A53_824069))
619$(eval $(call add_define,ERRATA_A53_824069))
620
developer4fceaca2015-07-29 20:55:31 +0800621# Process ERRATA_A53_826319 flag
622$(eval $(call assert_boolean,ERRATA_A53_826319))
623$(eval $(call add_define,ERRATA_A53_826319))
624
Ambroise Vincentf5fdfbc2019-02-21 14:16:24 +0000625# Process ERRATA_A53_827319 flag
626$(eval $(call assert_boolean,ERRATA_A53_827319))
627$(eval $(call add_define,ERRATA_A53_827319))
628
Douglas Raillardd56fb042017-06-19 15:38:02 +0100629# Process ERRATA_A53_835769 flag
630$(eval $(call assert_boolean,ERRATA_A53_835769))
631$(eval $(call add_define,ERRATA_A53_835769))
632
developer4fceaca2015-07-29 20:55:31 +0800633# Process ERRATA_A53_836870 flag
634$(eval $(call assert_boolean,ERRATA_A53_836870))
635$(eval $(call add_define,ERRATA_A53_836870))
636
Douglas Raillardd56fb042017-06-19 15:38:02 +0100637# Process ERRATA_A53_843419 flag
638$(eval $(call assert_boolean,ERRATA_A53_843419))
639$(eval $(call add_define,ERRATA_A53_843419))
640
Andre Przywara00eefd92016-10-06 16:54:53 +0100641# Process ERRATA_A53_855873 flag
642$(eval $(call assert_boolean,ERRATA_A53_855873))
643$(eval $(call add_define,ERRATA_A53_855873))
644
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100645# Process ERRATA_A53_1530924 flag
646$(eval $(call assert_boolean,ERRATA_A53_1530924))
647$(eval $(call add_define,ERRATA_A53_1530924))
648
Ambroise Vincent7927fa02019-02-21 16:20:43 +0000649# Process ERRATA_A55_768277 flag
650$(eval $(call assert_boolean,ERRATA_A55_768277))
651$(eval $(call add_define,ERRATA_A55_768277))
652
Ambroise Vincent6f319602019-02-21 16:25:37 +0000653# Process ERRATA_A55_778703 flag
654$(eval $(call assert_boolean,ERRATA_A55_778703))
655$(eval $(call add_define,ERRATA_A55_778703))
656
Ambroise Vincent6a77f052019-02-21 16:27:34 +0000657# Process ERRATA_A55_798797 flag
658$(eval $(call assert_boolean,ERRATA_A55_798797))
659$(eval $(call add_define,ERRATA_A55_798797))
660
Ambroise Vincentdd961f72019-02-21 16:29:16 +0000661# Process ERRATA_A55_846532 flag
662$(eval $(call assert_boolean,ERRATA_A55_846532))
663$(eval $(call add_define,ERRATA_A55_846532))
664
Ambroise Vincenta1d64462019-02-21 16:29:50 +0000665# Process ERRATA_A55_903758 flag
666$(eval $(call assert_boolean,ERRATA_A55_903758))
667$(eval $(call add_define,ERRATA_A55_903758))
668
Ambroise Vincentb72fe7a2019-05-28 09:52:48 +0100669# Process ERRATA_A55_1221012 flag
670$(eval $(call assert_boolean,ERRATA_A55_1221012))
671$(eval $(call add_define,ERRATA_A55_1221012))
672
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100673# Process ERRATA_A55_1530923 flag
674$(eval $(call assert_boolean,ERRATA_A55_1530923))
675$(eval $(call add_define,ERRATA_A55_1530923))
676
Soby Mathew802f8652014-08-14 16:19:29 +0100677# Process ERRATA_A57_806969 flag
678$(eval $(call assert_boolean,ERRATA_A57_806969))
679$(eval $(call add_define,ERRATA_A57_806969))
680
Antonio Nino Diaz3f13c352017-02-24 11:39:22 +0000681# Process ERRATA_A57_813419 flag
682$(eval $(call assert_boolean,ERRATA_A57_813419))
683$(eval $(call add_define,ERRATA_A57_813419))
684
Soby Mathew802f8652014-08-14 16:19:29 +0100685# Process ERRATA_A57_813420 flag
686$(eval $(call assert_boolean,ERRATA_A57_813420))
687$(eval $(call add_define,ERRATA_A57_813420))
Sandrine Bailleuxa7e0c532016-04-14 13:32:31 +0100688
Ambroise Vincent1b0db762019-02-21 16:35:07 +0000689# Process ERRATA_A57_814670 flag
690$(eval $(call assert_boolean,ERRATA_A57_814670))
691$(eval $(call add_define,ERRATA_A57_814670))
692
Ambroise Vincentaa2c0292019-02-21 16:35:49 +0000693# Process ERRATA_A57_817169 flag
694$(eval $(call assert_boolean,ERRATA_A57_817169))
695$(eval $(call add_define,ERRATA_A57_817169))
696
Sandrine Bailleuxa7e0c532016-04-14 13:32:31 +0100697# Process ERRATA_A57_826974 flag
698$(eval $(call assert_boolean,ERRATA_A57_826974))
699$(eval $(call add_define,ERRATA_A57_826974))
Sandrine Bailleuxc11116f2016-04-14 14:04:48 +0100700
Sandrine Bailleuxadcbd552016-04-14 14:24:13 +0100701# Process ERRATA_A57_826977 flag
702$(eval $(call assert_boolean,ERRATA_A57_826977))
703$(eval $(call add_define,ERRATA_A57_826977))
704
Sandrine Bailleuxc11116f2016-04-14 14:04:48 +0100705# Process ERRATA_A57_828024 flag
706$(eval $(call assert_boolean,ERRATA_A57_828024))
707$(eval $(call add_define,ERRATA_A57_828024))
Sandrine Bailleux48cbe852016-04-14 14:18:07 +0100708
709# Process ERRATA_A57_829520 flag
710$(eval $(call assert_boolean,ERRATA_A57_829520))
711$(eval $(call add_define,ERRATA_A57_829520))
Sandrine Bailleux143ef1a2016-04-21 11:10:52 +0100712
713# Process ERRATA_A57_833471 flag
714$(eval $(call assert_boolean,ERRATA_A57_833471))
715$(eval $(call add_define,ERRATA_A57_833471))
Douglas Raillardd56fb042017-06-19 15:38:02 +0100716
Eleanor Bonnici0c9bd272017-08-02 16:35:04 +0100717# Process ERRATA_A57_859972 flag
718$(eval $(call assert_boolean,ERRATA_A57_859972))
719$(eval $(call add_define,ERRATA_A57_859972))
720
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100721# Process ERRATA_A57_1319537 flag
722$(eval $(call assert_boolean,ERRATA_A57_1319537))
723$(eval $(call add_define,ERRATA_A57_1319537))
724
Eleanor Bonnicic3b4ca12017-08-02 18:33:41 +0100725# Process ERRATA_A72_859971 flag
726$(eval $(call assert_boolean,ERRATA_A72_859971))
727$(eval $(call add_define,ERRATA_A72_859971))
728
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100729# Process ERRATA_A72_1319367 flag
730$(eval $(call assert_boolean,ERRATA_A72_1319367))
731$(eval $(call add_define,ERRATA_A72_1319367))
732
Louis Mayencourtd69722c2019-02-27 14:24:16 +0000733# Process ERRATA_A73_852427 flag
734$(eval $(call assert_boolean,ERRATA_A73_852427))
735$(eval $(call add_define,ERRATA_A73_852427))
736
Louis Mayencourt4405de62019-02-21 16:38:16 +0000737# Process ERRATA_A73_855423 flag
738$(eval $(call assert_boolean,ERRATA_A73_855423))
739$(eval $(call add_define,ERRATA_A73_855423))
740
Louis Mayencourt78a0aed2019-02-20 12:11:41 +0000741# Process ERRATA_A75_764081 flag
742$(eval $(call assert_boolean,ERRATA_A75_764081))
743$(eval $(call add_define,ERRATA_A75_764081))
744
Louis Mayencourt8d868702019-02-25 14:57:57 +0000745# Process ERRATA_A75_790748 flag
746$(eval $(call assert_boolean,ERRATA_A75_790748))
747$(eval $(call add_define,ERRATA_A75_790748))
748
Louis Mayencourt59fa2182019-02-25 15:17:44 +0000749# Process ERRATA_A76_1073348 flag
750$(eval $(call assert_boolean,ERRATA_A76_1073348))
751$(eval $(call add_define,ERRATA_A76_1073348))
752
Louis Mayencourt09924472019-02-21 17:35:07 +0000753# Process ERRATA_A76_1130799 flag
754$(eval $(call assert_boolean,ERRATA_A76_1130799))
755$(eval $(call add_define,ERRATA_A76_1130799))
756
Louis Mayencourtadda9d42019-02-25 11:37:38 +0000757# Process ERRATA_A76_1220197 flag
758$(eval $(call assert_boolean,ERRATA_A76_1220197))
759$(eval $(call add_define,ERRATA_A76_1220197))
760
Soby Mathew1d3ba1c2019-05-01 09:43:18 +0100761# Process ERRATA_A76_1257314 flag
762$(eval $(call assert_boolean,ERRATA_A76_1257314))
763$(eval $(call add_define,ERRATA_A76_1257314))
764
765# Process ERRATA_A76_1262606 flag
766$(eval $(call assert_boolean,ERRATA_A76_1262606))
767$(eval $(call add_define,ERRATA_A76_1262606))
768
769# Process ERRATA_A76_1262888 flag
770$(eval $(call assert_boolean,ERRATA_A76_1262888))
771$(eval $(call add_define,ERRATA_A76_1262888))
772
773# Process ERRATA_A76_1275112 flag
774$(eval $(call assert_boolean,ERRATA_A76_1275112))
775$(eval $(call add_define,ERRATA_A76_1275112))
776
Soby Mathew16d006b2019-05-03 13:17:56 +0100777# Process ERRATA_A76_1286807 flag
778$(eval $(call assert_boolean,ERRATA_A76_1286807))
779$(eval $(call add_define,ERRATA_A76_1286807))
780
johpow019603f982020-05-29 14:17:38 -0500781# Process ERRATA_A76_1791580 flag
782$(eval $(call assert_boolean,ERRATA_A76_1791580))
783$(eval $(call add_define,ERRATA_A76_1791580))
784
Manish V Badarkhe7672edf2020-08-03 18:43:14 +0100785# Process ERRATA_A76_1165522 flag
786$(eval $(call assert_boolean,ERRATA_A76_1165522))
787$(eval $(call add_define,ERRATA_A76_1165522))
788
johpow0181365e32020-09-29 17:19:09 -0500789# Process ERRATA_A76_1868343 flag
790$(eval $(call assert_boolean,ERRATA_A76_1868343))
791$(eval $(call add_define,ERRATA_A76_1868343))
792
johpow013e34e922020-12-15 19:02:18 -0600793# Process ERRATA_A76_1946160 flag
794$(eval $(call assert_boolean,ERRATA_A76_1946160))
795$(eval $(call add_define,ERRATA_A76_1946160))
796
laurenw-arm99ad9762020-07-14 14:18:34 -0500797# Process ERRATA_A77_1508412 flag
798$(eval $(call assert_boolean,ERRATA_A77_1508412))
799$(eval $(call add_define,ERRATA_A77_1508412))
800
johpow01a2fa12c2020-09-10 13:39:26 -0500801# Process ERRATA_A77_1925769 flag
802$(eval $(call assert_boolean,ERRATA_A77_1925769))
803$(eval $(call add_define,ERRATA_A77_1925769))
804
laurenw-armf5dbbef2021-03-23 13:09:35 -0500805# Process ERRATA_A77_1946167 flag
806$(eval $(call assert_boolean,ERRATA_A77_1946167))
807$(eval $(call add_define,ERRATA_A77_1946167))
808
johpow01eb146102021-05-03 13:37:13 -0500809# Process ERRATA_A77_1791578 flag
810$(eval $(call assert_boolean,ERRATA_A77_1791578))
811$(eval $(call add_define,ERRATA_A77_1791578))
812
Jimmy Brisson3571fb92020-06-01 10:18:22 -0500813# Process ERRATA_A78_1688305 flag
814$(eval $(call assert_boolean,ERRATA_A78_1688305))
815$(eval $(call add_define,ERRATA_A78_1688305))
Madhukar Pappireddy4efede72019-12-18 15:56:27 -0600816
johpow019131eb82020-10-06 17:55:25 -0500817# Process ERRATA_A78_1941498 flag
818$(eval $(call assert_boolean,ERRATA_A78_1941498))
819$(eval $(call add_define,ERRATA_A78_1941498))
820
johpow0185ea43d2020-10-07 15:08:01 -0500821# Process ERRATA_A78_1951500 flag
822$(eval $(call assert_boolean,ERRATA_A78_1951500))
823$(eval $(call add_define,ERRATA_A78_1951500))
824
johpow01b3e82942021-04-30 18:08:52 -0500825# Process ERRATA_A78_1821534 flag
826$(eval $(call assert_boolean,ERRATA_A78_1821534))
827$(eval $(call add_define,ERRATA_A78_1821534))
828
nayanpatel-arm80bf7a52021-08-11 13:33:00 -0700829# Process ERRATA_A78_1952683 flag
830$(eval $(call assert_boolean,ERRATA_A78_1952683))
831$(eval $(call add_define,ERRATA_A78_1952683))
832
nayanpatel-arm39e08652021-09-28 17:31:50 -0700833# Process ERRATA_A78_2132060 flag
834$(eval $(call assert_boolean,ERRATA_A78_2132060))
835$(eval $(call add_define,ERRATA_A78_2132060))
836
johpow0145c17242021-09-02 17:53:30 -0500837# Process ERRATA_A78_2242635 flag
838$(eval $(call assert_boolean,ERRATA_A78_2242635))
839$(eval $(call add_define,ERRATA_A78_2242635))
840
841# Process ERRATA_A78_AE_1941500 flag
842$(eval $(call assert_boolean,ERRATA_A78_AE_1941500))
843$(eval $(call add_define,ERRATA_A78_AE_1941500))
844
845# Process ERRATA_A78_AE_1951502 flag
846$(eval $(call assert_boolean,ERRATA_A78_AE_1951502))
847$(eval $(call add_define,ERRATA_A78_AE_1951502))
848
Varun Wadekar9030a6c2022-03-09 22:04:00 +0000849# Process ERRATA_A78_AE_2376748 flag
850$(eval $(call assert_boolean,ERRATA_A78_AE_2376748))
851$(eval $(call add_define,ERRATA_A78_AE_2376748))
852
Varun Wadekarac6bf2e2022-03-09 22:20:32 +0000853# Process ERRATA_A78_AE_2395408 flag
854$(eval $(call assert_boolean,ERRATA_A78_AE_2395408))
855$(eval $(call add_define,ERRATA_A78_AE_2395408))
856
John Tsichritzis56369c12019-02-19 13:49:06 +0000857# Process ERRATA_N1_1043202 flag
858$(eval $(call assert_boolean,ERRATA_N1_1043202))
859$(eval $(call add_define,ERRATA_N1_1043202))
Dimitris Papastamos7ca21db2018-03-26 16:46:01 +0100860
lauwal01bd555f42019-06-24 11:23:50 -0500861# Process ERRATA_N1_1073348 flag
862$(eval $(call assert_boolean,ERRATA_N1_1073348))
863$(eval $(call add_define,ERRATA_N1_1073348))
864
lauwal01363ee3c2019-06-24 11:28:34 -0500865# Process ERRATA_N1_1130799 flag
866$(eval $(call assert_boolean,ERRATA_N1_1130799))
867$(eval $(call add_define,ERRATA_N1_1130799))
868
lauwal01f2adb132019-06-24 11:32:40 -0500869# Process ERRATA_N1_1165347 flag
870$(eval $(call assert_boolean,ERRATA_N1_1165347))
871$(eval $(call add_define,ERRATA_N1_1165347))
872
lauwal01e1590442019-06-24 11:35:37 -0500873# Process ERRATA_N1_1207823 flag
874$(eval $(call assert_boolean,ERRATA_N1_1207823))
875$(eval $(call add_define,ERRATA_N1_1207823))
876
lauwal01197f14c2019-06-24 11:38:53 -0500877# Process ERRATA_N1_1220197 flag
878$(eval $(call assert_boolean,ERRATA_N1_1220197))
879$(eval $(call add_define,ERRATA_N1_1220197))
880
lauwal0107c2a232019-06-24 11:42:02 -0500881# Process ERRATA_N1_1257314 flag
882$(eval $(call assert_boolean,ERRATA_N1_1257314))
883$(eval $(call add_define,ERRATA_N1_1257314))
884
lauwal0142771af2019-06-24 11:44:58 -0500885# Process ERRATA_N1_1262606 flag
886$(eval $(call assert_boolean,ERRATA_N1_1262606))
887$(eval $(call add_define,ERRATA_N1_1262606))
888
lauwal0100396bf2019-06-24 11:47:30 -0500889# Process ERRATA_N1_1262888 flag
890$(eval $(call assert_boolean,ERRATA_N1_1262888))
891$(eval $(call add_define,ERRATA_N1_1262888))
892
lauwal01644b6ed2019-06-24 11:49:01 -0500893# Process ERRATA_N1_1275112 flag
894$(eval $(call assert_boolean,ERRATA_N1_1275112))
895$(eval $(call add_define,ERRATA_N1_1275112))
896
Andre Przywarab9347402019-05-20 14:57:06 +0100897# Process ERRATA_N1_1315703 flag
898$(eval $(call assert_boolean,ERRATA_N1_1315703))
899$(eval $(call add_define,ERRATA_N1_1315703))
900
laurenw-arm94accd32019-08-20 15:51:24 -0500901# Process ERRATA_N1_1542419 flag
902$(eval $(call assert_boolean,ERRATA_N1_1542419))
903$(eval $(call add_define,ERRATA_N1_1542419))
904
johpow01e2428fd2020-08-05 12:27:12 -0500905# Process ERRATA_N1_1868343 flag
906$(eval $(call assert_boolean,ERRATA_N1_1868343))
907$(eval $(call add_define,ERRATA_N1_1868343))
908
johpow01f1a84f52020-10-07 14:33:15 -0500909# Process ERRATA_N1_1946160 flag
910$(eval $(call assert_boolean,ERRATA_N1_1946160))
911$(eval $(call add_define,ERRATA_N1_1946160))
912
nayanpatel-arm277581e2021-08-06 17:46:10 -0700913# Process ERRATA_N2_2002655 flag
914$(eval $(call assert_boolean,ERRATA_N2_2002655))
915$(eval $(call add_define,ERRATA_N2_2002655))
916
laurenw-arm3c86d832021-08-02 13:22:32 -0500917# Process ERRATA_V1_1774420 flag
918$(eval $(call assert_boolean,ERRATA_V1_1774420))
919$(eval $(call add_define,ERRATA_V1_1774420))
920
johpow01c73b03c2021-05-03 15:33:39 -0500921# Process ERRATA_V1_1791573 flag
922$(eval $(call assert_boolean,ERRATA_V1_1791573))
923$(eval $(call add_define,ERRATA_V1_1791573))
924
laurenw-armb1923e92021-08-02 14:40:08 -0500925# Process ERRATA_V1_1852267 flag
926$(eval $(call assert_boolean,ERRATA_V1_1852267))
927$(eval $(call add_define,ERRATA_V1_1852267))
928
laurenw-arm6b56f962021-08-02 15:00:15 -0500929# Process ERRATA_V1_1925756 flag
930$(eval $(call assert_boolean,ERRATA_V1_1925756))
931$(eval $(call add_define,ERRATA_V1_1925756))
932
johpow0107acb4f2020-10-07 16:38:37 -0500933# Process ERRATA_V1_1940577 flag
934$(eval $(call assert_boolean,ERRATA_V1_1940577))
935$(eval $(call add_define,ERRATA_V1_1940577))
936
johpow0197db6752021-08-02 18:59:08 -0500937# Process ERRATA_V1_1966096 flag
938$(eval $(call assert_boolean,ERRATA_V1_1966096))
939$(eval $(call add_define,ERRATA_V1_1966096))
940
johpow01ad1ca342021-08-03 14:35:20 -0500941# Process ERRATA_V1_2139242 flag
942$(eval $(call assert_boolean,ERRATA_V1_2139242))
943$(eval $(call add_define,ERRATA_V1_2139242))
944
nayanpatel-armfc26ffe2021-09-28 13:41:03 -0700945# Process ERRATA_V1_2108267 flag
946$(eval $(call assert_boolean,ERRATA_V1_2108267))
947$(eval $(call add_define,ERRATA_V1_2108267))
948
johpow014de29cb2021-09-02 18:29:17 -0500949# Process ERRATA_V1_2216392 flag
950$(eval $(call assert_boolean,ERRATA_V1_2216392))
951$(eval $(call add_define,ERRATA_V1_2216392))
952
nayanpatel-arme55d3252021-08-06 16:39:48 -0700953# Process ERRATA_A710_1987031 flag
954$(eval $(call assert_boolean,ERRATA_A710_1987031))
955$(eval $(call add_define,ERRATA_A710_1987031))
956
nayanpatel-arm7597d082021-08-25 17:35:15 -0700957# Process ERRATA_A710_2081180 flag
958$(eval $(call assert_boolean,ERRATA_A710_2081180))
959$(eval $(call add_define,ERRATA_A710_2081180))
960
nayanpatel-arm0b338b42021-09-16 15:27:53 -0700961# Process ERRATA_A710_2083908 flag
962$(eval $(call assert_boolean,ERRATA_A710_2083908))
963$(eval $(call add_define,ERRATA_A710_2083908))
964
nayanpatel-armf2dce0e2021-09-22 12:35:03 -0700965# Process ERRATA_A710_2058056 flag
966$(eval $(call assert_boolean,ERRATA_A710_2058056))
967$(eval $(call add_define,ERRATA_A710_2058056))
968
johpow01de7b5242022-01-04 16:15:18 -0600969# Process ERRATA_A710_2055002 flag
970$(eval $(call assert_boolean,ERRATA_A710_2055002))
971$(eval $(call add_define,ERRATA_A710_2055002))
972
973# Process ERRATA_A710_2017096 flag
974$(eval $(call assert_boolean,ERRATA_A710_2017096))
975$(eval $(call add_define,ERRATA_A710_2017096))
976
977# Process ERRATA_A710_2267065 flag
978$(eval $(call assert_boolean,ERRATA_A710_2267065))
979$(eval $(call add_define,ERRATA_A710_2267065))
980
981# Process ERRATA_A710_2136059 flag
982$(eval $(call assert_boolean,ERRATA_A710_2136059))
983$(eval $(call add_define,ERRATA_A710_2136059))
984
johpow017249fd02022-02-28 18:34:04 -0600985# Process ERRATA_A710_2282622 flag
986$(eval $(call assert_boolean,ERRATA_A710_2282622))
987$(eval $(call add_define,ERRATA_A710_2282622))
988
Bipin Ravieb35e852021-03-30 16:08:32 -0500989# Process ERRATA_N2_2067956 flag
990$(eval $(call assert_boolean,ERRATA_N2_2067956))
991$(eval $(call add_define,ERRATA_N2_2067956))
992
Bipin Ravi7f565472021-03-31 10:10:27 -0500993# Process ERRATA_N2_2025414 flag
994$(eval $(call assert_boolean,ERRATA_N2_2025414))
995$(eval $(call add_define,ERRATA_N2_2025414))
996
Bipin Ravi7e030692021-08-30 13:02:51 -0500997# Process ERRATA_N2_2189731 flag
998$(eval $(call assert_boolean,ERRATA_N2_2189731))
999$(eval $(call add_define,ERRATA_N2_2189731))
1000
Bipin Ravi0ba631c2021-09-01 01:36:43 -05001001# Process ERRATA_N2_2138956 flag
1002$(eval $(call assert_boolean,ERRATA_N2_2138956))
1003$(eval $(call add_define,ERRATA_N2_2138956))
1004
nayanpatel-armd4c5f9c2021-09-28 09:46:45 -07001005# Process ERRATA_N2_2138953 flag
1006$(eval $(call assert_boolean,ERRATA_N2_2138953))
1007$(eval $(call add_define,ERRATA_N2_2138953))
1008
nayanpatel-arm2f153992021-10-06 15:31:24 -07001009# Process ERRATA_N2_2242415 flag
1010$(eval $(call assert_boolean,ERRATA_N2_2242415))
1011$(eval $(call add_define,ERRATA_N2_2242415))
1012
nayanpatel-arm8e1aa012021-10-20 18:28:58 -07001013# Process ERRATA_N2_2138958 flag
1014$(eval $(call assert_boolean,ERRATA_N2_2138958))
1015$(eval $(call add_define,ERRATA_N2_2138958))
1016
nayanpatel-armfed98132021-10-07 17:59:33 -07001017# Process ERRATA_N2_2242400 flag
1018$(eval $(call assert_boolean,ERRATA_N2_2242400))
1019$(eval $(call add_define,ERRATA_N2_2242400))
1020
nayanpatel-arm45b9f6f2021-10-20 17:30:46 -07001021# Process ERRATA_N2_2280757 flag
1022$(eval $(call assert_boolean,ERRATA_N2_2280757))
1023$(eval $(call add_define,ERRATA_N2_2280757))
1024
johpow010afef362021-12-02 13:25:50 -06001025# Process ERRATA_X2_2002765 flag
1026$(eval $(call assert_boolean,ERRATA_X2_2002765))
1027$(eval $(call add_define,ERRATA_X2_2002765))
1028
johpow01f6c37de2021-12-03 11:27:33 -06001029# Process ERRATA_X2_2058056 flag
1030$(eval $(call assert_boolean,ERRATA_X2_2058056))
1031$(eval $(call add_define,ERRATA_X2_2058056))
1032
johpow0115f10bd2021-12-01 17:40:39 -06001033# Process ERRATA_X2_2083908 flag
1034$(eval $(call assert_boolean,ERRATA_X2_2083908))
1035$(eval $(call add_define,ERRATA_X2_2083908))
1036
Bipin Ravi2f73d972022-01-20 00:01:04 -06001037# Process ERRATA_X2_2017096 flag
1038$(eval $(call assert_boolean,ERRATA_X2_2017096))
1039$(eval $(call add_define,ERRATA_X2_2017096))
1040
Bipin Ravi9ad54782022-01-20 00:42:05 -06001041# Process ERRATA_X2_2081180 flag
1042$(eval $(call assert_boolean,ERRATA_X2_2081180))
1043$(eval $(call add_define,ERRATA_X2_2081180))
1044
Bipin Ravi78b72082022-02-06 01:29:31 -06001045# Process ERRATA_X2_2216384 flag
1046$(eval $(call assert_boolean,ERRATA_X2_2216384))
1047$(eval $(call add_define,ERRATA_X2_2216384))
1048
johpow01de7b5242022-01-04 16:15:18 -06001049# Process ERRATA_A510_1922240 flag
1050$(eval $(call assert_boolean,ERRATA_A510_1922240))
1051$(eval $(call add_define,ERRATA_A510_1922240))
1052
johpow0149f60dd2022-01-06 14:54:49 -06001053# Process ERRATA_A510_2288014 flag
1054$(eval $(call assert_boolean,ERRATA_A510_2288014))
1055$(eval $(call add_define,ERRATA_A510_2288014))
1056
johpow018276f252022-01-07 17:12:31 -06001057# Process ERRATA_A510_2042739 flag
1058$(eval $(call assert_boolean,ERRATA_A510_2042739))
1059$(eval $(call add_define,ERRATA_A510_2042739))
1060
johpow015a993002022-01-11 17:54:41 -06001061# Process ERRATA_A510_2041909 flag
1062$(eval $(call assert_boolean,ERRATA_A510_2041909))
1063$(eval $(call add_define,ERRATA_A510_2041909))
1064
johpow013ba9cb22022-02-13 21:00:10 -06001065# Process ERRATA_A510_2250311 flag
1066$(eval $(call assert_boolean,ERRATA_A510_2250311))
1067$(eval $(call add_define,ERRATA_A510_2250311))
1068
johpow013ead2952022-02-14 20:19:08 -06001069# Process ERRATA_A510_2218950 flag
1070$(eval $(call assert_boolean,ERRATA_A510_2218950))
1071$(eval $(call add_define,ERRATA_A510_2218950))
1072
johpow01ac55c012022-02-15 22:55:22 -06001073# Process ERRATA_A510_2172148 flag
1074$(eval $(call assert_boolean,ERRATA_A510_2172148))
1075$(eval $(call add_define,ERRATA_A510_2172148))
1076
Louis Mayencourt4498b152019-04-09 16:29:01 +01001077# Process ERRATA_DSU_798953 flag
1078$(eval $(call assert_boolean,ERRATA_DSU_798953))
1079$(eval $(call add_define,ERRATA_DSU_798953))
1080
John Tsichritzis4daa1de2018-07-23 09:11:59 +01001081# Process ERRATA_DSU_936184 flag
1082$(eval $(call assert_boolean,ERRATA_DSU_936184))
1083$(eval $(call add_define,ERRATA_DSU_936184))
1084
Douglas Raillardd56fb042017-06-19 15:38:02 +01001085# Errata build flags
1086ifneq (${ERRATA_A53_843419},0)
Douglas Raillardd0c82732017-06-22 14:44:48 +01001087TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillardd56fb042017-06-19 15:38:02 +01001088endif
1089
1090ifneq (${ERRATA_A53_835769},0)
1091TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardd0c82732017-06-22 14:44:48 +01001092TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillardd56fb042017-06-19 15:38:02 +01001093endif
Manish V Badarkhe7672edf2020-08-03 18:43:14 +01001094
1095ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1096 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1097ERRATA_SPECULATIVE_AT := 1
1098else
1099ERRATA_SPECULATIVE_AT := 0
1100endif