Pankaj Gupta | 7701910 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 1 | /* |
Jiafei Pan | 5cd4c12 | 2022-02-18 18:30:05 +0800 | [diff] [blame] | 2 | * Copyright 2021-2022 NXP |
Pankaj Gupta | 7701910 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
Jiafei Pan | 942f567 | 2021-07-20 15:21:06 +0800 | [diff] [blame] | 8 | #include <common/debug.h> |
Pankaj Gupta | 7701910 | 2020-12-09 14:02:41 +0530 | [diff] [blame] | 9 | |
Jiafei Pan | 41fe2d7 | 2021-08-24 12:01:27 +0800 | [diff] [blame] | 10 | #include "errata_list.h" |
Jiafei Pan | 942f567 | 2021-07-20 15:21:06 +0800 | [diff] [blame] | 11 | |
| 12 | void soc_errata(void) |
| 13 | { |
| 14 | #ifdef ERRATA_SOC_A050426 |
| 15 | INFO("SoC workaround for Errata A050426 was applied\n"); |
| 16 | erratum_a050426(); |
| 17 | #endif |
Jiafei Pan | 0b960e1 | 2021-10-21 16:57:58 +0800 | [diff] [blame] | 18 | #ifdef ERRATA_SOC_A008850 |
| 19 | INFO("SoC workaround for Errata A008850 Early-Phase was applied\n"); |
| 20 | erratum_a008850_early(); |
| 21 | #endif |
Jiafei Pan | 5cd4c12 | 2022-02-18 18:30:05 +0800 | [diff] [blame] | 22 | #if ERRATA_SOC_A009660 |
| 23 | INFO("SoC workaround for Errata A009660 was applied\n"); |
| 24 | erratum_a009660(); |
| 25 | #endif |
Jiafei Pan | 86a96d9 | 2022-02-18 18:32:18 +0800 | [diff] [blame] | 26 | #if ERRATA_SOC_A010539 |
| 27 | INFO("SoC workaround for Errata A010539 was applied\n"); |
| 28 | erratum_a010539(); |
| 29 | #endif |
| 30 | |
Jiafei Pan | 942f567 | 2021-07-20 15:21:06 +0800 | [diff] [blame] | 31 | /* |
| 32 | * The following DDR Erratas workaround are implemented in DDR driver, |
| 33 | * but print information here. |
| 34 | */ |
| 35 | #if ERRATA_DDR_A011396 |
| 36 | INFO("SoC workaround for DDR Errata A011396 was applied\n"); |
| 37 | #endif |
| 38 | #if ERRATA_DDR_A050450 |
| 39 | INFO("SoC workaround for DDR Errata A050450 was applied\n"); |
| 40 | #endif |
Pankit Garg | dadba6e | 2021-07-13 13:40:06 +0530 | [diff] [blame] | 41 | #if ERRATA_DDR_A050958 |
| 42 | INFO("SoC workaround for DDR Errata A050958 was applied\n"); |
| 43 | #endif |
Jiafei Pan | 28c5063 | 2022-02-18 18:45:37 +0800 | [diff] [blame] | 44 | #if ERRATA_DDR_A008511 |
| 45 | INFO("SoC workaround for DDR Errata A008511 was applied\n"); |
| 46 | #endif |
| 47 | #if ERRATA_DDR_A009803 |
| 48 | INFO("SoC workaround for DDR Errata A009803 was applied\n"); |
| 49 | #endif |
| 50 | #if ERRATA_DDR_A009942 |
| 51 | INFO("SoC workaround for DDR Errata A009942 was applied\n"); |
| 52 | #endif |
| 53 | #if ERRATA_DDR_A010165 |
| 54 | INFO("SoC workaround for DDR Errata A010165 was applied\n"); |
| 55 | #endif |
| 56 | #if ERRATA_DDR_A009663 |
| 57 | INFO("SoC workaround for DDR Errata A009663 was applied\n"); |
| 58 | #endif |
Jiafei Pan | 942f567 | 2021-07-20 15:21:06 +0800 | [diff] [blame] | 59 | } |