xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision 83e955241aafb4bfac8f2b6db402d7bfc34a5167)
15541bb3fSSoby Mathew#
2da6d75a0SJohn Tsichritzis# Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved.
35541bb3fSSoby Mathew#
482cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
55541bb3fSSoby Mathew#
65541bb3fSSoby Mathew
75541bb3fSSoby Mathew# Cortex A57 specific optimisation to skip L1 cache flush when
85541bb3fSSoby Mathew# cluster is powered down.
95541bb3fSSoby MathewSKIP_A57_L1_FLUSH_PWR_DWN	?=0
105541bb3fSSoby Mathew
1154035fc4SSandrine Bailleux# Flag to disable the cache non-temporal hint.
1254035fc4SSandrine Bailleux# It is enabled by default.
1354035fc4SSandrine BailleuxA53_DISABLE_NON_TEMPORAL_HINT	?=1
1454035fc4SSandrine Bailleux
1554035fc4SSandrine Bailleux# Flag to disable the cache non-temporal hint.
1654035fc4SSandrine Bailleux# It is enabled by default.
1754035fc4SSandrine BailleuxA57_DISABLE_NON_TEMPORAL_HINT	?=1
1854035fc4SSandrine Bailleux
19f62ad322SDimitris PapastamosWORKAROUND_CVE_2017_5715	?=1
20b8a25bbbSDimitris PapastamosWORKAROUND_CVE_2018_3639	?=1
21fe007b2eSDimitris PapastamosDYNAMIC_WORKAROUND_CVE_2018_3639	?=0
22f62ad322SDimitris Papastamos
235541bb3fSSoby Mathew# Process SKIP_A57_L1_FLUSH_PWR_DWN flag
245541bb3fSSoby Mathew$(eval $(call assert_boolean,SKIP_A57_L1_FLUSH_PWR_DWN))
255541bb3fSSoby Mathew$(eval $(call add_define,SKIP_A57_L1_FLUSH_PWR_DWN))
265541bb3fSSoby Mathew
2754035fc4SSandrine Bailleux# Process A53_DISABLE_NON_TEMPORAL_HINT flag
2854035fc4SSandrine Bailleux$(eval $(call assert_boolean,A53_DISABLE_NON_TEMPORAL_HINT))
2954035fc4SSandrine Bailleux$(eval $(call add_define,A53_DISABLE_NON_TEMPORAL_HINT))
3054035fc4SSandrine Bailleux
3154035fc4SSandrine Bailleux# Process A57_DISABLE_NON_TEMPORAL_HINT flag
3254035fc4SSandrine Bailleux$(eval $(call assert_boolean,A57_DISABLE_NON_TEMPORAL_HINT))
3354035fc4SSandrine Bailleux$(eval $(call add_define,A57_DISABLE_NON_TEMPORAL_HINT))
3454035fc4SSandrine Bailleux
35f62ad322SDimitris Papastamos# Process WORKAROUND_CVE_2017_5715 flag
36f62ad322SDimitris Papastamos$(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715))
37f62ad322SDimitris Papastamos$(eval $(call add_define,WORKAROUND_CVE_2017_5715))
385541bb3fSSoby Mathew
39b8a25bbbSDimitris Papastamos# Process WORKAROUND_CVE_2018_3639 flag
40b8a25bbbSDimitris Papastamos$(eval $(call assert_boolean,WORKAROUND_CVE_2018_3639))
41b8a25bbbSDimitris Papastamos$(eval $(call add_define,WORKAROUND_CVE_2018_3639))
42b8a25bbbSDimitris Papastamos
43fe007b2eSDimitris Papastamos$(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639))
44fe007b2eSDimitris Papastamos$(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639))
45fe007b2eSDimitris Papastamos
46fe007b2eSDimitris Papastamosifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
47fe007b2eSDimitris Papastamos    ifeq (${WORKAROUND_CVE_2018_3639},0)
48fe007b2eSDimitris Papastamos        $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
49fe007b2eSDimitris Papastamos    endif
50fe007b2eSDimitris Papastamosendif
51fe007b2eSDimitris Papastamos
52097b787aSSandrine Bailleux# CPU Errata Build flags.
53097b787aSSandrine Bailleux# These should be enabled by the platform if the erratum workaround needs to be
54097b787aSSandrine Bailleux# applied.
555541bb3fSSoby Mathew
56dd4cf2c7SJoel Hutton# Flag to apply erratum 794073 workaround when disabling mmu.
57dd4cf2c7SJoel HuttonERRATA_A9_794073	?=0
58dd4cf2c7SJoel Hutton
5975a1ada9SAmbroise Vincent# Flag to apply erratum 816470 workaround during power down. This erratum
6075a1ada9SAmbroise Vincent# applies only to revision >= r3p0 of the Cortex A15 cpu.
6175a1ada9SAmbroise VincentERRATA_A15_816470	?=0
6275a1ada9SAmbroise Vincent
635f2c690dSAmbroise Vincent# Flag to apply erratum 827671 workaround during reset. This erratum applies
645f2c690dSAmbroise Vincent# only to revision >= r3p0 of the Cortex A15 cpu.
655f2c690dSAmbroise VincentERRATA_A15_827671	?=0
665f2c690dSAmbroise Vincent
670b64c194SAmbroise Vincent# Flag to apply erratum 852421 workaround during reset. This erratum applies
680b64c194SAmbroise Vincent# only to revision <= r1p2 of the Cortex A17 cpu.
690b64c194SAmbroise VincentERRATA_A17_852421	?=0
700b64c194SAmbroise Vincent
71be10dcdeSAmbroise Vincent# Flag to apply erratum 852423 workaround during reset. This erratum applies
72be10dcdeSAmbroise Vincent# only to revision <= r1p2 of the Cortex A17 cpu.
73be10dcdeSAmbroise VincentERRATA_A17_852423	?=0
74be10dcdeSAmbroise Vincent
75cba71b70SLouis Mayencourt# Flag to apply erratum 855472 workaround during reset. This erratum applies
76cba71b70SLouis Mayencourt# only to revision r0p0 of the Cortex A35 cpu.
77cba71b70SLouis MayencourtERRATA_A35_855472	?=0
78cba71b70SLouis Mayencourt
79bd393704SAmbroise Vincent# Flag to apply erratum 819472 workaround during reset. This erratum applies
80bd393704SAmbroise Vincent# only to revision <= r0p1 of the Cortex A53 cpu.
81bd393704SAmbroise VincentERRATA_A53_819472	?=0
82bd393704SAmbroise Vincent
83bd393704SAmbroise Vincent# Flag to apply erratum 824069 workaround during reset. This erratum applies
84bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
85bd393704SAmbroise VincentERRATA_A53_824069	?=0
86bd393704SAmbroise Vincent
87097b787aSSandrine Bailleux# Flag to apply erratum 826319 workaround during reset. This erratum applies
88097b787aSSandrine Bailleux# only to revision <= r0p2 of the Cortex A53 cpu.
896b0d97b2SJimmy HuangERRATA_A53_826319	?=0
906b0d97b2SJimmy Huang
91bd393704SAmbroise Vincent# Flag to apply erratum 827319 workaround during reset. This erratum applies
92bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
93bd393704SAmbroise VincentERRATA_A53_827319	?=0
94bd393704SAmbroise Vincent
95a94cc374SDouglas Raillard# Flag to apply erratum 835769 workaround at compile and link time.  This
96a94cc374SDouglas Raillard# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
97a94cc374SDouglas Raillard# workaround can lead the linker to create "*.stub" sections.
98a94cc374SDouglas RaillardERRATA_A53_835769	?=0
99a94cc374SDouglas Raillard
100097b787aSSandrine Bailleux# Flag to apply erratum 836870 workaround during reset. This erratum applies
101097b787aSSandrine Bailleux# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
1023fbe46d7SDouglas Raillard# erratum workaround is enabled by default in hardware.
1036b0d97b2SJimmy HuangERRATA_A53_836870	?=0
1046b0d97b2SJimmy Huang
105a94cc374SDouglas Raillard# Flag to apply erratum 843419 workaround at link time.
106a94cc374SDouglas Raillard# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
107a94cc374SDouglas Raillard# workaround could lead the linker to emit "*.stub" sections which are 4kB
108a94cc374SDouglas Raillard# aligned.
109a94cc374SDouglas RaillardERRATA_A53_843419	?=0
110a94cc374SDouglas Raillard
111b75dc0e4SAndre Przywara# Flag to apply errata 855873 during reset. This errata applies to all
112b75dc0e4SAndre Przywara# revisions of the Cortex A53 CPU, but this firmware workaround only works
113b75dc0e4SAndre Przywara# for revisions r0p3 and higher. Earlier revisions are taken care
114b75dc0e4SAndre Przywara# of by the rich OS.
115b75dc0e4SAndre PrzywaraERRATA_A53_855873	?=0
116b75dc0e4SAndre Przywara
1171afeee92SAmbroise Vincent# Flag to apply erratum 768277 workaround during reset. This erratum applies
1181afeee92SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1191afeee92SAmbroise VincentERRATA_A55_768277	?=0
1201afeee92SAmbroise Vincent
121a6cc6610SAmbroise Vincent# Flag to apply erratum 778703 workaround during reset. This erratum applies
122a6cc6610SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
123a6cc6610SAmbroise VincentERRATA_A55_778703	?=0
124a6cc6610SAmbroise Vincent
1256ab87d29SAmbroise Vincent# Flag to apply erratum 798797 workaround during reset. This erratum applies
1266ab87d29SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1276ab87d29SAmbroise VincentERRATA_A55_798797	?=0
1286ab87d29SAmbroise Vincent
1296e78973eSAmbroise Vincent# Flag to apply erratum 846532 workaround during reset. This erratum applies
1306e78973eSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
1316e78973eSAmbroise VincentERRATA_A55_846532	?=0
1326e78973eSAmbroise Vincent
13347949f3fSAmbroise Vincent# Flag to apply erratum 903758 workaround during reset. This erratum applies
13447949f3fSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
13547949f3fSAmbroise VincentERRATA_A55_903758	?=0
13647949f3fSAmbroise Vincent
1379af07df0SAmbroise Vincent# Flag to apply erratum 1221012 workaround during reset. This erratum applies
1389af07df0SAmbroise Vincent# only to revision <= r1p0 of the Cortex A55 cpu.
1399af07df0SAmbroise VincentERRATA_A55_1221012	?=0
1409af07df0SAmbroise Vincent
141097b787aSSandrine Bailleux# Flag to apply erratum 806969 workaround during reset. This erratum applies
142097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1435541bb3fSSoby MathewERRATA_A57_806969	?=0
1445541bb3fSSoby Mathew
145ccbec91cSAntonio Nino Diaz# Flag to apply erratum 813419 workaround during reset. This erratum applies
146ccbec91cSAntonio Nino Diaz# only to revision r0p0 of the Cortex A57 cpu.
147ccbec91cSAntonio Nino DiazERRATA_A57_813419	?=0
148ccbec91cSAntonio Nino Diaz
149097b787aSSandrine Bailleux# Flag to apply erratum 813420  workaround during reset. This erratum applies
150097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1515541bb3fSSoby MathewERRATA_A57_813420	?=0
1525541bb3fSSoby Mathew
1530f6fbbd2SAmbroise Vincent# Flag to apply erratum 814670  workaround during reset. This erratum applies
1540f6fbbd2SAmbroise Vincent# only to revision r0p0 of the Cortex A57 cpu.
1550f6fbbd2SAmbroise VincentERRATA_A57_814670	?=0
1560f6fbbd2SAmbroise Vincent
1575bd2c24fSAmbroise Vincent# Flag to apply erratum 817169 workaround during power down. This erratum
1585bd2c24fSAmbroise Vincent# applies only to revision <= r0p1 of the Cortex A57 cpu.
1595bd2c24fSAmbroise VincentERRATA_A57_817169	?=0
1605bd2c24fSAmbroise Vincent
161df22d602SSandrine Bailleux# Flag to apply erratum 826974 workaround during reset. This erratum applies
162df22d602SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
163df22d602SSandrine BailleuxERRATA_A57_826974	?=0
164df22d602SSandrine Bailleux
16507288865SSandrine Bailleux# Flag to apply erratum 826977 workaround during reset. This erratum applies
16607288865SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
16707288865SSandrine BailleuxERRATA_A57_826977	?=0
16807288865SSandrine Bailleux
169a8b1c769SSandrine Bailleux# Flag to apply erratum 828024 workaround during reset. This erratum applies
170a8b1c769SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
171a8b1c769SSandrine BailleuxERRATA_A57_828024	?=0
172a8b1c769SSandrine Bailleux
1730b77197bSSandrine Bailleux# Flag to apply erratum 829520 workaround during reset. This erratum applies
1740b77197bSSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
1750b77197bSSandrine BailleuxERRATA_A57_829520	?=0
1760b77197bSSandrine Bailleux
177adeecf92SSandrine Bailleux# Flag to apply erratum 833471 workaround during reset. This erratum applies
178adeecf92SSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
179adeecf92SSandrine BailleuxERRATA_A57_833471	?=0
180adeecf92SSandrine Bailleux
18145b52c20SEleanor Bonnici# Flag to apply erratum 855972 workaround during reset. This erratum applies
18245b52c20SEleanor Bonnici# only to revision <= r1p3 of the Cortex A57 cpu.
18345b52c20SEleanor BonniciERRATA_A57_859972	?=0
18445b52c20SEleanor Bonnici
1856de9b336SEleanor Bonnici# Flag to apply erratum 855971 workaround during reset. This erratum applies
1866de9b336SEleanor Bonnici# only to revision <= r0p3 of the Cortex A72 cpu.
1876de9b336SEleanor BonniciERRATA_A72_859971	?=0
1886de9b336SEleanor Bonnici
18925278eabSLouis Mayencourt# Flag to apply erratum 852427 workaround during reset. This erratum applies
19025278eabSLouis Mayencourt# only to revision r0p0 of the Cortex A73 cpu.
19125278eabSLouis MayencourtERRATA_A73_852427	?=0
19225278eabSLouis Mayencourt
193e6cab15dSLouis Mayencourt# Flag to apply erratum 855423 workaround during reset. This erratum applies
194e6cab15dSLouis Mayencourt# only to revision <= r0p1 of the Cortex A73 cpu.
195e6cab15dSLouis MayencourtERRATA_A73_855423	?=0
196e6cab15dSLouis Mayencourt
1975f5d1ed7SLouis Mayencourt# Flag to apply erratum 764081 workaround during reset. This erratum applies
1985f5d1ed7SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
1995f5d1ed7SLouis MayencourtERRATA_A75_764081	?=0
2005f5d1ed7SLouis Mayencourt
20198551591SLouis Mayencourt# Flag to apply erratum 790748 workaround during reset. This erratum applies
20298551591SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
20398551591SLouis MayencourtERRATA_A75_790748	?=0
20498551591SLouis Mayencourt
2055c6aa01aSLouis Mayencourt# Flag to apply erratum 1073348 workaround during reset. This erratum applies
2065c6aa01aSLouis Mayencourt# only to revision <= r1p0 of the Cortex A76 cpu.
2075c6aa01aSLouis MayencourtERRATA_A76_1073348	?=0
2085c6aa01aSLouis Mayencourt
209508d7110SLouis Mayencourt# Flag to apply erratum 1130799 workaround during reset. This erratum applies
210508d7110SLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
211508d7110SLouis MayencourtERRATA_A76_1130799	?=0
212508d7110SLouis Mayencourt
2135cc8c7baSLouis Mayencourt# Flag to apply erratum 1220197 workaround during reset. This erratum applies
2145cc8c7baSLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
2155cc8c7baSLouis MayencourtERRATA_A76_1220197	?=0
2165cc8c7baSLouis Mayencourt
217e6e1d0acSSoby Mathew# Flag to apply erratum 1257314 workaround during reset. This erratum applies
218e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
219e6e1d0acSSoby MathewERRATA_A76_1257314	?=0
220e6e1d0acSSoby Mathew
221e6e1d0acSSoby Mathew# Flag to apply erratum 1262606 workaround during reset. This erratum applies
222e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
223e6e1d0acSSoby MathewERRATA_A76_1262606	?=0
224e6e1d0acSSoby Mathew
225e6e1d0acSSoby Mathew# Flag to apply erratum 1262888 workaround during reset. This erratum applies
226e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
227e6e1d0acSSoby MathewERRATA_A76_1262888	?=0
228e6e1d0acSSoby Mathew
229e6e1d0acSSoby Mathew# Flag to apply erratum 1275112 workaround during reset. This erratum applies
230e6e1d0acSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
231e6e1d0acSSoby MathewERRATA_A76_1275112	?=0
232e6e1d0acSSoby Mathew
233f85edceaSSoby Mathew# Flag to apply erratum 1286807 workaround during reset. This erratum applies
234f85edceaSSoby Mathew# only to revision <= r3p0 of the Cortex A76 cpu.
235f85edceaSSoby MathewERRATA_A76_1286807	?=0
236f85edceaSSoby Mathew
237*83e95524SMadhukar Pappireddy# Flag to apply erratum 1688305 workaround during reset. This erratum applies
238*83e95524SMadhukar Pappireddy# to revisions r0p0 - r1p0 of the Hercules cpu.
239*83e95524SMadhukar PappireddyERRATA_HERCULES_1688305	?=0
240*83e95524SMadhukar Pappireddy
241040b546eSDimitris Papastamos# Flag to apply T32 CLREX workaround during reset. This erratum applies
242da6d75a0SJohn Tsichritzis# only to r0p0 and r1p0 of the Neoverse N1 cpu.
243da6d75a0SJohn TsichritzisERRATA_N1_1043202	?=1
244040b546eSDimitris Papastamos
245a601afe1Slauwal01# Flag to apply erratum 1073348 workaround during reset. This erratum applies
246a601afe1Slauwal01# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
247a601afe1Slauwal01ERRATA_N1_1073348	?=0
248a601afe1Slauwal01
249e34606f2Slauwal01# Flag to apply erratum 1130799 workaround during reset. This erratum applies
250e34606f2Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
251e34606f2Slauwal01ERRATA_N1_1130799	?=0
252e34606f2Slauwal01
2532017ab24Slauwal01# Flag to apply erratum 1165347 workaround during reset. This erratum applies
2542017ab24Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
2552017ab24Slauwal01ERRATA_N1_1165347	?=0
2562017ab24Slauwal01
257ef5fa7d4Slauwal01# Flag to apply erratum 1207823 workaround during reset. This erratum applies
258ef5fa7d4Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
259ef5fa7d4Slauwal01ERRATA_N1_1207823	?=0
260ef5fa7d4Slauwal01
2619eceb020Slauwal01# Flag to apply erratum 1220197 workaround during reset. This erratum applies
2629eceb020Slauwal01# only to revision <= r2p0 of the Neoverse N1 cpu.
2639eceb020Slauwal01ERRATA_N1_1220197	?=0
2649eceb020Slauwal01
265335b3c79Slauwal01# Flag to apply erratum 1257314 workaround during reset. This erratum applies
266335b3c79Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
267335b3c79Slauwal01ERRATA_N1_1257314	?=0
268335b3c79Slauwal01
269411f4959Slauwal01# Flag to apply erratum 1262606 workaround during reset. This erratum applies
270411f4959Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
271411f4959Slauwal01ERRATA_N1_1262606	?=0
272411f4959Slauwal01
27311c48370Slauwal01# Flag to apply erratum 1262888 workaround during reset. This erratum applies
27411c48370Slauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
27511c48370Slauwal01ERRATA_N1_1262888	?=0
27611c48370Slauwal01
2774d8801feSlauwal01# Flag to apply erratum 1275112 workaround during reset. This erratum applies
2784d8801feSlauwal01# only to revision <= r3p0 of the Neoverse N1 cpu.
2794d8801feSlauwal01ERRATA_N1_1275112	?=0
2804d8801feSlauwal01
2815f5d0763SAndre Przywara# Flag to apply erratum 1315703 workaround during reset. This erratum applies
2825f5d0763SAndre Przywara# to revisions before r3p1 of the Neoverse N1 cpu.
2835f5d0763SAndre PrzywaraERRATA_N1_1315703	?=1
2845f5d0763SAndre Przywara
28580942622Slaurenw-arm# Flag to apply erratum 1542419 workaround during reset. This erratum applies
28680942622Slaurenw-arm# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
28780942622Slaurenw-armERRATA_N1_1542419	?=0
28880942622Slaurenw-arm
2890e985d70SLouis Mayencourt# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
2900e985d70SLouis Mayencourt# Applying the workaround results in higher DSU power consumption on idle.
2910e985d70SLouis MayencourtERRATA_DSU_798953	?=0
2920e985d70SLouis Mayencourt
2938a677180SJohn Tsichritzis# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
2948a677180SJohn Tsichritzis# the ACP interface and revision < r2p0. Applying the workaround results in
2958a677180SJohn Tsichritzis# higher DSU power consumption on idle.
2968a677180SJohn TsichritzisERRATA_DSU_936184	?=0
2978a677180SJohn Tsichritzis
298dd4cf2c7SJoel Hutton# Process ERRATA_A9_794073 flag
299dd4cf2c7SJoel Hutton$(eval $(call assert_boolean,ERRATA_A9_794073))
300dd4cf2c7SJoel Hutton$(eval $(call add_define,ERRATA_A9_794073))
301dd4cf2c7SJoel Hutton
30275a1ada9SAmbroise Vincent# Process ERRATA_A15_816470 flag
30375a1ada9SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_816470))
30475a1ada9SAmbroise Vincent$(eval $(call add_define,ERRATA_A15_816470))
30575a1ada9SAmbroise Vincent
3065f2c690dSAmbroise Vincent# Process ERRATA_A15_827671 flag
3075f2c690dSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_827671))
3085f2c690dSAmbroise Vincent$(eval $(call add_define,ERRATA_A15_827671))
3095f2c690dSAmbroise Vincent
3100b64c194SAmbroise Vincent# Process ERRATA_A17_852421 flag
3110b64c194SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852421))
3120b64c194SAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852421))
3130b64c194SAmbroise Vincent
314be10dcdeSAmbroise Vincent# Process ERRATA_A17_852423 flag
315be10dcdeSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852423))
316be10dcdeSAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852423))
317be10dcdeSAmbroise Vincent
318cba71b70SLouis Mayencourt# Process ERRATA_A35_855472 flag
319cba71b70SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A35_855472))
320cba71b70SLouis Mayencourt$(eval $(call add_define,ERRATA_A35_855472))
321cba71b70SLouis Mayencourt
322bd393704SAmbroise Vincent# Process ERRATA_A53_819472 flag
323bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_819472))
324bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_819472))
325bd393704SAmbroise Vincent
326bd393704SAmbroise Vincent# Process ERRATA_A53_824069 flag
327bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_824069))
328bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_824069))
329bd393704SAmbroise Vincent
3306b0d97b2SJimmy Huang# Process ERRATA_A53_826319 flag
3316b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_826319))
3326b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_826319))
3336b0d97b2SJimmy Huang
334bd393704SAmbroise Vincent# Process ERRATA_A53_827319 flag
335bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_827319))
336bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_827319))
337bd393704SAmbroise Vincent
338a94cc374SDouglas Raillard# Process ERRATA_A53_835769 flag
339a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_835769))
340a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_835769))
341a94cc374SDouglas Raillard
3426b0d97b2SJimmy Huang# Process ERRATA_A53_836870 flag
3436b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_836870))
3446b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_836870))
3456b0d97b2SJimmy Huang
346a94cc374SDouglas Raillard# Process ERRATA_A53_843419 flag
347a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_843419))
348a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_843419))
349a94cc374SDouglas Raillard
350b75dc0e4SAndre Przywara# Process ERRATA_A53_855873 flag
351b75dc0e4SAndre Przywara$(eval $(call assert_boolean,ERRATA_A53_855873))
352b75dc0e4SAndre Przywara$(eval $(call add_define,ERRATA_A53_855873))
353b75dc0e4SAndre Przywara
3541afeee92SAmbroise Vincent# Process ERRATA_A55_768277 flag
3551afeee92SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_768277))
3561afeee92SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_768277))
3571afeee92SAmbroise Vincent
358a6cc6610SAmbroise Vincent# Process ERRATA_A55_778703 flag
359a6cc6610SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_778703))
360a6cc6610SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_778703))
361a6cc6610SAmbroise Vincent
3626ab87d29SAmbroise Vincent# Process ERRATA_A55_798797 flag
3636ab87d29SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_798797))
3646ab87d29SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_798797))
3656ab87d29SAmbroise Vincent
3666e78973eSAmbroise Vincent# Process ERRATA_A55_846532 flag
3676e78973eSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_846532))
3686e78973eSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_846532))
3696e78973eSAmbroise Vincent
37047949f3fSAmbroise Vincent# Process ERRATA_A55_903758 flag
37147949f3fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_903758))
37247949f3fSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_903758))
37347949f3fSAmbroise Vincent
3749af07df0SAmbroise Vincent# Process ERRATA_A55_1221012 flag
3759af07df0SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_1221012))
3769af07df0SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_1221012))
3779af07df0SAmbroise Vincent
3785541bb3fSSoby Mathew# Process ERRATA_A57_806969 flag
3795541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_806969))
3805541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_806969))
3815541bb3fSSoby Mathew
382ccbec91cSAntonio Nino Diaz# Process ERRATA_A57_813419 flag
383ccbec91cSAntonio Nino Diaz$(eval $(call assert_boolean,ERRATA_A57_813419))
384ccbec91cSAntonio Nino Diaz$(eval $(call add_define,ERRATA_A57_813419))
385ccbec91cSAntonio Nino Diaz
3865541bb3fSSoby Mathew# Process ERRATA_A57_813420 flag
3875541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_813420))
3885541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_813420))
389df22d602SSandrine Bailleux
3900f6fbbd2SAmbroise Vincent# Process ERRATA_A57_814670 flag
3910f6fbbd2SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_814670))
3920f6fbbd2SAmbroise Vincent$(eval $(call add_define,ERRATA_A57_814670))
3930f6fbbd2SAmbroise Vincent
3945bd2c24fSAmbroise Vincent# Process ERRATA_A57_817169 flag
3955bd2c24fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_817169))
3965bd2c24fSAmbroise Vincent$(eval $(call add_define,ERRATA_A57_817169))
3975bd2c24fSAmbroise Vincent
398df22d602SSandrine Bailleux# Process ERRATA_A57_826974 flag
399df22d602SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826974))
400df22d602SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826974))
401a8b1c769SSandrine Bailleux
40207288865SSandrine Bailleux# Process ERRATA_A57_826977 flag
40307288865SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826977))
40407288865SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826977))
40507288865SSandrine Bailleux
406a8b1c769SSandrine Bailleux# Process ERRATA_A57_828024 flag
407a8b1c769SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_828024))
408a8b1c769SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_828024))
4090b77197bSSandrine Bailleux
4100b77197bSSandrine Bailleux# Process ERRATA_A57_829520 flag
4110b77197bSSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_829520))
4120b77197bSSandrine Bailleux$(eval $(call add_define,ERRATA_A57_829520))
413adeecf92SSandrine Bailleux
414adeecf92SSandrine Bailleux# Process ERRATA_A57_833471 flag
415adeecf92SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_833471))
416adeecf92SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_833471))
417a94cc374SDouglas Raillard
41845b52c20SEleanor Bonnici# Process ERRATA_A57_859972 flag
41945b52c20SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A57_859972))
42045b52c20SEleanor Bonnici$(eval $(call add_define,ERRATA_A57_859972))
42145b52c20SEleanor Bonnici
4226de9b336SEleanor Bonnici# Process ERRATA_A72_859971 flag
4236de9b336SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A72_859971))
4246de9b336SEleanor Bonnici$(eval $(call add_define,ERRATA_A72_859971))
4256de9b336SEleanor Bonnici
42625278eabSLouis Mayencourt# Process ERRATA_A73_852427 flag
42725278eabSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_852427))
42825278eabSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_852427))
42925278eabSLouis Mayencourt
430e6cab15dSLouis Mayencourt# Process ERRATA_A73_855423 flag
431e6cab15dSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_855423))
432e6cab15dSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_855423))
433e6cab15dSLouis Mayencourt
4345f5d1ed7SLouis Mayencourt# Process ERRATA_A75_764081 flag
4355f5d1ed7SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_764081))
4365f5d1ed7SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_764081))
4375f5d1ed7SLouis Mayencourt
43898551591SLouis Mayencourt# Process ERRATA_A75_790748 flag
43998551591SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_790748))
44098551591SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_790748))
44198551591SLouis Mayencourt
4425c6aa01aSLouis Mayencourt# Process ERRATA_A76_1073348 flag
4435c6aa01aSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1073348))
4445c6aa01aSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1073348))
4455c6aa01aSLouis Mayencourt
446508d7110SLouis Mayencourt# Process ERRATA_A76_1130799 flag
447508d7110SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1130799))
448508d7110SLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1130799))
449508d7110SLouis Mayencourt
4505cc8c7baSLouis Mayencourt# Process ERRATA_A76_1220197 flag
4515cc8c7baSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1220197))
4525cc8c7baSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1220197))
4535cc8c7baSLouis Mayencourt
454e6e1d0acSSoby Mathew# Process ERRATA_A76_1257314 flag
455e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1257314))
456e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1257314))
457e6e1d0acSSoby Mathew
458e6e1d0acSSoby Mathew# Process ERRATA_A76_1262606 flag
459e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1262606))
460e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1262606))
461e6e1d0acSSoby Mathew
462e6e1d0acSSoby Mathew# Process ERRATA_A76_1262888 flag
463e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1262888))
464e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1262888))
465e6e1d0acSSoby Mathew
466e6e1d0acSSoby Mathew# Process ERRATA_A76_1275112 flag
467e6e1d0acSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1275112))
468e6e1d0acSSoby Mathew$(eval $(call add_define,ERRATA_A76_1275112))
469e6e1d0acSSoby Mathew
470f85edceaSSoby Mathew# Process ERRATA_A76_1286807 flag
471f85edceaSSoby Mathew$(eval $(call assert_boolean,ERRATA_A76_1286807))
472f85edceaSSoby Mathew$(eval $(call add_define,ERRATA_A76_1286807))
473f85edceaSSoby Mathew
474*83e95524SMadhukar Pappireddy# Process ERRATA_HERCULES_1688305 flag
475*83e95524SMadhukar Pappireddy$(eval $(call assert_boolean,ERRATA_HERCULES_1688305))
476*83e95524SMadhukar Pappireddy$(eval $(call add_define,ERRATA_HERCULES_1688305))
477*83e95524SMadhukar Pappireddy
478da6d75a0SJohn Tsichritzis# Process ERRATA_N1_1043202 flag
479da6d75a0SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_N1_1043202))
480da6d75a0SJohn Tsichritzis$(eval $(call add_define,ERRATA_N1_1043202))
481040b546eSDimitris Papastamos
482a601afe1Slauwal01# Process ERRATA_N1_1073348 flag
483a601afe1Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1073348))
484a601afe1Slauwal01$(eval $(call add_define,ERRATA_N1_1073348))
485a601afe1Slauwal01
486e34606f2Slauwal01# Process ERRATA_N1_1130799 flag
487e34606f2Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1130799))
488e34606f2Slauwal01$(eval $(call add_define,ERRATA_N1_1130799))
489e34606f2Slauwal01
4902017ab24Slauwal01# Process ERRATA_N1_1165347 flag
4912017ab24Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1165347))
4922017ab24Slauwal01$(eval $(call add_define,ERRATA_N1_1165347))
4932017ab24Slauwal01
494ef5fa7d4Slauwal01# Process ERRATA_N1_1207823 flag
495ef5fa7d4Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1207823))
496ef5fa7d4Slauwal01$(eval $(call add_define,ERRATA_N1_1207823))
497ef5fa7d4Slauwal01
4989eceb020Slauwal01# Process ERRATA_N1_1220197 flag
4999eceb020Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1220197))
5009eceb020Slauwal01$(eval $(call add_define,ERRATA_N1_1220197))
5019eceb020Slauwal01
502335b3c79Slauwal01# Process ERRATA_N1_1257314 flag
503335b3c79Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1257314))
504335b3c79Slauwal01$(eval $(call add_define,ERRATA_N1_1257314))
505335b3c79Slauwal01
506411f4959Slauwal01# Process ERRATA_N1_1262606 flag
507411f4959Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1262606))
508411f4959Slauwal01$(eval $(call add_define,ERRATA_N1_1262606))
509411f4959Slauwal01
51011c48370Slauwal01# Process ERRATA_N1_1262888 flag
51111c48370Slauwal01$(eval $(call assert_boolean,ERRATA_N1_1262888))
51211c48370Slauwal01$(eval $(call add_define,ERRATA_N1_1262888))
51311c48370Slauwal01
5144d8801feSlauwal01# Process ERRATA_N1_1275112 flag
5154d8801feSlauwal01$(eval $(call assert_boolean,ERRATA_N1_1275112))
5164d8801feSlauwal01$(eval $(call add_define,ERRATA_N1_1275112))
5174d8801feSlauwal01
5185f5d0763SAndre Przywara# Process ERRATA_N1_1315703 flag
5195f5d0763SAndre Przywara$(eval $(call assert_boolean,ERRATA_N1_1315703))
5205f5d0763SAndre Przywara$(eval $(call add_define,ERRATA_N1_1315703))
5215f5d0763SAndre Przywara
52280942622Slaurenw-arm# Process ERRATA_N1_1542419 flag
52380942622Slaurenw-arm$(eval $(call assert_boolean,ERRATA_N1_1542419))
52480942622Slaurenw-arm$(eval $(call add_define,ERRATA_N1_1542419))
52580942622Slaurenw-arm
5260e985d70SLouis Mayencourt# Process ERRATA_DSU_798953 flag
5270e985d70SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_DSU_798953))
5280e985d70SLouis Mayencourt$(eval $(call add_define,ERRATA_DSU_798953))
5290e985d70SLouis Mayencourt
5308a677180SJohn Tsichritzis# Process ERRATA_DSU_936184 flag
5318a677180SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_DSU_936184))
5328a677180SJohn Tsichritzis$(eval $(call add_define,ERRATA_DSU_936184))
5338a677180SJohn Tsichritzis
534a94cc374SDouglas Raillard# Errata build flags
535a94cc374SDouglas Raillardifneq (${ERRATA_A53_843419},0)
536c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
537a94cc374SDouglas Raillardendif
538a94cc374SDouglas Raillard
539a94cc374SDouglas Raillardifneq (${ERRATA_A53_835769},0)
540a94cc374SDouglas RaillardTF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
541c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
542a94cc374SDouglas Raillardendif
543