diff --git a/plat/nxp/soc-lx2160a/soc.c b/plat/nxp/soc-lx2160a/soc.c index d8f13f3c8..df313935c 100644 --- a/plat/nxp/soc-lx2160a/soc.c +++ b/plat/nxp/soc-lx2160a/soc.c @@ -37,6 +37,9 @@ #include #include +#ifdef CONFIG_OCRAM_ECC_EN +#include +#endif #include "plat_common.h" #ifdef NXP_NV_SW_MAINT_LAST_EXEC_DATA #include @@ -238,6 +241,9 @@ void soc_preload_setup(void) ******************************************************************************/ void soc_early_init(void) { +#ifdef CONFIG_OCRAM_ECC_EN + ocram_init(NXP_OCRAM_ADDR, NXP_OCRAM_SIZE); +#endif dcfg_init(&dcfg_init_data); #ifdef POLICY_FUSE_PROVISION gpio_init(&gpio_init_data); diff --git a/plat/nxp/soc-lx2160a/soc.def b/plat/nxp/soc-lx2160a/soc.def index 81d6744ae..044296295 100644 --- a/plat/nxp/soc-lx2160a/soc.def +++ b/plat/nxp/soc-lx2160a/soc.def @@ -114,3 +114,6 @@ ERRATA_DDR_A050958 := 1 # enable dynamic memory mapping PLAT_XLAT_TABLES_DYNAMIC := 1 + +# OCRAM ECC Enabled +OCRAM_ECC_EN := yes