xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision 100d4029a926a7d0df28072d9674787c09e37d85)
15541bb3fSSoby Mathew#
2e26c59d2Sjohpow01# Copyright (c) 2014-2021, ARM Limited and Contributors. All rights reserved.
3cd0ea184SVarun Wadekar# Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
45541bb3fSSoby Mathew#
582cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
65541bb3fSSoby Mathew#
75541bb3fSSoby Mathew
85541bb3fSSoby Mathew# Cortex A57 specific optimisation to skip L1 cache flush when
95541bb3fSSoby Mathew# cluster is powered down.
105541bb3fSSoby MathewSKIP_A57_L1_FLUSH_PWR_DWN	?=0
115541bb3fSSoby Mathew
1254035fc4SSandrine Bailleux# Flag to disable the cache non-temporal hint.
1354035fc4SSandrine Bailleux# It is enabled by default.
1454035fc4SSandrine BailleuxA53_DISABLE_NON_TEMPORAL_HINT	?=1
1554035fc4SSandrine Bailleux
1654035fc4SSandrine Bailleux# Flag to disable the cache non-temporal hint.
1754035fc4SSandrine Bailleux# It is enabled by default.
1854035fc4SSandrine BailleuxA57_DISABLE_NON_TEMPORAL_HINT	?=1
1954035fc4SSandrine Bailleux
20cd0ea184SVarun Wadekar# Flag to enable higher performance non-cacheable load forwarding.
21cd0ea184SVarun Wadekar# It is disabled by default.
22cd0ea184SVarun WadekarA57_ENABLE_NONCACHEABLE_LOAD_FWD	?= 0
23cd0ea184SVarun Wadekar
24f62ad322SDimitris PapastamosWORKAROUND_CVE_2017_5715	?=1
25b8a25bbbSDimitris PapastamosWORKAROUND_CVE_2018_3639	?=1
26fe007b2eSDimitris PapastamosDYNAMIC_WORKAROUND_CVE_2018_3639	?=0
27f62ad322SDimitris Papastamos
2825bbbd2dSJavier Almansa Sobrino# Flags to indicate internal or external Last level cache
29f2d6b4eeSManish Pandey# By default internal
3025bbbd2dSJavier Almansa SobrinoNEOVERSE_Nx_EXTERNAL_LLC	?=0
31f2d6b4eeSManish Pandey
32cd0ea184SVarun Wadekar# Process A57_ENABLE_NONCACHEABLE_LOAD_FWD flag
33cd0ea184SVarun Wadekar$(eval $(call assert_boolean,A57_ENABLE_NONCACHEABLE_LOAD_FWD))
34cd0ea184SVarun Wadekar$(eval $(call add_define,A57_ENABLE_NONCACHEABLE_LOAD_FWD))
35cd0ea184SVarun Wadekar
365541bb3fSSoby Mathew# Process SKIP_A57_L1_FLUSH_PWR_DWN flag
375541bb3fSSoby Mathew$(eval $(call assert_boolean,SKIP_A57_L1_FLUSH_PWR_DWN))
385541bb3fSSoby Mathew$(eval $(call add_define,SKIP_A57_L1_FLUSH_PWR_DWN))
395541bb3fSSoby Mathew
4054035fc4SSandrine Bailleux# Process A53_DISABLE_NON_TEMPORAL_HINT flag
4154035fc4SSandrine Bailleux$(eval $(call assert_boolean,A53_DISABLE_NON_TEMPORAL_HINT))
4254035fc4SSandrine Bailleux$(eval $(call add_define,A53_DISABLE_NON_TEMPORAL_HINT))
4354035fc4SSandrine Bailleux
4454035fc4SSandrine Bailleux# Process A57_DISABLE_NON_TEMPORAL_HINT flag
4554035fc4SSandrine Bailleux$(eval $(call assert_boolean,A57_DISABLE_NON_TEMPORAL_HINT))
4654035fc4SSandrine Bailleux$(eval $(call add_define,A57_DISABLE_NON_TEMPORAL_HINT))
4754035fc4SSandrine Bailleux
48f62ad322SDimitris Papastamos# Process WORKAROUND_CVE_2017_5715 flag
49f62ad322SDimitris Papastamos$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
50f62ad322SDimitris Papastamos$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
515541bb3fSSoby Mathew
52b8a25bbbSDimitris Papastamos# Process WORKAROUND_CVE_2018_3639 flag
53b8a25bbbSDimitris Papastamos$(eval $(call assert_boolean,WORKAROUND_CVE_2018_3639))
54b8a25bbbSDimitris Papastamos$(eval $(call add_define,WORKAROUND_CVE_2018_3639))
55b8a25bbbSDimitris Papastamos
56fe007b2eSDimitris Papastamos$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
57fe007b2eSDimitris Papastamos$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
58fe007b2eSDimitris Papastamos
5925bbbd2dSJavier Almansa Sobrino$(eval $(call assert_boolean,NEOVERSE_Nx_EXTERNAL_LLC))
6025bbbd2dSJavier Almansa Sobrino$(eval $(call add_define,NEOVERSE_Nx_EXTERNAL_LLC))
61f2d6b4eeSManish Pandey
62fe007b2eSDimitris Papastamosifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
63fe007b2eSDimitris Papastamos    ifeq (${WORKAROUND_CVE_2018_3639},0)
64fe007b2eSDimitris Papastamos        $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
65fe007b2eSDimitris Papastamos    endif
66fe007b2eSDimitris Papastamosendif
67fe007b2eSDimitris Papastamos
68097b787aSSandrine Bailleux# CPU Errata Build flags.
69097b787aSSandrine Bailleux# These should be enabled by the platform if the erratum workaround needs to be
70097b787aSSandrine Bailleux# applied.
715541bb3fSSoby Mathew
72dd4cf2c7SJoel Hutton# Flag to apply erratum 794073 workaround when disabling mmu.
73dd4cf2c7SJoel HuttonERRATA_A9_794073	?=0
74dd4cf2c7SJoel Hutton
7575a1ada9SAmbroise Vincent# Flag to apply erratum 816470 workaround during power down. This erratum
7675a1ada9SAmbroise Vincent# applies only to revision >= r3p0 of the Cortex A15 cpu.
7775a1ada9SAmbroise VincentERRATA_A15_816470	?=0
7875a1ada9SAmbroise Vincent
795f2c690dSAmbroise Vincent# Flag to apply erratum 827671 workaround during reset. This erratum applies
805f2c690dSAmbroise Vincent# only to revision >= r3p0 of the Cortex A15 cpu.
815f2c690dSAmbroise VincentERRATA_A15_827671	?=0
825f2c690dSAmbroise Vincent
830b64c194SAmbroise Vincent# Flag to apply erratum 852421 workaround during reset. This erratum applies
840b64c194SAmbroise Vincent# only to revision <= r1p2 of the Cortex A17 cpu.
850b64c194SAmbroise VincentERRATA_A17_852421	?=0
860b64c194SAmbroise Vincent
87be10dcdeSAmbroise Vincent# Flag to apply erratum 852423 workaround during reset. This erratum applies
88be10dcdeSAmbroise Vincent# only to revision <= r1p2 of the Cortex A17 cpu.
89be10dcdeSAmbroise VincentERRATA_A17_852423	?=0
90be10dcdeSAmbroise Vincent
91cba71b70SLouis Mayencourt# Flag to apply erratum 855472 workaround during reset. This erratum applies
92cba71b70SLouis Mayencourt# only to revision r0p0 of the Cortex A35 cpu.
93cba71b70SLouis MayencourtERRATA_A35_855472	?=0
94cba71b70SLouis Mayencourt
95bd393704SAmbroise Vincent# Flag to apply erratum 819472 workaround during reset. This erratum applies
96bd393704SAmbroise Vincent# only to revision <= r0p1 of the Cortex A53 cpu.
97bd393704SAmbroise VincentERRATA_A53_819472	?=0
98bd393704SAmbroise Vincent
99bd393704SAmbroise Vincent# Flag to apply erratum 824069 workaround during reset. This erratum applies
100bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
101bd393704SAmbroise VincentERRATA_A53_824069	?=0
102bd393704SAmbroise Vincent
103097b787aSSandrine Bailleux# Flag to apply erratum 826319 workaround during reset. This erratum applies
104097b787aSSandrine Bailleux# only to revision <= r0p2 of the Cortex A53 cpu.
1056b0d97b2SJimmy HuangERRATA_A53_826319	?=0
1066b0d97b2SJimmy Huang
107bd393704SAmbroise Vincent# Flag to apply erratum 827319 workaround during reset. This erratum applies
108bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
109bd393704SAmbroise VincentERRATA_A53_827319	?=0
110bd393704SAmbroise Vincent
111a94cc374SDouglas Raillard# Flag to apply erratum 835769 workaround at compile and link time.  This
112a94cc374SDouglas Raillard# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
113a94cc374SDouglas Raillard# workaround can lead the linker to create "*.stub" sections.
114a94cc374SDouglas RaillardERRATA_A53_835769	?=0
115a94cc374SDouglas Raillard
116097b787aSSandrine Bailleux# Flag to apply erratum 836870 workaround during reset. This erratum applies
117097b787aSSandrine Bailleux# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
1183fbe46d7SDouglas Raillard# erratum workaround is enabled by default in hardware.
1196b0d97b2SJimmy HuangERRATA_A53_836870	?=0
1206b0d97b2SJimmy Huang
121a94cc374SDouglas Raillard# Flag to apply erratum 843419 workaround at link time.
122a94cc374SDouglas Raillard# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
123a94cc374SDouglas Raillard# workaround could lead the linker to emit "*.stub" sections which are 4kB
124a94cc374SDouglas Raillard# aligned.
125a94cc374SDouglas RaillardERRATA_A53_843419	?=0
126a94cc374SDouglas Raillard
127b75dc0e4SAndre Przywara# Flag to apply errata 855873 during reset. This errata applies to all
128b75dc0e4SAndre Przywara# revisions of the Cortex A53 CPU, but this firmware workaround only works
129b75dc0e4SAndre Przywara# for revisions r0p3 and higher. Earlier revisions are taken care
130b75dc0e4SAndre Przywara# of by the rich OS.
131b75dc0e4SAndre PrzywaraERRATA_A53_855873	?=0
132b75dc0e4SAndre Przywara
133e1c49333SManish V Badarkhe# Flag to apply erratum 1530924 workaround during reset. This erratum applies
134e1c49333SManish V Badarkhe# to all revisions of Cortex A53 cpu.
135e1c49333SManish V BadarkheERRATA_A53_1530924	?=0
136e1c49333SManish V Badarkhe
1371afeee92SAmbroise Vincent# Flag to apply erratum 768277 workaround during reset. This erratum applies
1381afeee92SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1391afeee92SAmbroise VincentERRATA_A55_768277	?=0
1401afeee92SAmbroise Vincent
141a6cc6610SAmbroise Vincent# Flag to apply erratum 778703 workaround during reset. This erratum applies
142a6cc6610SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
143a6cc6610SAmbroise VincentERRATA_A55_778703	?=0
144a6cc6610SAmbroise Vincent
1456ab87d29SAmbroise Vincent# Flag to apply erratum 798797 workaround during reset. This erratum applies
1466ab87d29SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1476ab87d29SAmbroise VincentERRATA_A55_798797	?=0
1486ab87d29SAmbroise Vincent
1496e78973eSAmbroise Vincent# Flag to apply erratum 846532 workaround during reset. This erratum applies
1506e78973eSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
1516e78973eSAmbroise VincentERRATA_A55_846532	?=0
1526e78973eSAmbroise Vincent
15347949f3fSAmbroise Vincent# Flag to apply erratum 903758 workaround during reset. This erratum applies
15447949f3fSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
15547949f3fSAmbroise VincentERRATA_A55_903758	?=0
15647949f3fSAmbroise Vincent
1579af07df0SAmbroise Vincent# Flag to apply erratum 1221012 workaround during reset. This erratum applies
1589af07df0SAmbroise Vincent# only to revision <= r1p0 of the Cortex A55 cpu.
1599af07df0SAmbroise VincentERRATA_A55_1221012	?=0
1609af07df0SAmbroise Vincent
161e1c49333SManish V Badarkhe# Flag to apply erratum 1530923 workaround during reset. This erratum applies
162e1c49333SManish V Badarkhe# to all revisions of Cortex A55 cpu.
163e1c49333SManish V BadarkheERRATA_A55_1530923	?=0
164e1c49333SManish V Badarkhe
165097b787aSSandrine Bailleux# Flag to apply erratum 806969 workaround during reset. This erratum applies
166097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1675541bb3fSSoby MathewERRATA_A57_806969	?=0
1685541bb3fSSoby Mathew
169ccbec91cSAntonio Nino Diaz# Flag to apply erratum 813419 workaround during reset. This erratum applies
170ccbec91cSAntonio Nino Diaz# only to revision r0p0 of the Cortex A57 cpu.
171ccbec91cSAntonio Nino DiazERRATA_A57_813419	?=0
172ccbec91cSAntonio Nino Diaz
173097b787aSSandrine Bailleux# Flag to apply erratum 813420  workaround during reset. This erratum applies
174097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1755541bb3fSSoby MathewERRATA_A57_813420	?=0
1765541bb3fSSoby Mathew
1770f6fbbd2SAmbroise Vincent# Flag to apply erratum 814670  workaround during reset. This erratum applies
1780f6fbbd2SAmbroise Vincent# only to revision r0p0 of the Cortex A57 cpu.
1790f6fbbd2SAmbroise VincentERRATA_A57_814670	?=0
1800f6fbbd2SAmbroise Vincent
1815bd2c24fSAmbroise Vincent# Flag to apply erratum 817169 workaround during power down. This erratum
1825bd2c24fSAmbroise Vincent# applies only to revision <= r0p1 of the Cortex A57 cpu.
1835bd2c24fSAmbroise VincentERRATA_A57_817169	?=0
1845bd2c24fSAmbroise Vincent
185df22d602SSandrine Bailleux# Flag to apply erratum 826974 workaround during reset. This erratum applies
186df22d602SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
187df22d602SSandrine BailleuxERRATA_A57_826974	?=0
188df22d602SSandrine Bailleux
18907288865SSandrine Bailleux# Flag to apply erratum 826977 workaround during reset. This erratum applies
19007288865SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
19107288865SSandrine BailleuxERRATA_A57_826977	?=0
19207288865SSandrine Bailleux
193a8b1c769SSandrine Bailleux# Flag to apply erratum 828024 workaround during reset. This erratum applies
194a8b1c769SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
195a8b1c769SSandrine BailleuxERRATA_A57_828024	?=0
196a8b1c769SSandrine Bailleux
1970b77197bSSandrine Bailleux# Flag to apply erratum 829520 workaround during reset. This erratum applies
1980b77197bSSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
1990b77197bSSandrine BailleuxERRATA_A57_829520	?=0
2000b77197bSSandrine Bailleux
201adeecf92SSandrine Bailleux# Flag to apply erratum 833471 workaround during reset. This erratum applies
202adeecf92SSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
203adeecf92SSandrine BailleuxERRATA_A57_833471	?=0
204adeecf92SSandrine Bailleux
20545b52c20SEleanor Bonnici# Flag to apply erratum 855972 workaround during reset. This erratum applies
20645b52c20SEleanor Bonnici# only to revision <= r1p3 of the Cortex A57 cpu.
20745b52c20SEleanor BonniciERRATA_A57_859972	?=0
20845b52c20SEleanor Bonnici
209e1c49333SManish V Badarkhe# Flag to apply erratum 1319537 workaround during reset. This erratum applies
210e1c49333SManish V Badarkhe# to all revisions of Cortex A57 cpu.
211e1c49333SManish V BadarkheERRATA_A57_1319537	?=0
212e1c49333SManish V Badarkhe
2136de9b336SEleanor Bonnici# Flag to apply erratum 855971 workaround during reset. This erratum applies
2146de9b336SEleanor Bonnici# only to revision <= r0p3 of the Cortex A72 cpu.
2156de9b336SEleanor BonniciERRATA_A72_859971	?=0
2166de9b336SEleanor Bonnici
217e1c49333SManish V Badarkhe# Flag to apply erratum 1319367 workaround during reset. This erratum applies
218e1c49333SManish V Badarkhe# to all revisions of Cortex A72 cpu.
219e1c49333SManish V BadarkheERRATA_A72_1319367	?=0
220e1c49333SManish V Badarkhe
22125278eabSLouis Mayencourt# Flag to apply erratum 852427 workaround during reset. This erratum applies
22225278eabSLouis Mayencourt# only to revision r0p0 of the Cortex A73 cpu.
22325278eabSLouis MayencourtERRATA_A73_852427	?=0
22425278eabSLouis Mayencourt
225e6cab15dSLouis Mayencourt# Flag to apply erratum 855423 workaround during reset. This erratum applies
226e6cab15dSLouis Mayencourt# only to revision <= r0p1 of the Cortex A73 cpu.
227e6cab15dSLouis MayencourtERRATA_A73_855423	?=0
228e6cab15dSLouis Mayencourt
2295f5d1ed7SLouis Mayencourt# Flag to apply erratum 764081 workaround during reset. This erratum applies
2305f5d1ed7SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
2315f5d1ed7SLouis MayencourtERRATA_A75_764081	?=0
2325f5d1ed7SLouis Mayencourt
23398551591SLouis Mayencourt# Flag to apply erratum 790748 workaround during reset. This erratum applies
23498551591SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
23598551591SLouis MayencourtERRATA_A75_790748	?=0
23698551591SLouis Mayencourt
2375c6aa01aSLouis Mayencourt# Flag to apply erratum 1073348 workaround during reset. This erratum applies
2385c6aa01aSLouis Mayencourt# only to revision <= r1p0 of the Cortex A76 cpu.
2395c6aa01aSLouis MayencourtERRATA_A76_1073348	?=0
2405c6aa01aSLouis Mayencourt
241508d7110SLouis Mayencourt# Flag to apply erratum 1130799 workaround during reset. This erratum applies
242508d7110SLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
243508d7110SLouis MayencourtERRATA_A76_1130799	?=0
244508d7110SLouis Mayencourt
2455cc8c7baSLouis Mayencourt# Flag to apply erratum 1220197 workaround during reset. This erratum applies
2465cc8c7baSLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
2475cc8c7baSLouis MayencourtERRATA_A76_1220197	?=0
2485cc8c7baSLouis Mayencourt
249e6e1d0acSSoby Mathew# Flag to apply erratum 1257314 workaround during reset. This erratum applies
250e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
251e6e1d0acSSoby MathewERRATA_A76_1257314	?=0
252e6e1d0acSSoby Mathew
253e6e1d0acSSoby Mathew# Flag to apply erratum 1262606 workaround during reset. This erratum applies
254e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
255e6e1d0acSSoby MathewERRATA_A76_1262606	?=0
256e6e1d0acSSoby Mathew
257e6e1d0acSSoby Mathew# Flag to apply erratum 1262888 workaround during reset. This erratum applies
258e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
259e6e1d0acSSoby MathewERRATA_A76_1262888	?=0
260e6e1d0acSSoby Mathew
261e6e1d0acSSoby Mathew# Flag to apply erratum 1275112 workaround during reset. This erratum applies
262e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
263e6e1d0acSSoby MathewERRATA_A76_1275112	?=0
264e6e1d0acSSoby Mathew
265f85edceaSSoby Mathew# Flag to apply erratum 1286807 workaround during reset. This erratum applies
266f85edceaSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
267f85edceaSSoby MathewERRATA_A76_1286807	?=0
268f85edceaSSoby Mathew
269d7b08e69Sjohpow01# Flag to apply erratum 1791580 workaround during reset. This erratum applies
270d7b08e69Sjohpow01# only to revision <= r4p0 of the Cortex A76 cpu.
271d7b08e69Sjohpow01ERRATA_A76_1791580	?=0
272d7b08e69Sjohpow01
273e1c49333SManish V Badarkhe# Flag to apply erratum 1165522 workaround during reset. This erratum applies
274e1c49333SManish V Badarkhe# to all revisions of Cortex A76 cpu.
275e1c49333SManish V BadarkheERRATA_A76_1165522	?=0
276e1c49333SManish V Badarkhe
27755ff05f3Sjohpow01# Flag to apply erratum 1868343 workaround during reset. This erratum applies
27855ff05f3Sjohpow01# only to revision <= r4p0 of the Cortex A76 cpu.
27955ff05f3Sjohpow01ERRATA_A76_1868343	?=0
28055ff05f3Sjohpow01
2813f0d8369Sjohpow01# Flag to apply erratum 1946160 workaround during reset. This erratum applies
2823f0d8369Sjohpow01# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
2833f0d8369Sjohpow01ERRATA_A76_1946160	?=0
2843f0d8369Sjohpow01
285aa3efe3dSlaurenw-arm# Flag to apply erratum 1508412 workaround during reset. This erratum applies
286aa3efe3dSlaurenw-arm# only to revision <= r1p0 of the Cortex A77 cpu.
287aa3efe3dSlaurenw-armERRATA_A77_1508412	?=0
288aa3efe3dSlaurenw-arm
28935c75377Sjohpow01# Flag to apply erratum 1925769 workaround during reset. This erratum applies
29035c75377Sjohpow01# only to revision <= r1p1 of the Cortex A77 cpu.
29135c75377Sjohpow01ERRATA_A77_1925769	?=0
29235c75377Sjohpow01
293a492edc4Slaurenw-arm# Flag to apply erratum 1946167 workaround during reset. This erratum applies
294a492edc4Slaurenw-arm# only to revision <= r1p1 of the Cortex A77 cpu.
295a492edc4Slaurenw-armERRATA_A77_1946167	?=0
296a492edc4Slaurenw-arm
2973f0bec7cSjohpow01# Flag to apply erratum 1791578 workaround during reset. This erratum applies
2983f0bec7cSjohpow01# to revisions r0p0, r1p0, and r1p1, it is still open.
2993f0bec7cSjohpow01ERRATA_A77_1791578	?=0
3003f0bec7cSjohpow01
30183e95524SMadhukar Pappireddy# Flag to apply erratum 1688305 workaround during reset. This erratum applies
3023f35709cSJimmy Brisson# to revisions r0p0 - r1p0 of the A78 cpu.
3033f35709cSJimmy BrissonERRATA_A78_1688305	?=0
30483e95524SMadhukar Pappireddy
305e26c59d2Sjohpow01# Flag to apply erratum 1941498 workaround during reset. This erratum applies
306e26c59d2Sjohpow01# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
307e26c59d2Sjohpow01ERRATA_A78_1941498	?=0
308e26c59d2Sjohpow01
3093a2710dcSjohpow01# Flag to apply erratum 1951500 workaround during reset. This erratum applies
3103a2710dcSjohpow01# to revisions r1p0 and r1p1 of the A78 cpu.  The issue is present in r0p0 as
3113a2710dcSjohpow01# well but there is no workaround for that revision.
3123a2710dcSjohpow01ERRATA_A78_1951500	?=0
3133a2710dcSjohpow01
3141a691455Sjohpow01# Flag to apply erratum 1821534 workaround during reset. This erratum applies
3151a691455Sjohpow01# to revisions r0p0 and r1p0 of the A78 cpu.
3161a691455Sjohpow01ERRATA_A78_1821534	?=0
3171a691455Sjohpow01
318040b546eSDimitris Papastamos# Flag to apply T32 CLREX workaround during reset. This erratum applies
319da6d75a0SJohn Tsichritzis# only to r0p0 and r1p0 of the Neoverse N1 cpu.
320dbafda7cSlaurenw-armERRATA_N1_1043202	?=0
321040b546eSDimitris Papastamos
322a601afe1Slauwal01# Flag to apply erratum 1073348 workaround during reset. This erratum applies
323a601afe1Slauwal01# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
324a601afe1Slauwal01ERRATA_N1_1073348	?=0
325a601afe1Slauwal01
326e34606f2Slauwal01# Flag to apply erratum 1130799 workaround during reset. This erratum applies
327e34606f2Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
328e34606f2Slauwal01ERRATA_N1_1130799	?=0
329e34606f2Slauwal01
3302017ab24Slauwal01# Flag to apply erratum 1165347 workaround during reset. This erratum applies
3312017ab24Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
3322017ab24Slauwal01ERRATA_N1_1165347	?=0
3332017ab24Slauwal01
334ef5fa7d4Slauwal01# Flag to apply erratum 1207823 workaround during reset. This erratum applies
335ef5fa7d4Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
336ef5fa7d4Slauwal01ERRATA_N1_1207823	?=0
337ef5fa7d4Slauwal01
3389eceb020Slauwal01# Flag to apply erratum 1220197 workaround during reset. This erratum applies
3399eceb020Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
3409eceb020Slauwal01ERRATA_N1_1220197	?=0
3419eceb020Slauwal01
342335b3c79Slauwal01# Flag to apply erratum 1257314 workaround during reset. This erratum applies
343335b3c79Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
344335b3c79Slauwal01ERRATA_N1_1257314	?=0
345335b3c79Slauwal01
346411f4959Slauwal01# Flag to apply erratum 1262606 workaround during reset. This erratum applies
347411f4959Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
348411f4959Slauwal01ERRATA_N1_1262606	?=0
349411f4959Slauwal01
35011c48370Slauwal01# Flag to apply erratum 1262888 workaround during reset. This erratum applies
35111c48370Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
35211c48370Slauwal01ERRATA_N1_1262888	?=0
35311c48370Slauwal01
3544d8801feSlauwal01# Flag to apply erratum 1275112 workaround during reset. This erratum applies
3554d8801feSlauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
3564d8801feSlauwal01ERRATA_N1_1275112	?=0
3574d8801feSlauwal01
3585f5d0763SAndre Przywara# Flag to apply erratum 1315703 workaround during reset. This erratum applies
3595f5d0763SAndre Przywara# to revisions before r3p1 of the Neoverse N1 cpu.
360dbafda7cSlaurenw-armERRATA_N1_1315703	?=0
3615f5d0763SAndre Przywara
36280942622Slaurenw-arm# Flag to apply erratum 1542419 workaround during reset. This erratum applies
36380942622Slaurenw-arm# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
36480942622Slaurenw-armERRATA_N1_1542419	?=0
36580942622Slaurenw-arm
36661f0ffc4Sjohpow01# Flag to apply erratum 1868343 workaround during reset. This erratum applies
36761f0ffc4Sjohpow01# to revision <= r4p0 of the Neoverse N1 cpu.
36861f0ffc4Sjohpow01ERRATA_N1_1868343	?=0
36961f0ffc4Sjohpow01
370263ee781Sjohpow01# Flag to apply erratum 1946160 workaround during reset. This erratum applies
371263ee781Sjohpow01# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu.  The issue
372263ee781Sjohpow01# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
373263ee781Sjohpow01ERRATA_N1_1946160	?=0
374263ee781Sjohpow01
3754789cf66Slaurenw-arm# Flag to apply erratum 1774420 workaround during reset.  This erratum applies
3764789cf66Slaurenw-arm# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
3774789cf66Slaurenw-armERRATA_V1_1774420	?=0
3784789cf66Slaurenw-arm
37933e3e925Sjohpow01# Flag to apply erratum 1791573 workaround during reset.  This erratum applies
38033e3e925Sjohpow01# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
38133e3e925Sjohpow01ERRATA_V1_1791573	?=0
38233e3e925Sjohpow01
383143b1965Slaurenw-arm# Flag to apply erratum 1852267 workaround during reset.  This erratum applies
384143b1965Slaurenw-arm# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
385143b1965Slaurenw-armERRATA_V1_1852267	?=0
386143b1965Slaurenw-arm
387741dd04cSlaurenw-arm# Flag to apply erratum 1925756 workaround during reset.  This needs to be
388741dd04cSlaurenw-arm# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
389741dd04cSlaurenw-armERRATA_V1_1925756	?=0
390741dd04cSlaurenw-arm
391182ce101Sjohpow01# Flag to apply erratum 1940577 workaround during reset. This erratum applies
392182ce101Sjohpow01# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
393182ce101Sjohpow01ERRATA_V1_1940577	?=0
394182ce101Sjohpow01
3951a8804c3Sjohpow01# Flag to apply erratum 1966096 workaround during reset. This erratum applies
3961a8804c3Sjohpow01# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open.  This issue
3971a8804c3Sjohpow01# exists in r0p0 as well but there is no workaround for that revision.
3981a8804c3Sjohpow01ERRATA_V1_1966096   ?=0
3991a8804c3Sjohpow01
400*100d4029Sjohpow01# Flag to apply erratum 2139242 workaround during reset. This erratum applies
401*100d4029Sjohpow01# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
402*100d4029Sjohpow01ERRATA_V1_2139242   ?=0
403*100d4029Sjohpow01
4040e985d70SLouis Mayencourt# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
4050e985d70SLouis Mayencourt# Applying the workaround results in higher DSU power consumption on idle.
4060e985d70SLouis MayencourtERRATA_DSU_798953	?=0
4070e985d70SLouis Mayencourt
4088a677180SJohn Tsichritzis# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
4098a677180SJohn Tsichritzis# the ACP interface and revision < r2p0. Applying the workaround results in
4108a677180SJohn Tsichritzis# higher DSU power consumption on idle.
4118a677180SJohn TsichritzisERRATA_DSU_936184	?=0
4128a677180SJohn Tsichritzis
413dd4cf2c7SJoel Hutton# Process ERRATA_A9_794073 flag
414dd4cf2c7SJoel Hutton$(eval $(call assert_boolean,ERRATA_A9_794073))
415dd4cf2c7SJoel Hutton$(eval $(call add_define,ERRATA_A9_794073))
416dd4cf2c7SJoel Hutton
41775a1ada9SAmbroise Vincent# Process ERRATA_A15_816470 flag
41875a1ada9SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_816470))
41975a1ada9SAmbroise Vincent$(eval $(call add_define,ERRATA_A15_816470))
42075a1ada9SAmbroise Vincent
4215f2c690dSAmbroise Vincent# Process ERRATA_A15_827671 flag
4225f2c690dSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_827671))
4235f2c690dSAmbroise Vincent$(eval $(call add_define,ERRATA_A15_827671))
4245f2c690dSAmbroise Vincent
4250b64c194SAmbroise Vincent# Process ERRATA_A17_852421 flag
4260b64c194SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852421))
4270b64c194SAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852421))
4280b64c194SAmbroise Vincent
429be10dcdeSAmbroise Vincent# Process ERRATA_A17_852423 flag
430be10dcdeSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852423))
431be10dcdeSAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852423))
432be10dcdeSAmbroise Vincent
433cba71b70SLouis Mayencourt# Process ERRATA_A35_855472 flag
434cba71b70SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A35_855472))
435cba71b70SLouis Mayencourt$(eval $(call add_define,ERRATA_A35_855472))
436cba71b70SLouis Mayencourt
437bd393704SAmbroise Vincent# Process ERRATA_A53_819472 flag
438bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_819472))
439bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_819472))
440bd393704SAmbroise Vincent
441bd393704SAmbroise Vincent# Process ERRATA_A53_824069 flag
442bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_824069))
443bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_824069))
444bd393704SAmbroise Vincent
4456b0d97b2SJimmy Huang# Process ERRATA_A53_826319 flag
4466b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_826319))
4476b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_826319))
4486b0d97b2SJimmy Huang
449bd393704SAmbroise Vincent# Process ERRATA_A53_827319 flag
450bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_827319))
451bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_827319))
452bd393704SAmbroise Vincent
453a94cc374SDouglas Raillard# Process ERRATA_A53_835769 flag
454a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_835769))
455a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_835769))
456a94cc374SDouglas Raillard
4576b0d97b2SJimmy Huang# Process ERRATA_A53_836870 flag
4586b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_836870))
4596b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_836870))
4606b0d97b2SJimmy Huang
461a94cc374SDouglas Raillard# Process ERRATA_A53_843419 flag
462a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_843419))
463a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_843419))
464a94cc374SDouglas Raillard
465b75dc0e4SAndre Przywara# Process ERRATA_A53_855873 flag
466b75dc0e4SAndre Przywara$(eval $(call assert_boolean,ERRATA_A53_855873))
467b75dc0e4SAndre Przywara$(eval $(call add_define,ERRATA_A53_855873))
468b75dc0e4SAndre Przywara
469e1c49333SManish V Badarkhe# Process ERRATA_A53_1530924 flag
470e1c49333SManish V Badarkhe$(eval $(call assert_boolean,ERRATA_A53_1530924))
471e1c49333SManish V Badarkhe$(eval $(call add_define,ERRATA_A53_1530924))
472e1c49333SManish V Badarkhe
4731afeee92SAmbroise Vincent# Process ERRATA_A55_768277 flag
4741afeee92SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_768277))
4751afeee92SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_768277))
4761afeee92SAmbroise Vincent
477a6cc6610SAmbroise Vincent# Process ERRATA_A55_778703 flag
478a6cc6610SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_778703))
479a6cc6610SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_778703))
480a6cc6610SAmbroise Vincent
4816ab87d29SAmbroise Vincent# Process ERRATA_A55_798797 flag
4826ab87d29SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_798797))
4836ab87d29SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_798797))
4846ab87d29SAmbroise Vincent
4856e78973eSAmbroise Vincent# Process ERRATA_A55_846532 flag
4866e78973eSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_846532))
4876e78973eSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_846532))
4886e78973eSAmbroise Vincent
48947949f3fSAmbroise Vincent# Process ERRATA_A55_903758 flag
49047949f3fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_903758))
49147949f3fSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_903758))
49247949f3fSAmbroise Vincent
4939af07df0SAmbroise Vincent# Process ERRATA_A55_1221012 flag
4949af07df0SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_1221012))
4959af07df0SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_1221012))
4969af07df0SAmbroise Vincent
497e1c49333SManish V Badarkhe# Process ERRATA_A55_1530923 flag
498e1c49333SManish V Badarkhe$(eval $(call assert_boolean,ERRATA_A55_1530923))
499e1c49333SManish V Badarkhe$(eval $(call add_define,ERRATA_A55_1530923))
500e1c49333SManish V Badarkhe
5015541bb3fSSoby Mathew# Process ERRATA_A57_806969 flag
5025541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_806969))
5035541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_806969))
5045541bb3fSSoby Mathew
505ccbec91cSAntonio Nino Diaz# Process ERRATA_A57_813419 flag
506ccbec91cSAntonio Nino Diaz$(eval $(call assert_boolean,ERRATA_A57_813419))
507ccbec91cSAntonio Nino Diaz$(eval $(call add_define,ERRATA_A57_813419))
508ccbec91cSAntonio Nino Diaz
5095541bb3fSSoby Mathew# Process ERRATA_A57_813420 flag
5105541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_813420))
5115541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_813420))
512df22d602SSandrine Bailleux
5130f6fbbd2SAmbroise Vincent# Process ERRATA_A57_814670 flag
5140f6fbbd2SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_814670))
5150f6fbbd2SAmbroise Vincent$(eval $(call add_define,ERRATA_A57_814670))
5160f6fbbd2SAmbroise Vincent
5175bd2c24fSAmbroise Vincent# Process ERRATA_A57_817169 flag
5185bd2c24fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_817169))
5195bd2c24fSAmbroise Vincent$(eval $(call add_define,ERRATA_A57_817169))
5205bd2c24fSAmbroise Vincent
521df22d602SSandrine Bailleux# Process ERRATA_A57_826974 flag
522df22d602SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826974))
523df22d602SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826974))
524a8b1c769SSandrine Bailleux
52507288865SSandrine Bailleux# Process ERRATA_A57_826977 flag
52607288865SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826977))
52707288865SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826977))
52807288865SSandrine Bailleux
529a8b1c769SSandrine Bailleux# Process ERRATA_A57_828024 flag
530a8b1c769SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_828024))
531a8b1c769SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_828024))
5320b77197bSSandrine Bailleux
5330b77197bSSandrine Bailleux# Process ERRATA_A57_829520 flag
5340b77197bSSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_829520))
5350b77197bSSandrine Bailleux$(eval $(call add_define,ERRATA_A57_829520))
536adeecf92SSandrine Bailleux
537adeecf92SSandrine Bailleux# Process ERRATA_A57_833471 flag
538adeecf92SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_833471))
539adeecf92SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_833471))
540a94cc374SDouglas Raillard
54145b52c20SEleanor Bonnici# Process ERRATA_A57_859972 flag
54245b52c20SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A57_859972))
54345b52c20SEleanor Bonnici$(eval $(call add_define,ERRATA_A57_859972))
54445b52c20SEleanor Bonnici
545e1c49333SManish V Badarkhe# Process ERRATA_A57_1319537 flag
546e1c49333SManish V Badarkhe$(eval $(call assert_boolean,ERRATA_A57_1319537))
547e1c49333SManish V Badarkhe$(eval $(call add_define,ERRATA_A57_1319537))
548e1c49333SManish V Badarkhe
5496de9b336SEleanor Bonnici# Process ERRATA_A72_859971 flag
5506de9b336SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A72_859971))
5516de9b336SEleanor Bonnici$(eval $(call add_define,ERRATA_A72_859971))
5526de9b336SEleanor Bonnici
553e1c49333SManish V Badarkhe# Process ERRATA_A72_1319367 flag
554e1c49333SManish V Badarkhe$(eval $(call assert_boolean,ERRATA_A72_1319367))
555e1c49333SManish V Badarkhe$(eval $(call add_define,ERRATA_A72_1319367))
556e1c49333SManish V Badarkhe
55725278eabSLouis Mayencourt# Process ERRATA_A73_852427 flag
55825278eabSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_852427))
55925278eabSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_852427))
56025278eabSLouis Mayencourt
561e6cab15dSLouis Mayencourt# Process ERRATA_A73_855423 flag
562e6cab15dSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_855423))
563e6cab15dSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_855423))
564e6cab15dSLouis Mayencourt
5655f5d1ed7SLouis Mayencourt# Process ERRATA_A75_764081 flag
5665f5d1ed7SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_764081))
5675f5d1ed7SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_764081))
5685f5d1ed7SLouis Mayencourt
56998551591SLouis Mayencourt# Process ERRATA_A75_790748 flag
57098551591SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_790748))
57198551591SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_790748))
57298551591SLouis Mayencourt
5735c6aa01aSLouis Mayencourt# Process ERRATA_A76_1073348 flag
5745c6aa01aSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1073348))
5755c6aa01aSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1073348))
5765c6aa01aSLouis Mayencourt
577508d7110SLouis Mayencourt# Process ERRATA_A76_1130799 flag
578508d7110SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1130799))
579508d7110SLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1130799))
580508d7110SLouis Mayencourt
5815cc8c7baSLouis Mayencourt# Process ERRATA_A76_1220197 flag
5825cc8c7baSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1220197))
5835cc8c7baSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1220197))
5845cc8c7baSLouis Mayencourt
585e6e1d0acSSoby Mathew# Process ERRATA_A76_1257314 flag
586e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1257314))
587e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1257314))
588e6e1d0acSSoby Mathew
589e6e1d0acSSoby Mathew# Process ERRATA_A76_1262606 flag
590e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1262606))
591e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1262606))
592e6e1d0acSSoby Mathew
593e6e1d0acSSoby Mathew# Process ERRATA_A76_1262888 flag
594e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1262888))
595e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1262888))
596e6e1d0acSSoby Mathew
597e6e1d0acSSoby Mathew# Process ERRATA_A76_1275112 flag
598e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1275112))
599e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1275112))
600e6e1d0acSSoby Mathew
601f85edceaSSoby Mathew# Process ERRATA_A76_1286807 flag
602f85edceaSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1286807))
603f85edceaSSoby Mathew$(eval $(call add_define,ERRATA_A76_1286807))
604f85edceaSSoby Mathew
605d7b08e69Sjohpow01# Process ERRATA_A76_1791580 flag
606d7b08e69Sjohpow01$(eval $(call assert_boolean,ERRATA_A76_1791580))
607d7b08e69Sjohpow01$(eval $(call add_define,ERRATA_A76_1791580))
608d7b08e69Sjohpow01
609e1c49333SManish V Badarkhe# Process ERRATA_A76_1165522 flag
610e1c49333SManish V Badarkhe$(eval $(call assert_boolean,ERRATA_A76_1165522))
611e1c49333SManish V Badarkhe$(eval $(call add_define,ERRATA_A76_1165522))
612e1c49333SManish V Badarkhe
61355ff05f3Sjohpow01# Process ERRATA_A76_1868343 flag
61455ff05f3Sjohpow01$(eval $(call assert_boolean,ERRATA_A76_1868343))
61555ff05f3Sjohpow01$(eval $(call add_define,ERRATA_A76_1868343))
61655ff05f3Sjohpow01
6173f0d8369Sjohpow01# Process ERRATA_A76_1946160 flag
6183f0d8369Sjohpow01$(eval $(call assert_boolean,ERRATA_A76_1946160))
6193f0d8369Sjohpow01$(eval $(call add_define,ERRATA_A76_1946160))
6203f0d8369Sjohpow01
621aa3efe3dSlaurenw-arm# Process ERRATA_A77_1508412 flag
622aa3efe3dSlaurenw-arm$(eval $(call assert_boolean,ERRATA_A77_1508412))
623aa3efe3dSlaurenw-arm$(eval $(call add_define,ERRATA_A77_1508412))
624aa3efe3dSlaurenw-arm
62535c75377Sjohpow01# Process ERRATA_A77_1925769 flag
62635c75377Sjohpow01$(eval $(call assert_boolean,ERRATA_A77_1925769))
62735c75377Sjohpow01$(eval $(call add_define,ERRATA_A77_1925769))
62835c75377Sjohpow01
629a492edc4Slaurenw-arm# Process ERRATA_A77_1946167 flag
630a492edc4Slaurenw-arm$(eval $(call assert_boolean,ERRATA_A77_1946167))
631a492edc4Slaurenw-arm$(eval $(call add_define,ERRATA_A77_1946167))
632a492edc4Slaurenw-arm
6333f0bec7cSjohpow01# Process ERRATA_A77_1791578 flag
6343f0bec7cSjohpow01$(eval $(call assert_boolean,ERRATA_A77_1791578))
6353f0bec7cSjohpow01$(eval $(call add_define,ERRATA_A77_1791578))
6363f0bec7cSjohpow01
6373f35709cSJimmy Brisson# Process ERRATA_A78_1688305 flag
6383f35709cSJimmy Brisson$(eval $(call assert_boolean,ERRATA_A78_1688305))
6393f35709cSJimmy Brisson$(eval $(call add_define,ERRATA_A78_1688305))
64083e95524SMadhukar Pappireddy
641e26c59d2Sjohpow01# Process ERRATA_A78_1941498 flag
642e26c59d2Sjohpow01$(eval $(call assert_boolean,ERRATA_A78_1941498))
643e26c59d2Sjohpow01$(eval $(call add_define,ERRATA_A78_1941498))
644e26c59d2Sjohpow01
6453a2710dcSjohpow01# Process ERRATA_A78_1951500 flag
6463a2710dcSjohpow01$(eval $(call assert_boolean,ERRATA_A78_1951500))
6473a2710dcSjohpow01$(eval $(call add_define,ERRATA_A78_1951500))
6483a2710dcSjohpow01
6491a691455Sjohpow01# Process ERRATA_A78_1821534 flag
6501a691455Sjohpow01$(eval $(call assert_boolean,ERRATA_A78_1821534))
6511a691455Sjohpow01$(eval $(call add_define,ERRATA_A78_1821534))
6521a691455Sjohpow01
653da6d75a0SJohn Tsichritzis# Process ERRATA_N1_1043202 flag
654da6d75a0SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_N1_1043202))
655da6d75a0SJohn Tsichritzis$(eval $(call add_define,ERRATA_N1_1043202))
656040b546eSDimitris Papastamos
657a601afe1Slauwal01# Process ERRATA_N1_1073348 flag
658a601afe1Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1073348))
659a601afe1Slauwal01$(eval $(call add_define,ERRATA_N1_1073348))
660a601afe1Slauwal01
661e34606f2Slauwal01# Process ERRATA_N1_1130799 flag
662e34606f2Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1130799))
663e34606f2Slauwal01$(eval $(call add_define,ERRATA_N1_1130799))
664e34606f2Slauwal01
6652017ab24Slauwal01# Process ERRATA_N1_1165347 flag
6662017ab24Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1165347))
6672017ab24Slauwal01$(eval $(call add_define,ERRATA_N1_1165347))
6682017ab24Slauwal01
669ef5fa7d4Slauwal01# Process ERRATA_N1_1207823 flag
670ef5fa7d4Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1207823))
671ef5fa7d4Slauwal01$(eval $(call add_define,ERRATA_N1_1207823))
672ef5fa7d4Slauwal01
6739eceb020Slauwal01# Process ERRATA_N1_1220197 flag
6749eceb020Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1220197))
6759eceb020Slauwal01$(eval $(call add_define,ERRATA_N1_1220197))
6769eceb020Slauwal01
677335b3c79Slauwal01# Process ERRATA_N1_1257314 flag
678335b3c79Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1257314))
679335b3c79Slauwal01$(eval $(call add_define,ERRATA_N1_1257314))
680335b3c79Slauwal01
681411f4959Slauwal01# Process ERRATA_N1_1262606 flag
682411f4959Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1262606))
683411f4959Slauwal01$(eval $(call add_define,ERRATA_N1_1262606))
684411f4959Slauwal01
68511c48370Slauwal01# Process ERRATA_N1_1262888 flag
68611c48370Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1262888))
68711c48370Slauwal01$(eval $(call add_define,ERRATA_N1_1262888))
68811c48370Slauwal01
6894d8801feSlauwal01# Process ERRATA_N1_1275112 flag
6904d8801feSlauwal01$(eval $(call assert_boolean,ERRATA_N1_1275112))
6914d8801feSlauwal01$(eval $(call add_define,ERRATA_N1_1275112))
6924d8801feSlauwal01
6935f5d0763SAndre Przywara# Process ERRATA_N1_1315703 flag
6945f5d0763SAndre Przywara$(eval $(call assert_boolean,ERRATA_N1_1315703))
6955f5d0763SAndre Przywara$(eval $(call add_define,ERRATA_N1_1315703))
6965f5d0763SAndre Przywara
69780942622Slaurenw-arm# Process ERRATA_N1_1542419 flag
69880942622Slaurenw-arm$(eval $(call assert_boolean,ERRATA_N1_1542419))
69980942622Slaurenw-arm$(eval $(call add_define,ERRATA_N1_1542419))
70080942622Slaurenw-arm
70161f0ffc4Sjohpow01# Process ERRATA_N1_1868343 flag
70261f0ffc4Sjohpow01$(eval $(call assert_boolean,ERRATA_N1_1868343))
70361f0ffc4Sjohpow01$(eval $(call add_define,ERRATA_N1_1868343))
70461f0ffc4Sjohpow01
705263ee781Sjohpow01# Process ERRATA_N1_1946160 flag
706263ee781Sjohpow01$(eval $(call assert_boolean,ERRATA_N1_1946160))
707263ee781Sjohpow01$(eval $(call add_define,ERRATA_N1_1946160))
708263ee781Sjohpow01
7094789cf66Slaurenw-arm# Process ERRATA_V1_1774420 flag
7104789cf66Slaurenw-arm$(eval $(call assert_boolean,ERRATA_V1_1774420))
7114789cf66Slaurenw-arm$(eval $(call add_define,ERRATA_V1_1774420))
7124789cf66Slaurenw-arm
71333e3e925Sjohpow01# Process ERRATA_V1_1791573 flag
71433e3e925Sjohpow01$(eval $(call assert_boolean,ERRATA_V1_1791573))
71533e3e925Sjohpow01$(eval $(call add_define,ERRATA_V1_1791573))
71633e3e925Sjohpow01
717143b1965Slaurenw-arm# Process ERRATA_V1_1852267 flag
718143b1965Slaurenw-arm$(eval $(call assert_boolean,ERRATA_V1_1852267))
719143b1965Slaurenw-arm$(eval $(call add_define,ERRATA_V1_1852267))
720143b1965Slaurenw-arm
721741dd04cSlaurenw-arm# Process ERRATA_V1_1925756 flag
722741dd04cSlaurenw-arm$(eval $(call assert_boolean,ERRATA_V1_1925756))
723741dd04cSlaurenw-arm$(eval $(call add_define,ERRATA_V1_1925756))
724741dd04cSlaurenw-arm
725182ce101Sjohpow01# Process ERRATA_V1_1940577 flag
726182ce101Sjohpow01$(eval $(call assert_boolean,ERRATA_V1_1940577))
727182ce101Sjohpow01$(eval $(call add_define,ERRATA_V1_1940577))
728182ce101Sjohpow01
7291a8804c3Sjohpow01# Process ERRATA_V1_1966096 flag
7301a8804c3Sjohpow01$(eval $(call assert_boolean,ERRATA_V1_1966096))
7311a8804c3Sjohpow01$(eval $(call add_define,ERRATA_V1_1966096))
7321a8804c3Sjohpow01
733*100d4029Sjohpow01# Process ERRATA_V1_2139242 flag
734*100d4029Sjohpow01$(eval $(call assert_boolean,ERRATA_V1_2139242))
735*100d4029Sjohpow01$(eval $(call add_define,ERRATA_V1_2139242))
736*100d4029Sjohpow01
7370e985d70SLouis Mayencourt# Process ERRATA_DSU_798953 flag
7380e985d70SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_DSU_798953))
7390e985d70SLouis Mayencourt$(eval $(call add_define,ERRATA_DSU_798953))
7400e985d70SLouis Mayencourt
7418a677180SJohn Tsichritzis# Process ERRATA_DSU_936184 flag
7428a677180SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_DSU_936184))
7438a677180SJohn Tsichritzis$(eval $(call add_define,ERRATA_DSU_936184))
7448a677180SJohn Tsichritzis
745a94cc374SDouglas Raillard# Errata build flags
746a94cc374SDouglas Raillardifneq (${ERRATA_A53_843419},0)
747c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
748a94cc374SDouglas Raillardendif
749a94cc374SDouglas Raillard
750a94cc374SDouglas Raillardifneq (${ERRATA_A53_835769},0)
751a94cc374SDouglas RaillardTF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
752c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
753a94cc374SDouglas Raillardendif
754e1c49333SManish V Badarkhe
755e1c49333SManish V Badarkheifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923}	\
756e1c49333SManish V Badarkhe	${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
757e1c49333SManish V BadarkheERRATA_SPECULATIVE_AT	:= 1
758e1c49333SManish V Badarkheelse
759e1c49333SManish V BadarkheERRATA_SPECULATIVE_AT	:= 0
760e1c49333SManish V Badarkheendif
761