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 56*dd4cf2c7SJoel Hutton# Flag to apply erratum 794073 workaround when disabling mmu. 57*dd4cf2c7SJoel HuttonERRATA_A9_794073 ?=0 58*dd4cf2c7SJoel 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 75bd393704SAmbroise Vincent# Flag to apply erratum 819472 workaround during reset. This erratum applies 76bd393704SAmbroise Vincent# only to revision <= r0p1 of the Cortex A53 cpu. 77bd393704SAmbroise VincentERRATA_A53_819472 ?=0 78bd393704SAmbroise Vincent 79bd393704SAmbroise Vincent# Flag to apply erratum 824069 workaround during reset. This erratum applies 80bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu. 81bd393704SAmbroise VincentERRATA_A53_824069 ?=0 82bd393704SAmbroise Vincent 83097b787aSSandrine Bailleux# Flag to apply erratum 826319 workaround during reset. This erratum applies 84097b787aSSandrine Bailleux# only to revision <= r0p2 of the Cortex A53 cpu. 856b0d97b2SJimmy HuangERRATA_A53_826319 ?=0 866b0d97b2SJimmy Huang 87bd393704SAmbroise Vincent# Flag to apply erratum 827319 workaround during reset. This erratum applies 88bd393704SAmbroise Vincent# only to revision <= r0p2 of the Cortex A53 cpu. 89bd393704SAmbroise VincentERRATA_A53_827319 ?=0 90bd393704SAmbroise Vincent 91a94cc374SDouglas Raillard# Flag to apply erratum 835769 workaround at compile and link time. This 92a94cc374SDouglas Raillard# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this 93a94cc374SDouglas Raillard# workaround can lead the linker to create "*.stub" sections. 94a94cc374SDouglas RaillardERRATA_A53_835769 ?=0 95a94cc374SDouglas Raillard 96097b787aSSandrine Bailleux# Flag to apply erratum 836870 workaround during reset. This erratum applies 97097b787aSSandrine Bailleux# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this 983fbe46d7SDouglas Raillard# erratum workaround is enabled by default in hardware. 996b0d97b2SJimmy HuangERRATA_A53_836870 ?=0 1006b0d97b2SJimmy Huang 101a94cc374SDouglas Raillard# Flag to apply erratum 843419 workaround at link time. 102a94cc374SDouglas Raillard# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this 103a94cc374SDouglas Raillard# workaround could lead the linker to emit "*.stub" sections which are 4kB 104a94cc374SDouglas Raillard# aligned. 105a94cc374SDouglas RaillardERRATA_A53_843419 ?=0 106a94cc374SDouglas Raillard 107b75dc0e4SAndre Przywara# Flag to apply errata 855873 during reset. This errata applies to all 108b75dc0e4SAndre Przywara# revisions of the Cortex A53 CPU, but this firmware workaround only works 109b75dc0e4SAndre Przywara# for revisions r0p3 and higher. Earlier revisions are taken care 110b75dc0e4SAndre Przywara# of by the rich OS. 111b75dc0e4SAndre PrzywaraERRATA_A53_855873 ?=0 112b75dc0e4SAndre Przywara 1131afeee92SAmbroise Vincent# Flag to apply erratum 768277 workaround during reset. This erratum applies 1141afeee92SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu. 1151afeee92SAmbroise VincentERRATA_A55_768277 ?=0 1161afeee92SAmbroise Vincent 117a6cc6610SAmbroise Vincent# Flag to apply erratum 778703 workaround during reset. This erratum applies 118a6cc6610SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu. 119a6cc6610SAmbroise VincentERRATA_A55_778703 ?=0 120a6cc6610SAmbroise Vincent 1216ab87d29SAmbroise Vincent# Flag to apply erratum 798797 workaround during reset. This erratum applies 1226ab87d29SAmbroise Vincent# only to revision r0p0 of the Cortex A55 cpu. 1236ab87d29SAmbroise VincentERRATA_A55_798797 ?=0 1246ab87d29SAmbroise Vincent 1256e78973eSAmbroise Vincent# Flag to apply erratum 846532 workaround during reset. This erratum applies 1266e78973eSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu. 1276e78973eSAmbroise VincentERRATA_A55_846532 ?=0 1286e78973eSAmbroise Vincent 12947949f3fSAmbroise Vincent# Flag to apply erratum 903758 workaround during reset. This erratum applies 13047949f3fSAmbroise Vincent# only to revision <= r0p1 of the Cortex A55 cpu. 13147949f3fSAmbroise VincentERRATA_A55_903758 ?=0 13247949f3fSAmbroise Vincent 133097b787aSSandrine Bailleux# Flag to apply erratum 806969 workaround during reset. This erratum applies 134097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu. 1355541bb3fSSoby MathewERRATA_A57_806969 ?=0 1365541bb3fSSoby Mathew 137ccbec91cSAntonio Nino Diaz# Flag to apply erratum 813419 workaround during reset. This erratum applies 138ccbec91cSAntonio Nino Diaz# only to revision r0p0 of the Cortex A57 cpu. 139ccbec91cSAntonio Nino DiazERRATA_A57_813419 ?=0 140ccbec91cSAntonio Nino Diaz 141097b787aSSandrine Bailleux# Flag to apply erratum 813420 workaround during reset. This erratum applies 142097b787aSSandrine Bailleux# only to revision r0p0 of the Cortex A57 cpu. 1435541bb3fSSoby MathewERRATA_A57_813420 ?=0 1445541bb3fSSoby Mathew 1450f6fbbd2SAmbroise Vincent# Flag to apply erratum 814670 workaround during reset. This erratum applies 1460f6fbbd2SAmbroise Vincent# only to revision r0p0 of the Cortex A57 cpu. 1470f6fbbd2SAmbroise VincentERRATA_A57_814670 ?=0 1480f6fbbd2SAmbroise Vincent 1495bd2c24fSAmbroise Vincent# Flag to apply erratum 817169 workaround during power down. This erratum 1505bd2c24fSAmbroise Vincent# applies only to revision <= r0p1 of the Cortex A57 cpu. 1515bd2c24fSAmbroise VincentERRATA_A57_817169 ?=0 1525bd2c24fSAmbroise Vincent 153df22d602SSandrine Bailleux# Flag to apply erratum 826974 workaround during reset. This erratum applies 154df22d602SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu. 155df22d602SSandrine BailleuxERRATA_A57_826974 ?=0 156df22d602SSandrine Bailleux 15707288865SSandrine Bailleux# Flag to apply erratum 826977 workaround during reset. This erratum applies 15807288865SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu. 15907288865SSandrine BailleuxERRATA_A57_826977 ?=0 16007288865SSandrine Bailleux 161a8b1c769SSandrine Bailleux# Flag to apply erratum 828024 workaround during reset. This erratum applies 162a8b1c769SSandrine Bailleux# only to revision <= r1p1 of the Cortex A57 cpu. 163a8b1c769SSandrine BailleuxERRATA_A57_828024 ?=0 164a8b1c769SSandrine Bailleux 1650b77197bSSandrine Bailleux# Flag to apply erratum 829520 workaround during reset. This erratum applies 1660b77197bSSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu. 1670b77197bSSandrine BailleuxERRATA_A57_829520 ?=0 1680b77197bSSandrine Bailleux 169adeecf92SSandrine Bailleux# Flag to apply erratum 833471 workaround during reset. This erratum applies 170adeecf92SSandrine Bailleux# only to revision <= r1p2 of the Cortex A57 cpu. 171adeecf92SSandrine BailleuxERRATA_A57_833471 ?=0 172adeecf92SSandrine Bailleux 17345b52c20SEleanor Bonnici# Flag to apply erratum 855972 workaround during reset. This erratum applies 17445b52c20SEleanor Bonnici# only to revision <= r1p3 of the Cortex A57 cpu. 17545b52c20SEleanor BonniciERRATA_A57_859972 ?=0 17645b52c20SEleanor Bonnici 1776de9b336SEleanor Bonnici# Flag to apply erratum 855971 workaround during reset. This erratum applies 1786de9b336SEleanor Bonnici# only to revision <= r0p3 of the Cortex A72 cpu. 1796de9b336SEleanor BonniciERRATA_A72_859971 ?=0 1806de9b336SEleanor Bonnici 18125278eabSLouis Mayencourt# Flag to apply erratum 852427 workaround during reset. This erratum applies 18225278eabSLouis Mayencourt# only to revision r0p0 of the Cortex A73 cpu. 18325278eabSLouis MayencourtERRATA_A73_852427 ?=0 18425278eabSLouis Mayencourt 185e6cab15dSLouis Mayencourt# Flag to apply erratum 855423 workaround during reset. This erratum applies 186e6cab15dSLouis Mayencourt# only to revision <= r0p1 of the Cortex A73 cpu. 187e6cab15dSLouis MayencourtERRATA_A73_855423 ?=0 188e6cab15dSLouis Mayencourt 1895f5d1ed7SLouis Mayencourt# Flag to apply erratum 764081 workaround during reset. This erratum applies 1905f5d1ed7SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu. 1915f5d1ed7SLouis MayencourtERRATA_A75_764081 ?=0 1925f5d1ed7SLouis Mayencourt 19398551591SLouis Mayencourt# Flag to apply erratum 790748 workaround during reset. This erratum applies 19498551591SLouis Mayencourt# only to revision <= r0p0 of the Cortex A75 cpu. 19598551591SLouis MayencourtERRATA_A75_790748 ?=0 19698551591SLouis Mayencourt 1975c6aa01aSLouis Mayencourt# Flag to apply erratum 1073348 workaround during reset. This erratum applies 1985c6aa01aSLouis Mayencourt# only to revision <= r1p0 of the Cortex A76 cpu. 1995c6aa01aSLouis MayencourtERRATA_A76_1073348 ?=0 2005c6aa01aSLouis Mayencourt 201508d7110SLouis Mayencourt# Flag to apply erratum 1130799 workaround during reset. This erratum applies 202508d7110SLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu. 203508d7110SLouis MayencourtERRATA_A76_1130799 ?=0 204508d7110SLouis Mayencourt 2055cc8c7baSLouis Mayencourt# Flag to apply erratum 1220197 workaround during reset. This erratum applies 2065cc8c7baSLouis Mayencourt# only to revision <= r2p0 of the Cortex A76 cpu. 2075cc8c7baSLouis MayencourtERRATA_A76_1220197 ?=0 2085cc8c7baSLouis Mayencourt 209040b546eSDimitris Papastamos# Flag to apply T32 CLREX workaround during reset. This erratum applies 210da6d75a0SJohn Tsichritzis# only to r0p0 and r1p0 of the Neoverse N1 cpu. 211da6d75a0SJohn TsichritzisERRATA_N1_1043202 ?=1 212040b546eSDimitris Papastamos 2138a677180SJohn Tsichritzis# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing 2148a677180SJohn Tsichritzis# the ACP interface and revision < r2p0. Applying the workaround results in 2158a677180SJohn Tsichritzis# higher DSU power consumption on idle. 2168a677180SJohn TsichritzisERRATA_DSU_936184 ?=0 2178a677180SJohn Tsichritzis 218*dd4cf2c7SJoel Hutton# Process ERRATA_A9_794073 flag 219*dd4cf2c7SJoel Hutton$(eval $(call assert_boolean,ERRATA_A9_794073)) 220*dd4cf2c7SJoel Hutton$(eval $(call add_define,ERRATA_A9_794073)) 221*dd4cf2c7SJoel Hutton 22275a1ada9SAmbroise Vincent# Process ERRATA_A15_816470 flag 22375a1ada9SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_816470)) 22475a1ada9SAmbroise Vincent$(eval $(call add_define,ERRATA_A15_816470)) 22575a1ada9SAmbroise Vincent 2265f2c690dSAmbroise Vincent# Process ERRATA_A15_827671 flag 2275f2c690dSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A15_827671)) 2285f2c690dSAmbroise Vincent$(eval $(call add_define,ERRATA_A15_827671)) 2295f2c690dSAmbroise Vincent 2300b64c194SAmbroise Vincent# Process ERRATA_A17_852421 flag 2310b64c194SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852421)) 2320b64c194SAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852421)) 2330b64c194SAmbroise Vincent 234be10dcdeSAmbroise Vincent# Process ERRATA_A17_852423 flag 235be10dcdeSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A17_852423)) 236be10dcdeSAmbroise Vincent$(eval $(call add_define,ERRATA_A17_852423)) 237be10dcdeSAmbroise Vincent 238bd393704SAmbroise Vincent# Process ERRATA_A53_819472 flag 239bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_819472)) 240bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_819472)) 241bd393704SAmbroise Vincent 242bd393704SAmbroise Vincent# Process ERRATA_A53_824069 flag 243bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_824069)) 244bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_824069)) 245bd393704SAmbroise Vincent 2466b0d97b2SJimmy Huang# Process ERRATA_A53_826319 flag 2476b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_826319)) 2486b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_826319)) 2496b0d97b2SJimmy Huang 250bd393704SAmbroise Vincent# Process ERRATA_A53_827319 flag 251bd393704SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A53_827319)) 252bd393704SAmbroise Vincent$(eval $(call add_define,ERRATA_A53_827319)) 253bd393704SAmbroise Vincent 254a94cc374SDouglas Raillard# Process ERRATA_A53_835769 flag 255a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_835769)) 256a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_835769)) 257a94cc374SDouglas Raillard 2586b0d97b2SJimmy Huang# Process ERRATA_A53_836870 flag 2596b0d97b2SJimmy Huang$(eval $(call assert_boolean,ERRATA_A53_836870)) 2606b0d97b2SJimmy Huang$(eval $(call add_define,ERRATA_A53_836870)) 2616b0d97b2SJimmy Huang 262a94cc374SDouglas Raillard# Process ERRATA_A53_843419 flag 263a94cc374SDouglas Raillard$(eval $(call assert_boolean,ERRATA_A53_843419)) 264a94cc374SDouglas Raillard$(eval $(call add_define,ERRATA_A53_843419)) 265a94cc374SDouglas Raillard 266b75dc0e4SAndre Przywara# Process ERRATA_A53_855873 flag 267b75dc0e4SAndre Przywara$(eval $(call assert_boolean,ERRATA_A53_855873)) 268b75dc0e4SAndre Przywara$(eval $(call add_define,ERRATA_A53_855873)) 269b75dc0e4SAndre Przywara 2701afeee92SAmbroise Vincent# Process ERRATA_A55_768277 flag 2711afeee92SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_768277)) 2721afeee92SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_768277)) 2731afeee92SAmbroise Vincent 274a6cc6610SAmbroise Vincent# Process ERRATA_A55_778703 flag 275a6cc6610SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_778703)) 276a6cc6610SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_778703)) 277a6cc6610SAmbroise Vincent 2786ab87d29SAmbroise Vincent# Process ERRATA_A55_798797 flag 2796ab87d29SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_798797)) 2806ab87d29SAmbroise Vincent$(eval $(call add_define,ERRATA_A55_798797)) 2816ab87d29SAmbroise Vincent 2826e78973eSAmbroise Vincent# Process ERRATA_A55_846532 flag 2836e78973eSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_846532)) 2846e78973eSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_846532)) 2856e78973eSAmbroise Vincent 28647949f3fSAmbroise Vincent# Process ERRATA_A55_903758 flag 28747949f3fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A55_903758)) 28847949f3fSAmbroise Vincent$(eval $(call add_define,ERRATA_A55_903758)) 28947949f3fSAmbroise Vincent 2905541bb3fSSoby Mathew# Process ERRATA_A57_806969 flag 2915541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_806969)) 2925541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_806969)) 2935541bb3fSSoby Mathew 294ccbec91cSAntonio Nino Diaz# Process ERRATA_A57_813419 flag 295ccbec91cSAntonio Nino Diaz$(eval $(call assert_boolean,ERRATA_A57_813419)) 296ccbec91cSAntonio Nino Diaz$(eval $(call add_define,ERRATA_A57_813419)) 297ccbec91cSAntonio Nino Diaz 2985541bb3fSSoby Mathew# Process ERRATA_A57_813420 flag 2995541bb3fSSoby Mathew$(eval $(call assert_boolean,ERRATA_A57_813420)) 3005541bb3fSSoby Mathew$(eval $(call add_define,ERRATA_A57_813420)) 301df22d602SSandrine Bailleux 3020f6fbbd2SAmbroise Vincent# Process ERRATA_A57_814670 flag 3030f6fbbd2SAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_814670)) 3040f6fbbd2SAmbroise Vincent$(eval $(call add_define,ERRATA_A57_814670)) 3050f6fbbd2SAmbroise Vincent 3065bd2c24fSAmbroise Vincent# Process ERRATA_A57_817169 flag 3075bd2c24fSAmbroise Vincent$(eval $(call assert_boolean,ERRATA_A57_817169)) 3085bd2c24fSAmbroise Vincent$(eval $(call add_define,ERRATA_A57_817169)) 3095bd2c24fSAmbroise Vincent 310df22d602SSandrine Bailleux# Process ERRATA_A57_826974 flag 311df22d602SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826974)) 312df22d602SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826974)) 313a8b1c769SSandrine Bailleux 31407288865SSandrine Bailleux# Process ERRATA_A57_826977 flag 31507288865SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_826977)) 31607288865SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_826977)) 31707288865SSandrine Bailleux 318a8b1c769SSandrine Bailleux# Process ERRATA_A57_828024 flag 319a8b1c769SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_828024)) 320a8b1c769SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_828024)) 3210b77197bSSandrine Bailleux 3220b77197bSSandrine Bailleux# Process ERRATA_A57_829520 flag 3230b77197bSSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_829520)) 3240b77197bSSandrine Bailleux$(eval $(call add_define,ERRATA_A57_829520)) 325adeecf92SSandrine Bailleux 326adeecf92SSandrine Bailleux# Process ERRATA_A57_833471 flag 327adeecf92SSandrine Bailleux$(eval $(call assert_boolean,ERRATA_A57_833471)) 328adeecf92SSandrine Bailleux$(eval $(call add_define,ERRATA_A57_833471)) 329a94cc374SDouglas Raillard 33045b52c20SEleanor Bonnici# Process ERRATA_A57_859972 flag 33145b52c20SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A57_859972)) 33245b52c20SEleanor Bonnici$(eval $(call add_define,ERRATA_A57_859972)) 33345b52c20SEleanor Bonnici 3346de9b336SEleanor Bonnici# Process ERRATA_A72_859971 flag 3356de9b336SEleanor Bonnici$(eval $(call assert_boolean,ERRATA_A72_859971)) 3366de9b336SEleanor Bonnici$(eval $(call add_define,ERRATA_A72_859971)) 3376de9b336SEleanor Bonnici 33825278eabSLouis Mayencourt# Process ERRATA_A73_852427 flag 33925278eabSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_852427)) 34025278eabSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_852427)) 34125278eabSLouis Mayencourt 342e6cab15dSLouis Mayencourt# Process ERRATA_A73_855423 flag 343e6cab15dSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A73_855423)) 344e6cab15dSLouis Mayencourt$(eval $(call add_define,ERRATA_A73_855423)) 345e6cab15dSLouis Mayencourt 3465f5d1ed7SLouis Mayencourt# Process ERRATA_A75_764081 flag 3475f5d1ed7SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_764081)) 3485f5d1ed7SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_764081)) 3495f5d1ed7SLouis Mayencourt 35098551591SLouis Mayencourt# Process ERRATA_A75_790748 flag 35198551591SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A75_790748)) 35298551591SLouis Mayencourt$(eval $(call add_define,ERRATA_A75_790748)) 35398551591SLouis Mayencourt 3545c6aa01aSLouis Mayencourt# Process ERRATA_A76_1073348 flag 3555c6aa01aSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1073348)) 3565c6aa01aSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1073348)) 3575c6aa01aSLouis Mayencourt 358508d7110SLouis Mayencourt# Process ERRATA_A76_1130799 flag 359508d7110SLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1130799)) 360508d7110SLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1130799)) 361508d7110SLouis Mayencourt 3625cc8c7baSLouis Mayencourt# Process ERRATA_A76_1220197 flag 3635cc8c7baSLouis Mayencourt$(eval $(call assert_boolean,ERRATA_A76_1220197)) 3645cc8c7baSLouis Mayencourt$(eval $(call add_define,ERRATA_A76_1220197)) 3655cc8c7baSLouis Mayencourt 366da6d75a0SJohn Tsichritzis# Process ERRATA_N1_1043202 flag 367da6d75a0SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_N1_1043202)) 368da6d75a0SJohn Tsichritzis$(eval $(call add_define,ERRATA_N1_1043202)) 369040b546eSDimitris Papastamos 3708a677180SJohn Tsichritzis# Process ERRATA_DSU_936184 flag 3718a677180SJohn Tsichritzis$(eval $(call assert_boolean,ERRATA_DSU_936184)) 3728a677180SJohn Tsichritzis$(eval $(call add_define,ERRATA_DSU_936184)) 3738a677180SJohn Tsichritzis 374a94cc374SDouglas Raillard# Errata build flags 375a94cc374SDouglas Raillardifneq (${ERRATA_A53_843419},0) 376c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64 += --fix-cortex-a53-843419 377a94cc374SDouglas Raillardendif 378a94cc374SDouglas Raillard 379a94cc374SDouglas Raillardifneq (${ERRATA_A53_835769},0) 380a94cc374SDouglas RaillardTF_CFLAGS_aarch64 += -mfix-cortex-a53-835769 381c2b8806fSDouglas RaillardTF_LDFLAGS_aarch64 += --fix-cortex-a53-835769 382a94cc374SDouglas Raillardendif 383