aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/cpus/errata_report.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/cpus/errata_report.h')
-rw-r--r--include/lib/cpus/errata_report.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lib/cpus/errata_report.h b/include/lib/cpus/errata_report.h
index 7cac77ebe..efdedf0aa 100644
--- a/include/lib/cpus/errata_report.h
+++ b/include/lib/cpus/errata_report.h
@@ -30,4 +30,7 @@ int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);
#define ERRATA_APPLIES 1
#define ERRATA_MISSING 2
+/* Macro to get CPU revision code for checking errata version compatibility. */
+#define CPU_REV(r, p) ((r << 4) | p)
+
#endif /* ERRATA_REPORT_H */