xref: /rk3399_ARM-atf/lib/cpus/cpu-ops.mk (revision 0b64c194853d631909317c041d5501ec53c3bfef)
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
5675a1ada9SAmbroise Vincent# Flag to apply erratum 816470 workaround during power down. This erratum
5775a1ada9SAmbroise Vincent# applies only to revision >= r3p0 of the Cortex A15 cpu.
5875a1ada9SAmbroise VincentERRATA_A15_816470	?=0
5975a1ada9SAmbroise Vincent
605f2c690dSAmbroise Vincent# Flag to apply erratum 827671 workaround during reset. This erratum applies
615f2c690dSAmbroise Vincent# only to revision >= r3p0 of the Cortex A15 cpu.
625f2c690dSAmbroise VincentERRATA_A15_827671	?=0
635f2c690dSAmbroise Vincent
64*0b64c194SAmbroise Vincent# Flag to apply erratum 852421 workaround during reset. This erratum applies
65*0b64c194SAmbroise Vincent# only to revision <= r1p2 of the Cortex A17 cpu.
66*0b64c194SAmbroise VincentERRATA_A17_852421	?=0
67*0b64c194SAmbroise Vincent
68bd393704SAmbroise Vincent# Flag to apply erratum 819472 workaround during reset. This erratum applies
69bd393704SAmbroise Vincent# only to revision <= r0p1 of the Cortex A53 cpu.
70bd393704SAmbroise VincentERRATA_A53_819472	?=0
71bd393704SAmbroise Vincent
72bd393704SAmbroise Vincent# Flag to apply erratum 824069 workaround during reset. This erratum applies
73bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
74bd393704SAmbroise VincentERRATA_A53_824069	?=0
75bd393704SAmbroise Vincent
76097b787aSSandrine Bailleux# Flag to apply erratum 826319 workaround during reset. This erratum applies
77097b787aSSandrine Bailleux# only to revision <= r0p2 of the Cortex A53 cpu.
786b0d97b2SJimmy HuangERRATA_A53_826319	?=0
796b0d97b2SJimmy Huang
80bd393704SAmbroise Vincent# Flag to apply erratum 827319 workaround during reset. This erratum applies
81bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu.
82bd393704SAmbroise VincentERRATA_A53_827319	?=0
83bd393704SAmbroise Vincent
84a94cc374SDouglas Raillard# Flag to apply erratum 835769 workaround at compile and link time.  This
85a94cc374SDouglas Raillard# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
86a94cc374SDouglas Raillard# workaround can lead the linker to create "*.stub" sections.
87a94cc374SDouglas RaillardERRATA_A53_835769	?=0
88a94cc374SDouglas Raillard
89097b787aSSandrine Bailleux# Flag to apply erratum 836870 workaround during reset. This erratum applies
90097b787aSSandrine Bailleux# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
913fbe46d7SDouglas Raillard# erratum workaround is enabled by default in hardware.
926b0d97b2SJimmy HuangERRATA_A53_836870	?=0
936b0d97b2SJimmy Huang
94a94cc374SDouglas Raillard# Flag to apply erratum 843419 workaround at link time.
95a94cc374SDouglas Raillard# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
96a94cc374SDouglas Raillard# workaround could lead the linker to emit "*.stub" sections which are 4kB
97a94cc374SDouglas Raillard# aligned.
98a94cc374SDouglas RaillardERRATA_A53_843419	?=0
99a94cc374SDouglas Raillard
100b75dc0e4SAndre Przywara# Flag to apply errata 855873 during reset. This errata applies to all
101b75dc0e4SAndre Przywara# revisions of the Cortex A53 CPU, but this firmware workaround only works
102b75dc0e4SAndre Przywara# for revisions r0p3 and higher. Earlier revisions are taken care
103b75dc0e4SAndre Przywara# of by the rich OS.
104b75dc0e4SAndre PrzywaraERRATA_A53_855873	?=0
105b75dc0e4SAndre Przywara
1061afeee92SAmbroise Vincent# Flag to apply erratum 768277 workaround during reset. This erratum applies
1071afeee92SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1081afeee92SAmbroise VincentERRATA_A55_768277	?=0
1091afeee92SAmbroise Vincent
110a6cc6610SAmbroise Vincent# Flag to apply erratum 778703 workaround during reset. This erratum applies
111a6cc6610SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
112a6cc6610SAmbroise VincentERRATA_A55_778703	?=0
113a6cc6610SAmbroise Vincent
1146ab87d29SAmbroise Vincent# Flag to apply erratum 798797 workaround during reset. This erratum applies
1156ab87d29SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu.
1166ab87d29SAmbroise VincentERRATA_A55_798797	?=0
1176ab87d29SAmbroise Vincent
1186e78973eSAmbroise Vincent# Flag to apply erratum 846532 workaround during reset. This erratum applies
1196e78973eSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
1206e78973eSAmbroise VincentERRATA_A55_846532	?=0
1216e78973eSAmbroise Vincent
12247949f3fSAmbroise Vincent# Flag to apply erratum 903758 workaround during reset. This erratum applies
12347949f3fSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu.
12447949f3fSAmbroise VincentERRATA_A55_903758	?=0
12547949f3fSAmbroise Vincent
126097b787aSSandrine Bailleux# Flag to apply erratum 806969 workaround during reset. This erratum applies
127097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1285541bb3fSSoby MathewERRATA_A57_806969	?=0
1295541bb3fSSoby Mathew
130ccbec91cSAntonio Nino Diaz# Flag to apply erratum 813419 workaround during reset. This erratum applies
131ccbec91cSAntonio Nino Diaz# only to revision r0p0 of the Cortex A57 cpu.
132ccbec91cSAntonio Nino DiazERRATA_A57_813419	?=0
133ccbec91cSAntonio Nino Diaz
134097b787aSSandrine Bailleux# Flag to apply erratum 813420  workaround during reset. This erratum applies
135097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu.
1365541bb3fSSoby MathewERRATA_A57_813420	?=0
1375541bb3fSSoby Mathew
1380f6fbbd2SAmbroise Vincent# Flag to apply erratum 814670  workaround during reset. This erratum applies
1390f6fbbd2SAmbroise Vincent# only to revision r0p0 of the Cortex A57 cpu.
1400f6fbbd2SAmbroise VincentERRATA_A57_814670	?=0
1410f6fbbd2SAmbroise Vincent
1425bd2c24fSAmbroise Vincent# Flag to apply erratum 817169 workaround during power down. This erratum
1435bd2c24fSAmbroise Vincent# applies only to revision <= r0p1 of the Cortex A57 cpu.
1445bd2c24fSAmbroise VincentERRATA_A57_817169	?=0
1455bd2c24fSAmbroise Vincent
146df22d602SSandrine Bailleux# Flag to apply erratum 826974 workaround during reset. This erratum applies
147df22d602SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
148df22d602SSandrine BailleuxERRATA_A57_826974	?=0
149df22d602SSandrine Bailleux
15007288865SSandrine Bailleux# Flag to apply erratum 826977 workaround during reset. This erratum applies
15107288865SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
15207288865SSandrine BailleuxERRATA_A57_826977	?=0
15307288865SSandrine Bailleux
154a8b1c769SSandrine Bailleux# Flag to apply erratum 828024 workaround during reset. This erratum applies
155a8b1c769SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu.
156a8b1c769SSandrine BailleuxERRATA_A57_828024	?=0
157a8b1c769SSandrine Bailleux
1580b77197bSSandrine Bailleux# Flag to apply erratum 829520 workaround during reset. This erratum applies
1590b77197bSSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
1600b77197bSSandrine BailleuxERRATA_A57_829520	?=0
1610b77197bSSandrine Bailleux
162adeecf92SSandrine Bailleux# Flag to apply erratum 833471 workaround during reset. This erratum applies
163adeecf92SSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu.
164adeecf92SSandrine BailleuxERRATA_A57_833471	?=0
165adeecf92SSandrine Bailleux
16645b52c20SEleanor Bonnici# Flag to apply erratum 855972 workaround during reset. This erratum applies
16745b52c20SEleanor Bonnici# only to revision <= r1p3 of the Cortex A57 cpu.
16845b52c20SEleanor BonniciERRATA_A57_859972	?=0
16945b52c20SEleanor Bonnici
1706de9b336SEleanor Bonnici# Flag to apply erratum 855971 workaround during reset. This erratum applies
1716de9b336SEleanor Bonnici# only to revision <= r0p3 of the Cortex A72 cpu.
1726de9b336SEleanor BonniciERRATA_A72_859971	?=0
1736de9b336SEleanor Bonnici
17425278eabSLouis Mayencourt# Flag to apply erratum 852427 workaround during reset. This erratum applies
17525278eabSLouis Mayencourt# only to revision r0p0 of the Cortex A73 cpu.
17625278eabSLouis MayencourtERRATA_A73_852427	?=0
17725278eabSLouis Mayencourt
178e6cab15dSLouis Mayencourt# Flag to apply erratum 855423 workaround during reset. This erratum applies
179e6cab15dSLouis Mayencourt# only to revision <= r0p1 of the Cortex A73 cpu.
180e6cab15dSLouis MayencourtERRATA_A73_855423	?=0
181e6cab15dSLouis Mayencourt
1825f5d1ed7SLouis Mayencourt# Flag to apply erratum 764081 workaround during reset. This erratum applies
1835f5d1ed7SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
1845f5d1ed7SLouis MayencourtERRATA_A75_764081	?=0
1855f5d1ed7SLouis Mayencourt
18698551591SLouis Mayencourt# Flag to apply erratum 790748 workaround during reset. This erratum applies
18798551591SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu.
18898551591SLouis MayencourtERRATA_A75_790748	?=0
18998551591SLouis Mayencourt
1905c6aa01aSLouis Mayencourt# Flag to apply erratum 1073348 workaround during reset. This erratum applies
1915c6aa01aSLouis Mayencourt# only to revision <= r1p0 of the Cortex A76 cpu.
1925c6aa01aSLouis MayencourtERRATA_A76_1073348	?=0
1935c6aa01aSLouis Mayencourt
194508d7110SLouis Mayencourt# Flag to apply erratum 1130799 workaround during reset. This erratum applies
195508d7110SLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
196508d7110SLouis MayencourtERRATA_A76_1130799	?=0
197508d7110SLouis Mayencourt
1985cc8c7baSLouis Mayencourt# Flag to apply erratum 1220197 workaround during reset. This erratum applies
1995cc8c7baSLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu.
2005cc8c7baSLouis MayencourtERRATA_A76_1220197	?=0
2015cc8c7baSLouis Mayencourt
202040b546eSDimitris Papastamos# Flag to apply T32 CLREX workaround during reset. This erratum applies
203da6d75a0SJohn Tsichritzis# only to r0p0 and r1p0 of the Neoverse N1 cpu.
204da6d75a0SJohn TsichritzisERRATA_N1_1043202	?=1
205040b546eSDimitris Papastamos
2068a677180SJohn Tsichritzis# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
2078a677180SJohn Tsichritzis# the ACP interface and revision < r2p0. Applying the workaround results in
2088a677180SJohn Tsichritzis# higher DSU power consumption on idle.
2098a677180SJohn TsichritzisERRATA_DSU_936184	?=0
2108a677180SJohn Tsichritzis
21175a1ada9SAmbroise Vincent# Process ERRATA_A15_816470 flag
21275a1ada9SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_816470))
21375a1ada9SAmbroise Vincent$(eval $(call add_define,ERRATA_A15_816470))
21475a1ada9SAmbroise Vincent
2155f2c690dSAmbroise Vincent# Process ERRATA_A15_827671 flag
2165f2c690dSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_827671))
2175f2c690dSAmbroise Vincent$(eval $(call add_define,ERRATA_A15_827671))
2185f2c690dSAmbroise Vincent
219*0b64c194SAmbroise Vincent# Process ERRATA_A17_852421 flag
220*0b64c194SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852421))
221*0b64c194SAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852421))
222*0b64c194SAmbroise Vincent
223bd393704SAmbroise Vincent# Process ERRATA_A53_819472 flag
224bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_819472))
225bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_819472))
226bd393704SAmbroise Vincent
227bd393704SAmbroise Vincent# Process ERRATA_A53_824069 flag
228bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_824069))
229bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_824069))
230bd393704SAmbroise Vincent
2316b0d97b2SJimmy Huang# Process ERRATA_A53_826319 flag
2326b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_826319))
2336b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_826319))
2346b0d97b2SJimmy Huang
235bd393704SAmbroise Vincent# Process ERRATA_A53_827319 flag
236bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_827319))
237bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_827319))
238bd393704SAmbroise Vincent
239a94cc374SDouglas Raillard# Process ERRATA_A53_835769 flag
240a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_835769))
241a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_835769))
242a94cc374SDouglas Raillard
2436b0d97b2SJimmy Huang# Process ERRATA_A53_836870 flag
2446b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_836870))
2456b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_836870))
2466b0d97b2SJimmy Huang
247a94cc374SDouglas Raillard# Process ERRATA_A53_843419 flag
248a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_843419))
249a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_843419))
250a94cc374SDouglas Raillard
251b75dc0e4SAndre Przywara# Process ERRATA_A53_855873 flag
252b75dc0e4SAndre Przywara$(eval $(call assert_boolean,ERRATA_A53_855873))
253b75dc0e4SAndre Przywara$(eval $(call add_define,ERRATA_A53_855873))
254b75dc0e4SAndre Przywara
2551afeee92SAmbroise Vincent# Process ERRATA_A55_768277 flag
2561afeee92SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_768277))
2571afeee92SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_768277))
2581afeee92SAmbroise Vincent
259a6cc6610SAmbroise Vincent# Process ERRATA_A55_778703 flag
260a6cc6610SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_778703))
261a6cc6610SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_778703))
262a6cc6610SAmbroise Vincent
2636ab87d29SAmbroise Vincent# Process ERRATA_A55_798797 flag
2646ab87d29SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_798797))
2656ab87d29SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_798797))
2666ab87d29SAmbroise Vincent
2676e78973eSAmbroise Vincent# Process ERRATA_A55_846532 flag
2686e78973eSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_846532))
2696e78973eSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_846532))
2706e78973eSAmbroise Vincent
27147949f3fSAmbroise Vincent# Process ERRATA_A55_903758 flag
27247949f3fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_903758))
27347949f3fSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_903758))
27447949f3fSAmbroise Vincent
2755541bb3fSSoby Mathew# Process ERRATA_A57_806969 flag
2765541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_806969))
2775541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_806969))
2785541bb3fSSoby Mathew
279ccbec91cSAntonio Nino Diaz# Process ERRATA_A57_813419 flag
280ccbec91cSAntonio Nino Diaz$(eval $(call assert_boolean,ERRATA_A57_813419))
281ccbec91cSAntonio Nino Diaz$(eval $(call add_define,ERRATA_A57_813419))
282ccbec91cSAntonio Nino Diaz
2835541bb3fSSoby Mathew# Process ERRATA_A57_813420 flag
2845541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_813420))
2855541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_813420))
286df22d602SSandrine Bailleux
2870f6fbbd2SAmbroise Vincent# Process ERRATA_A57_814670 flag
2880f6fbbd2SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_814670))
2890f6fbbd2SAmbroise Vincent$(eval $(call add_define,ERRATA_A57_814670))
2900f6fbbd2SAmbroise Vincent
2915bd2c24fSAmbroise Vincent# Process ERRATA_A57_817169 flag
2925bd2c24fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_817169))
2935bd2c24fSAmbroise Vincent$(eval $(call add_define,ERRATA_A57_817169))
2945bd2c24fSAmbroise Vincent
295df22d602SSandrine Bailleux# Process ERRATA_A57_826974 flag
296df22d602SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826974))
297df22d602SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826974))
298a8b1c769SSandrine Bailleux
29907288865SSandrine Bailleux# Process ERRATA_A57_826977 flag
30007288865SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826977))
30107288865SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826977))
30207288865SSandrine Bailleux
303a8b1c769SSandrine Bailleux# Process ERRATA_A57_828024 flag
304a8b1c769SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_828024))
305a8b1c769SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_828024))
3060b77197bSSandrine Bailleux
3070b77197bSSandrine Bailleux# Process ERRATA_A57_829520 flag
3080b77197bSSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_829520))
3090b77197bSSandrine Bailleux$(eval $(call add_define,ERRATA_A57_829520))
310adeecf92SSandrine Bailleux
311adeecf92SSandrine Bailleux# Process ERRATA_A57_833471 flag
312adeecf92SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_833471))
313adeecf92SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_833471))
314a94cc374SDouglas Raillard
31545b52c20SEleanor Bonnici# Process ERRATA_A57_859972 flag
31645b52c20SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A57_859972))
31745b52c20SEleanor Bonnici$(eval $(call add_define,ERRATA_A57_859972))
31845b52c20SEleanor Bonnici
3196de9b336SEleanor Bonnici# Process ERRATA_A72_859971 flag
3206de9b336SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A72_859971))
3216de9b336SEleanor Bonnici$(eval $(call add_define,ERRATA_A72_859971))
3226de9b336SEleanor Bonnici
32325278eabSLouis Mayencourt# Process ERRATA_A73_852427 flag
32425278eabSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_852427))
32525278eabSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_852427))
32625278eabSLouis Mayencourt
327e6cab15dSLouis Mayencourt# Process ERRATA_A73_855423 flag
328e6cab15dSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_855423))
329e6cab15dSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_855423))
330e6cab15dSLouis Mayencourt
3315f5d1ed7SLouis Mayencourt# Process ERRATA_A75_764081 flag
3325f5d1ed7SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_764081))
3335f5d1ed7SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_764081))
3345f5d1ed7SLouis Mayencourt
33598551591SLouis Mayencourt# Process ERRATA_A75_790748 flag
33698551591SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_790748))
33798551591SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_790748))
33898551591SLouis Mayencourt
3395c6aa01aSLouis Mayencourt# Process ERRATA_A76_1073348 flag
3405c6aa01aSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1073348))
3415c6aa01aSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1073348))
3425c6aa01aSLouis Mayencourt
343508d7110SLouis Mayencourt# Process ERRATA_A76_1130799 flag
344508d7110SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1130799))
345508d7110SLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1130799))
346508d7110SLouis Mayencourt
3475cc8c7baSLouis Mayencourt# Process ERRATA_A76_1220197 flag
3485cc8c7baSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1220197))
3495cc8c7baSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1220197))
3505cc8c7baSLouis Mayencourt
351da6d75a0SJohn Tsichritzis# Process ERRATA_N1_1043202 flag
352da6d75a0SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_N1_1043202))
353da6d75a0SJohn Tsichritzis$(eval $(call add_define,ERRATA_N1_1043202))
354040b546eSDimitris Papastamos
3558a677180SJohn Tsichritzis# Process ERRATA_DSU_936184 flag
3568a677180SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_DSU_936184))
3578a677180SJohn Tsichritzis$(eval $(call add_define,ERRATA_DSU_936184))
3588a677180SJohn Tsichritzis
359a94cc374SDouglas Raillard# Errata build flags
360a94cc374SDouglas Raillardifneq (${ERRATA_A53_843419},0)
361c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-843419
362a94cc374SDouglas Raillardendif
363a94cc374SDouglas Raillard
364a94cc374SDouglas Raillardifneq (${ERRATA_A53_835769},0)
365a94cc374SDouglas RaillardTF_CFLAGS_aarch64	+= -mfix-cortex-a53-835769
366c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64	+= --fix-cortex-a53-835769
367a94cc374SDouglas Raillardendif
368