aboutsummaryrefslogtreecommitdiff
path: root/plat/nxp/soc-lx2160a/erratas_soc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'plat/nxp/soc-lx2160a/erratas_soc.mk')
-rw-r--r--plat/nxp/soc-lx2160a/erratas_soc.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/plat/nxp/soc-lx2160a/erratas_soc.mk b/plat/nxp/soc-lx2160a/erratas_soc.mk
new file mode 100644
index 0000000000..07bed0385f
--- /dev/null
+++ b/plat/nxp/soc-lx2160a/erratas_soc.mk
@@ -0,0 +1,21 @@
+#
+# Copyright 2020 NXP
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Platform Errata Build flags.
+# These should be enabled by the platform if the erratum workaround needs to be
+# applied.
+
+# Flag to apply erratum 50426 workaround during reset.
+ERRATA_SOC_A050426 ?= 0
+
+# Process ERRATA_SOC_A050426 flag
+ifeq (${ERRATA_SOC_A050426}, 1)
+INCL_SOC_ERRATA_SOURCES := yes
+$(eval $(call add_define,ERRATA_SOC_A050426))
+endif
+
+ifeq (${INCL_SOC_ERRATA_SOURCES},yes)
+BL2_SOURCES += ${PLAT_SOC_PATH}/erratas_soc.c
+endif