mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 15:49:34 +00:00
feat(lx2): enable OCRAM ECC
Fix OCRAM ECC for lx2 platform. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: Ic46de7a40c611764a6f24400663da50e6b477ae5
This commit is contained in:
parent
4fa0f09739
commit
e8faff3da9
2 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,9 @@
|
||||||
|
|
||||||
#include <errata.h>
|
#include <errata.h>
|
||||||
#include <ls_interrupt_mgmt.h>
|
#include <ls_interrupt_mgmt.h>
|
||||||
|
#ifdef CONFIG_OCRAM_ECC_EN
|
||||||
|
#include <ocram.h>
|
||||||
|
#endif
|
||||||
#include "plat_common.h"
|
#include "plat_common.h"
|
||||||
#ifdef NXP_NV_SW_MAINT_LAST_EXEC_DATA
|
#ifdef NXP_NV_SW_MAINT_LAST_EXEC_DATA
|
||||||
#include <plat_nv_storage.h>
|
#include <plat_nv_storage.h>
|
||||||
|
@ -238,6 +241,9 @@ void soc_preload_setup(void)
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void soc_early_init(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);
|
dcfg_init(&dcfg_init_data);
|
||||||
#ifdef POLICY_FUSE_PROVISION
|
#ifdef POLICY_FUSE_PROVISION
|
||||||
gpio_init(&gpio_init_data);
|
gpio_init(&gpio_init_data);
|
||||||
|
|
|
@ -114,3 +114,6 @@ ERRATA_DDR_A050958 := 1
|
||||||
|
|
||||||
# enable dynamic memory mapping
|
# enable dynamic memory mapping
|
||||||
PLAT_XLAT_TABLES_DYNAMIC := 1
|
PLAT_XLAT_TABLES_DYNAMIC := 1
|
||||||
|
|
||||||
|
# OCRAM ECC Enabled
|
||||||
|
OCRAM_ECC_EN := yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue