Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 1 | # |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 2 | # Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved. |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 5 | # |
| 6 | |
Soby Mathew | 937488b | 2014-09-22 14:13:34 +0100 | [diff] [blame] | 7 | # Cortex A57 specific optimisation to skip L1 cache flush when |
| 8 | # cluster is powered down. |
| 9 | SKIP_A57_L1_FLUSH_PWR_DWN ?=0 |
| 10 | |
Sandrine Bailleux | d481759 | 2016-01-13 14:57:38 +0000 | [diff] [blame] | 11 | # Flag to disable the cache non-temporal hint. |
| 12 | # It is enabled by default. |
| 13 | A53_DISABLE_NON_TEMPORAL_HINT ?=1 |
| 14 | |
| 15 | # Flag to disable the cache non-temporal hint. |
| 16 | # It is enabled by default. |
| 17 | A57_DISABLE_NON_TEMPORAL_HINT ?=1 |
| 18 | |
Dimitris Papastamos | 446f7f1 | 2017-11-30 14:53:53 +0000 | [diff] [blame] | 19 | WORKAROUND_CVE_2017_5715 ?=1 |
Dimitris Papastamos | e6625ec | 2018-04-05 14:38:26 +0100 | [diff] [blame] | 20 | WORKAROUND_CVE_2018_3639 ?=1 |
Dimitris Papastamos | ba51d9e | 2018-05-16 11:36:14 +0100 | [diff] [blame] | 21 | DYNAMIC_WORKAROUND_CVE_2018_3639 ?=0 |
Dimitris Papastamos | 446f7f1 | 2017-11-30 14:53:53 +0000 | [diff] [blame] | 22 | |
Soby Mathew | 937488b | 2014-09-22 14:13:34 +0100 | [diff] [blame] | 23 | # Process SKIP_A57_L1_FLUSH_PWR_DWN flag |
| 24 | $(eval $(call assert_boolean,SKIP_A57_L1_FLUSH_PWR_DWN)) |
| 25 | $(eval $(call add_define,SKIP_A57_L1_FLUSH_PWR_DWN)) |
| 26 | |
Sandrine Bailleux | d481759 | 2016-01-13 14:57:38 +0000 | [diff] [blame] | 27 | # Process A53_DISABLE_NON_TEMPORAL_HINT flag |
| 28 | $(eval $(call assert_boolean,A53_DISABLE_NON_TEMPORAL_HINT)) |
| 29 | $(eval $(call add_define,A53_DISABLE_NON_TEMPORAL_HINT)) |
| 30 | |
| 31 | # Process A57_DISABLE_NON_TEMPORAL_HINT flag |
| 32 | $(eval $(call assert_boolean,A57_DISABLE_NON_TEMPORAL_HINT)) |
| 33 | $(eval $(call add_define,A57_DISABLE_NON_TEMPORAL_HINT)) |
| 34 | |
Dimitris Papastamos | 446f7f1 | 2017-11-30 14:53:53 +0000 | [diff] [blame] | 35 | # Process WORKAROUND_CVE_2017_5715 flag |
| 36 | $(eval $(call assert_boolean,WORKAROUND_CVE_2017_5715)) |
| 37 | $(eval $(call add_define,WORKAROUND_CVE_2017_5715)) |
Soby Mathew | 937488b | 2014-09-22 14:13:34 +0100 | [diff] [blame] | 38 | |
Dimitris Papastamos | e6625ec | 2018-04-05 14:38:26 +0100 | [diff] [blame] | 39 | # Process WORKAROUND_CVE_2018_3639 flag |
| 40 | $(eval $(call assert_boolean,WORKAROUND_CVE_2018_3639)) |
| 41 | $(eval $(call add_define,WORKAROUND_CVE_2018_3639)) |
| 42 | |
Dimitris Papastamos | ba51d9e | 2018-05-16 11:36:14 +0100 | [diff] [blame] | 43 | $(eval $(call assert_boolean,DYNAMIC_WORKAROUND_CVE_2018_3639)) |
| 44 | $(eval $(call add_define,DYNAMIC_WORKAROUND_CVE_2018_3639)) |
| 45 | |
| 46 | ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0) |
| 47 | ifeq (${WORKAROUND_CVE_2018_3639},0) |
| 48 | $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1") |
| 49 | endif |
| 50 | endif |
| 51 | |
Sandrine Bailleux | afa8a78 | 2016-04-14 12:59:42 +0100 | [diff] [blame] | 52 | # CPU Errata Build flags. |
| 53 | # These should be enabled by the platform if the erratum workaround needs to be |
| 54 | # applied. |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 55 | |
Ambroise Vincent | d4a51eb | 2019-03-04 16:56:26 +0000 | [diff] [blame] | 56 | # Flag to apply erratum 816470 workaround during power down. This erratum |
| 57 | # applies only to revision >= r3p0 of the Cortex A15 cpu. |
| 58 | ERRATA_A15_816470 ?=0 |
| 59 | |
Ambroise Vincent | 68b3812 | 2019-03-05 09:54:21 +0000 | [diff] [blame] | 60 | # Flag to apply erratum 827671 workaround during reset. This erratum applies |
| 61 | # only to revision >= r3p0 of the Cortex A15 cpu. |
| 62 | ERRATA_A15_827671 ?=0 |
| 63 | |
Ambroise Vincent | 8cf9eef | 2019-02-28 16:23:53 +0000 | [diff] [blame] | 64 | # Flag to apply erratum 852421 workaround during reset. This erratum applies |
| 65 | # only to revision <= r1p2 of the Cortex A17 cpu. |
| 66 | ERRATA_A17_852421 ?=0 |
| 67 | |
Ambroise Vincent | fa5c951 | 2019-03-04 13:20:56 +0000 | [diff] [blame] | 68 | # Flag to apply erratum 852423 workaround during reset. This erratum applies |
| 69 | # only to revision <= r1p2 of the Cortex A17 cpu. |
| 70 | ERRATA_A17_852423 ?=0 |
| 71 | |
Ambroise Vincent | f5fdfbc | 2019-02-21 14:16:24 +0000 | [diff] [blame] | 72 | # Flag to apply erratum 819472 workaround during reset. This erratum applies |
| 73 | # only to revision <= r0p1 of the Cortex A53 cpu. |
| 74 | ERRATA_A53_819472 ?=0 |
| 75 | |
| 76 | # Flag to apply erratum 824069 workaround during reset. This erratum applies |
| 77 | # only to revision <= r0p2 of the Cortex A53 cpu. |
| 78 | ERRATA_A53_824069 ?=0 |
| 79 | |
Sandrine Bailleux | afa8a78 | 2016-04-14 12:59:42 +0100 | [diff] [blame] | 80 | # Flag to apply erratum 826319 workaround during reset. This erratum applies |
| 81 | # only to revision <= r0p2 of the Cortex A53 cpu. |
developer | 4fceaca | 2015-07-29 20:55:31 +0800 | [diff] [blame] | 82 | ERRATA_A53_826319 ?=0 |
| 83 | |
Ambroise Vincent | f5fdfbc | 2019-02-21 14:16:24 +0000 | [diff] [blame] | 84 | # Flag to apply erratum 827319 workaround during reset. This erratum applies |
| 85 | # only to revision <= r0p2 of the Cortex A53 cpu. |
| 86 | ERRATA_A53_827319 ?=0 |
| 87 | |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 88 | # Flag to apply erratum 835769 workaround at compile and link time. This |
| 89 | # erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this |
| 90 | # workaround can lead the linker to create "*.stub" sections. |
| 91 | ERRATA_A53_835769 ?=0 |
| 92 | |
Sandrine Bailleux | afa8a78 | 2016-04-14 12:59:42 +0100 | [diff] [blame] | 93 | # Flag to apply erratum 836870 workaround during reset. This erratum applies |
| 94 | # only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this |
Douglas Raillard | c847f66 | 2017-02-15 17:38:43 +0000 | [diff] [blame] | 95 | # erratum workaround is enabled by default in hardware. |
developer | 4fceaca | 2015-07-29 20:55:31 +0800 | [diff] [blame] | 96 | ERRATA_A53_836870 ?=0 |
| 97 | |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 98 | # Flag to apply erratum 843419 workaround at link time. |
| 99 | # This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this |
| 100 | # workaround could lead the linker to emit "*.stub" sections which are 4kB |
| 101 | # aligned. |
| 102 | ERRATA_A53_843419 ?=0 |
| 103 | |
Andre Przywara | 00eefd9 | 2016-10-06 16:54:53 +0100 | [diff] [blame] | 104 | # Flag to apply errata 855873 during reset. This errata applies to all |
| 105 | # revisions of the Cortex A53 CPU, but this firmware workaround only works |
| 106 | # for revisions r0p3 and higher. Earlier revisions are taken care |
| 107 | # of by the rich OS. |
| 108 | ERRATA_A53_855873 ?=0 |
| 109 | |
Ambroise Vincent | 7927fa0 | 2019-02-21 16:20:43 +0000 | [diff] [blame] | 110 | # Flag to apply erratum 768277 workaround during reset. This erratum applies |
| 111 | # only to revision r0p0 of the Cortex A55 cpu. |
| 112 | ERRATA_A55_768277 ?=0 |
| 113 | |
Ambroise Vincent | 6f31960 | 2019-02-21 16:25:37 +0000 | [diff] [blame] | 114 | # Flag to apply erratum 778703 workaround during reset. This erratum applies |
| 115 | # only to revision r0p0 of the Cortex A55 cpu. |
| 116 | ERRATA_A55_778703 ?=0 |
| 117 | |
Ambroise Vincent | 6a77f05 | 2019-02-21 16:27:34 +0000 | [diff] [blame] | 118 | # Flag to apply erratum 798797 workaround during reset. This erratum applies |
| 119 | # only to revision r0p0 of the Cortex A55 cpu. |
| 120 | ERRATA_A55_798797 ?=0 |
| 121 | |
Ambroise Vincent | dd961f7 | 2019-02-21 16:29:16 +0000 | [diff] [blame] | 122 | # Flag to apply erratum 846532 workaround during reset. This erratum applies |
| 123 | # only to revision <= r0p1 of the Cortex A55 cpu. |
| 124 | ERRATA_A55_846532 ?=0 |
| 125 | |
Ambroise Vincent | a1d6446 | 2019-02-21 16:29:50 +0000 | [diff] [blame] | 126 | # Flag to apply erratum 903758 workaround during reset. This erratum applies |
| 127 | # only to revision <= r0p1 of the Cortex A55 cpu. |
| 128 | ERRATA_A55_903758 ?=0 |
| 129 | |
Sandrine Bailleux | afa8a78 | 2016-04-14 12:59:42 +0100 | [diff] [blame] | 130 | # Flag to apply erratum 806969 workaround during reset. This erratum applies |
| 131 | # only to revision r0p0 of the Cortex A57 cpu. |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 132 | ERRATA_A57_806969 ?=0 |
| 133 | |
Antonio Nino Diaz | 3f13c35 | 2017-02-24 11:39:22 +0000 | [diff] [blame] | 134 | # Flag to apply erratum 813419 workaround during reset. This erratum applies |
| 135 | # only to revision r0p0 of the Cortex A57 cpu. |
| 136 | ERRATA_A57_813419 ?=0 |
| 137 | |
Sandrine Bailleux | afa8a78 | 2016-04-14 12:59:42 +0100 | [diff] [blame] | 138 | # Flag to apply erratum 813420 workaround during reset. This erratum applies |
| 139 | # only to revision r0p0 of the Cortex A57 cpu. |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 140 | ERRATA_A57_813420 ?=0 |
| 141 | |
Ambroise Vincent | 1b0db76 | 2019-02-21 16:35:07 +0000 | [diff] [blame] | 142 | # Flag to apply erratum 814670 workaround during reset. This erratum applies |
| 143 | # only to revision r0p0 of the Cortex A57 cpu. |
| 144 | ERRATA_A57_814670 ?=0 |
| 145 | |
Ambroise Vincent | aa2c029 | 2019-02-21 16:35:49 +0000 | [diff] [blame] | 146 | # Flag to apply erratum 817169 workaround during power down. This erratum |
| 147 | # applies only to revision <= r0p1 of the Cortex A57 cpu. |
| 148 | ERRATA_A57_817169 ?=0 |
| 149 | |
Sandrine Bailleux | a7e0c53 | 2016-04-14 13:32:31 +0100 | [diff] [blame] | 150 | # Flag to apply erratum 826974 workaround during reset. This erratum applies |
| 151 | # only to revision <= r1p1 of the Cortex A57 cpu. |
| 152 | ERRATA_A57_826974 ?=0 |
| 153 | |
Sandrine Bailleux | adcbd55 | 2016-04-14 14:24:13 +0100 | [diff] [blame] | 154 | # Flag to apply erratum 826977 workaround during reset. This erratum applies |
| 155 | # only to revision <= r1p1 of the Cortex A57 cpu. |
| 156 | ERRATA_A57_826977 ?=0 |
| 157 | |
Sandrine Bailleux | c11116f | 2016-04-14 14:04:48 +0100 | [diff] [blame] | 158 | # Flag to apply erratum 828024 workaround during reset. This erratum applies |
| 159 | # only to revision <= r1p1 of the Cortex A57 cpu. |
| 160 | ERRATA_A57_828024 ?=0 |
| 161 | |
Sandrine Bailleux | 48cbe85 | 2016-04-14 14:18:07 +0100 | [diff] [blame] | 162 | # Flag to apply erratum 829520 workaround during reset. This erratum applies |
| 163 | # only to revision <= r1p2 of the Cortex A57 cpu. |
| 164 | ERRATA_A57_829520 ?=0 |
| 165 | |
Sandrine Bailleux | 143ef1a | 2016-04-21 11:10:52 +0100 | [diff] [blame] | 166 | # Flag to apply erratum 833471 workaround during reset. This erratum applies |
| 167 | # only to revision <= r1p2 of the Cortex A57 cpu. |
| 168 | ERRATA_A57_833471 ?=0 |
| 169 | |
Eleanor Bonnici | 0c9bd27 | 2017-08-02 16:35:04 +0100 | [diff] [blame] | 170 | # Flag to apply erratum 855972 workaround during reset. This erratum applies |
| 171 | # only to revision <= r1p3 of the Cortex A57 cpu. |
| 172 | ERRATA_A57_859972 ?=0 |
| 173 | |
Eleanor Bonnici | c3b4ca1 | 2017-08-02 18:33:41 +0100 | [diff] [blame] | 174 | # Flag to apply erratum 855971 workaround during reset. This erratum applies |
| 175 | # only to revision <= r0p3 of the Cortex A72 cpu. |
| 176 | ERRATA_A72_859971 ?=0 |
| 177 | |
Louis Mayencourt | d69722c | 2019-02-27 14:24:16 +0000 | [diff] [blame] | 178 | # Flag to apply erratum 852427 workaround during reset. This erratum applies |
| 179 | # only to revision r0p0 of the Cortex A73 cpu. |
| 180 | ERRATA_A73_852427 ?=0 |
| 181 | |
Louis Mayencourt | 4405de6 | 2019-02-21 16:38:16 +0000 | [diff] [blame] | 182 | # Flag to apply erratum 855423 workaround during reset. This erratum applies |
| 183 | # only to revision <= r0p1 of the Cortex A73 cpu. |
| 184 | ERRATA_A73_855423 ?=0 |
| 185 | |
Louis Mayencourt | 78a0aed | 2019-02-20 12:11:41 +0000 | [diff] [blame] | 186 | # Flag to apply erratum 764081 workaround during reset. This erratum applies |
| 187 | # only to revision <= r0p0 of the Cortex A75 cpu. |
| 188 | ERRATA_A75_764081 ?=0 |
| 189 | |
Louis Mayencourt | 8d86870 | 2019-02-25 14:57:57 +0000 | [diff] [blame] | 190 | # Flag to apply erratum 790748 workaround during reset. This erratum applies |
| 191 | # only to revision <= r0p0 of the Cortex A75 cpu. |
| 192 | ERRATA_A75_790748 ?=0 |
| 193 | |
Louis Mayencourt | 59fa218 | 2019-02-25 15:17:44 +0000 | [diff] [blame] | 194 | # Flag to apply erratum 1073348 workaround during reset. This erratum applies |
| 195 | # only to revision <= r1p0 of the Cortex A76 cpu. |
| 196 | ERRATA_A76_1073348 ?=0 |
| 197 | |
Louis Mayencourt | 0992447 | 2019-02-21 17:35:07 +0000 | [diff] [blame] | 198 | # Flag to apply erratum 1130799 workaround during reset. This erratum applies |
| 199 | # only to revision <= r2p0 of the Cortex A76 cpu. |
| 200 | ERRATA_A76_1130799 ?=0 |
| 201 | |
Louis Mayencourt | adda9d4 | 2019-02-25 11:37:38 +0000 | [diff] [blame] | 202 | # Flag to apply erratum 1220197 workaround during reset. This erratum applies |
| 203 | # only to revision <= r2p0 of the Cortex A76 cpu. |
| 204 | ERRATA_A76_1220197 ?=0 |
| 205 | |
Dimitris Papastamos | 7ca21db | 2018-03-26 16:46:01 +0100 | [diff] [blame] | 206 | # Flag to apply T32 CLREX workaround during reset. This erratum applies |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 207 | # only to r0p0 and r1p0 of the Neoverse N1 cpu. |
| 208 | ERRATA_N1_1043202 ?=1 |
Dimitris Papastamos | 7ca21db | 2018-03-26 16:46:01 +0100 | [diff] [blame] | 209 | |
John Tsichritzis | 4daa1de | 2018-07-23 09:11:59 +0100 | [diff] [blame] | 210 | # Flag to apply DSU erratum 936184. This erratum applies to DSUs containing |
| 211 | # the ACP interface and revision < r2p0. Applying the workaround results in |
| 212 | # higher DSU power consumption on idle. |
| 213 | ERRATA_DSU_936184 ?=0 |
| 214 | |
Ambroise Vincent | d4a51eb | 2019-03-04 16:56:26 +0000 | [diff] [blame] | 215 | # Process ERRATA_A15_816470 flag |
| 216 | $(eval $(call assert_boolean,ERRATA_A15_816470)) |
| 217 | $(eval $(call add_define,ERRATA_A15_816470)) |
| 218 | |
Ambroise Vincent | 68b3812 | 2019-03-05 09:54:21 +0000 | [diff] [blame] | 219 | # Process ERRATA_A15_827671 flag |
| 220 | $(eval $(call assert_boolean,ERRATA_A15_827671)) |
| 221 | $(eval $(call add_define,ERRATA_A15_827671)) |
| 222 | |
Ambroise Vincent | 8cf9eef | 2019-02-28 16:23:53 +0000 | [diff] [blame] | 223 | # Process ERRATA_A17_852421 flag |
| 224 | $(eval $(call assert_boolean,ERRATA_A17_852421)) |
| 225 | $(eval $(call add_define,ERRATA_A17_852421)) |
| 226 | |
Ambroise Vincent | fa5c951 | 2019-03-04 13:20:56 +0000 | [diff] [blame] | 227 | # Process ERRATA_A17_852423 flag |
| 228 | $(eval $(call assert_boolean,ERRATA_A17_852423)) |
| 229 | $(eval $(call add_define,ERRATA_A17_852423)) |
| 230 | |
Ambroise Vincent | f5fdfbc | 2019-02-21 14:16:24 +0000 | [diff] [blame] | 231 | # Process ERRATA_A53_819472 flag |
| 232 | $(eval $(call assert_boolean,ERRATA_A53_819472)) |
| 233 | $(eval $(call add_define,ERRATA_A53_819472)) |
| 234 | |
| 235 | # Process ERRATA_A53_824069 flag |
| 236 | $(eval $(call assert_boolean,ERRATA_A53_824069)) |
| 237 | $(eval $(call add_define,ERRATA_A53_824069)) |
| 238 | |
developer | 4fceaca | 2015-07-29 20:55:31 +0800 | [diff] [blame] | 239 | # Process ERRATA_A53_826319 flag |
| 240 | $(eval $(call assert_boolean,ERRATA_A53_826319)) |
| 241 | $(eval $(call add_define,ERRATA_A53_826319)) |
| 242 | |
Ambroise Vincent | f5fdfbc | 2019-02-21 14:16:24 +0000 | [diff] [blame] | 243 | # Process ERRATA_A53_827319 flag |
| 244 | $(eval $(call assert_boolean,ERRATA_A53_827319)) |
| 245 | $(eval $(call add_define,ERRATA_A53_827319)) |
| 246 | |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 247 | # Process ERRATA_A53_835769 flag |
| 248 | $(eval $(call assert_boolean,ERRATA_A53_835769)) |
| 249 | $(eval $(call add_define,ERRATA_A53_835769)) |
| 250 | |
developer | 4fceaca | 2015-07-29 20:55:31 +0800 | [diff] [blame] | 251 | # Process ERRATA_A53_836870 flag |
| 252 | $(eval $(call assert_boolean,ERRATA_A53_836870)) |
| 253 | $(eval $(call add_define,ERRATA_A53_836870)) |
| 254 | |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 255 | # Process ERRATA_A53_843419 flag |
| 256 | $(eval $(call assert_boolean,ERRATA_A53_843419)) |
| 257 | $(eval $(call add_define,ERRATA_A53_843419)) |
| 258 | |
Andre Przywara | 00eefd9 | 2016-10-06 16:54:53 +0100 | [diff] [blame] | 259 | # Process ERRATA_A53_855873 flag |
| 260 | $(eval $(call assert_boolean,ERRATA_A53_855873)) |
| 261 | $(eval $(call add_define,ERRATA_A53_855873)) |
| 262 | |
Ambroise Vincent | 7927fa0 | 2019-02-21 16:20:43 +0000 | [diff] [blame] | 263 | # Process ERRATA_A55_768277 flag |
| 264 | $(eval $(call assert_boolean,ERRATA_A55_768277)) |
| 265 | $(eval $(call add_define,ERRATA_A55_768277)) |
| 266 | |
Ambroise Vincent | 6f31960 | 2019-02-21 16:25:37 +0000 | [diff] [blame] | 267 | # Process ERRATA_A55_778703 flag |
| 268 | $(eval $(call assert_boolean,ERRATA_A55_778703)) |
| 269 | $(eval $(call add_define,ERRATA_A55_778703)) |
| 270 | |
Ambroise Vincent | 6a77f05 | 2019-02-21 16:27:34 +0000 | [diff] [blame] | 271 | # Process ERRATA_A55_798797 flag |
| 272 | $(eval $(call assert_boolean,ERRATA_A55_798797)) |
| 273 | $(eval $(call add_define,ERRATA_A55_798797)) |
| 274 | |
Ambroise Vincent | dd961f7 | 2019-02-21 16:29:16 +0000 | [diff] [blame] | 275 | # Process ERRATA_A55_846532 flag |
| 276 | $(eval $(call assert_boolean,ERRATA_A55_846532)) |
| 277 | $(eval $(call add_define,ERRATA_A55_846532)) |
| 278 | |
Ambroise Vincent | a1d6446 | 2019-02-21 16:29:50 +0000 | [diff] [blame] | 279 | # Process ERRATA_A55_903758 flag |
| 280 | $(eval $(call assert_boolean,ERRATA_A55_903758)) |
| 281 | $(eval $(call add_define,ERRATA_A55_903758)) |
| 282 | |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 283 | # Process ERRATA_A57_806969 flag |
| 284 | $(eval $(call assert_boolean,ERRATA_A57_806969)) |
| 285 | $(eval $(call add_define,ERRATA_A57_806969)) |
| 286 | |
Antonio Nino Diaz | 3f13c35 | 2017-02-24 11:39:22 +0000 | [diff] [blame] | 287 | # Process ERRATA_A57_813419 flag |
| 288 | $(eval $(call assert_boolean,ERRATA_A57_813419)) |
| 289 | $(eval $(call add_define,ERRATA_A57_813419)) |
| 290 | |
Soby Mathew | 802f865 | 2014-08-14 16:19:29 +0100 | [diff] [blame] | 291 | # Process ERRATA_A57_813420 flag |
| 292 | $(eval $(call assert_boolean,ERRATA_A57_813420)) |
| 293 | $(eval $(call add_define,ERRATA_A57_813420)) |
Sandrine Bailleux | a7e0c53 | 2016-04-14 13:32:31 +0100 | [diff] [blame] | 294 | |
Ambroise Vincent | 1b0db76 | 2019-02-21 16:35:07 +0000 | [diff] [blame] | 295 | # Process ERRATA_A57_814670 flag |
| 296 | $(eval $(call assert_boolean,ERRATA_A57_814670)) |
| 297 | $(eval $(call add_define,ERRATA_A57_814670)) |
| 298 | |
Ambroise Vincent | aa2c029 | 2019-02-21 16:35:49 +0000 | [diff] [blame] | 299 | # Process ERRATA_A57_817169 flag |
| 300 | $(eval $(call assert_boolean,ERRATA_A57_817169)) |
| 301 | $(eval $(call add_define,ERRATA_A57_817169)) |
| 302 | |
Sandrine Bailleux | a7e0c53 | 2016-04-14 13:32:31 +0100 | [diff] [blame] | 303 | # Process ERRATA_A57_826974 flag |
| 304 | $(eval $(call assert_boolean,ERRATA_A57_826974)) |
| 305 | $(eval $(call add_define,ERRATA_A57_826974)) |
Sandrine Bailleux | c11116f | 2016-04-14 14:04:48 +0100 | [diff] [blame] | 306 | |
Sandrine Bailleux | adcbd55 | 2016-04-14 14:24:13 +0100 | [diff] [blame] | 307 | # Process ERRATA_A57_826977 flag |
| 308 | $(eval $(call assert_boolean,ERRATA_A57_826977)) |
| 309 | $(eval $(call add_define,ERRATA_A57_826977)) |
| 310 | |
Sandrine Bailleux | c11116f | 2016-04-14 14:04:48 +0100 | [diff] [blame] | 311 | # Process ERRATA_A57_828024 flag |
| 312 | $(eval $(call assert_boolean,ERRATA_A57_828024)) |
| 313 | $(eval $(call add_define,ERRATA_A57_828024)) |
Sandrine Bailleux | 48cbe85 | 2016-04-14 14:18:07 +0100 | [diff] [blame] | 314 | |
| 315 | # Process ERRATA_A57_829520 flag |
| 316 | $(eval $(call assert_boolean,ERRATA_A57_829520)) |
| 317 | $(eval $(call add_define,ERRATA_A57_829520)) |
Sandrine Bailleux | 143ef1a | 2016-04-21 11:10:52 +0100 | [diff] [blame] | 318 | |
| 319 | # Process ERRATA_A57_833471 flag |
| 320 | $(eval $(call assert_boolean,ERRATA_A57_833471)) |
| 321 | $(eval $(call add_define,ERRATA_A57_833471)) |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 322 | |
Eleanor Bonnici | 0c9bd27 | 2017-08-02 16:35:04 +0100 | [diff] [blame] | 323 | # Process ERRATA_A57_859972 flag |
| 324 | $(eval $(call assert_boolean,ERRATA_A57_859972)) |
| 325 | $(eval $(call add_define,ERRATA_A57_859972)) |
| 326 | |
Eleanor Bonnici | c3b4ca1 | 2017-08-02 18:33:41 +0100 | [diff] [blame] | 327 | # Process ERRATA_A72_859971 flag |
| 328 | $(eval $(call assert_boolean,ERRATA_A72_859971)) |
| 329 | $(eval $(call add_define,ERRATA_A72_859971)) |
| 330 | |
Louis Mayencourt | d69722c | 2019-02-27 14:24:16 +0000 | [diff] [blame] | 331 | # Process ERRATA_A73_852427 flag |
| 332 | $(eval $(call assert_boolean,ERRATA_A73_852427)) |
| 333 | $(eval $(call add_define,ERRATA_A73_852427)) |
| 334 | |
Louis Mayencourt | 4405de6 | 2019-02-21 16:38:16 +0000 | [diff] [blame] | 335 | # Process ERRATA_A73_855423 flag |
| 336 | $(eval $(call assert_boolean,ERRATA_A73_855423)) |
| 337 | $(eval $(call add_define,ERRATA_A73_855423)) |
| 338 | |
Louis Mayencourt | 78a0aed | 2019-02-20 12:11:41 +0000 | [diff] [blame] | 339 | # Process ERRATA_A75_764081 flag |
| 340 | $(eval $(call assert_boolean,ERRATA_A75_764081)) |
| 341 | $(eval $(call add_define,ERRATA_A75_764081)) |
| 342 | |
Louis Mayencourt | 8d86870 | 2019-02-25 14:57:57 +0000 | [diff] [blame] | 343 | # Process ERRATA_A75_790748 flag |
| 344 | $(eval $(call assert_boolean,ERRATA_A75_790748)) |
| 345 | $(eval $(call add_define,ERRATA_A75_790748)) |
| 346 | |
Louis Mayencourt | 59fa218 | 2019-02-25 15:17:44 +0000 | [diff] [blame] | 347 | # Process ERRATA_A76_1073348 flag |
| 348 | $(eval $(call assert_boolean,ERRATA_A76_1073348)) |
| 349 | $(eval $(call add_define,ERRATA_A76_1073348)) |
| 350 | |
Louis Mayencourt | 0992447 | 2019-02-21 17:35:07 +0000 | [diff] [blame] | 351 | # Process ERRATA_A76_1130799 flag |
| 352 | $(eval $(call assert_boolean,ERRATA_A76_1130799)) |
| 353 | $(eval $(call add_define,ERRATA_A76_1130799)) |
| 354 | |
Louis Mayencourt | adda9d4 | 2019-02-25 11:37:38 +0000 | [diff] [blame] | 355 | # Process ERRATA_A76_1220197 flag |
| 356 | $(eval $(call assert_boolean,ERRATA_A76_1220197)) |
| 357 | $(eval $(call add_define,ERRATA_A76_1220197)) |
| 358 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 359 | # Process ERRATA_N1_1043202 flag |
| 360 | $(eval $(call assert_boolean,ERRATA_N1_1043202)) |
| 361 | $(eval $(call add_define,ERRATA_N1_1043202)) |
Dimitris Papastamos | 7ca21db | 2018-03-26 16:46:01 +0100 | [diff] [blame] | 362 | |
John Tsichritzis | 4daa1de | 2018-07-23 09:11:59 +0100 | [diff] [blame] | 363 | # Process ERRATA_DSU_936184 flag |
| 364 | $(eval $(call assert_boolean,ERRATA_DSU_936184)) |
| 365 | $(eval $(call add_define,ERRATA_DSU_936184)) |
| 366 | |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 367 | # Errata build flags |
| 368 | ifneq (${ERRATA_A53_843419},0) |
Douglas Raillard | d0c8273 | 2017-06-22 14:44:48 +0100 | [diff] [blame] | 369 | TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419 |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 370 | endif |
| 371 | |
| 372 | ifneq (${ERRATA_A53_835769},0) |
| 373 | TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769 |
Douglas Raillard | d0c8273 | 2017-06-22 14:44:48 +0100 | [diff] [blame] | 374 | TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769 |
Douglas Raillard | d56fb04 | 2017-06-19 15:38:02 +0100 | [diff] [blame] | 375 | endif |